|
TYPO3 API
SVNRelease
|
00001 <?php 00002 # TYPO3 SVN ID: $Id: ext_tables.php 10211 2011-01-21 14:55:53Z flyguide $ 00003 if (!defined ('TYPO3_MODE')) die ('Access denied.'); 00004 00005 00006 if (TYPO3_MODE == 'BE') { 00007 t3lib_extMgm::addModule('web','layout','top',t3lib_extMgm::extPath($_EXTKEY).'layout/'); 00008 t3lib_extMgm::addLLrefForTCAdescr('_MOD_web_layout','EXT:cms/locallang_csh_weblayout.xml'); 00009 t3lib_extMgm::addLLrefForTCAdescr('_MOD_web_info','EXT:cms/locallang_csh_webinfo.xml'); 00010 00011 t3lib_extMgm::insertModuleFunction( 00012 'web_info', 00013 'tx_cms_webinfo_page', 00014 t3lib_extMgm::extPath($_EXTKEY).'web_info/class.tx_cms_webinfo.php', 00015 'LLL:EXT:cms/locallang_tca.xml:mod_tx_cms_webinfo_page' 00016 ); 00017 t3lib_extMgm::insertModuleFunction( 00018 'web_info', 00019 'tx_cms_webinfo_lang', 00020 t3lib_extMgm::extPath($_EXTKEY).'web_info/class.tx_cms_webinfo_lang.php', 00021 'LLL:EXT:cms/locallang_tca.xml:mod_tx_cms_webinfo_lang' 00022 ); 00023 } 00024 00025 00026 // Add allowed records to pages: 00027 t3lib_extMgm::allowTableOnStandardPages('pages_language_overlay,tt_content,sys_template,sys_domain,backend_layout'); 00028 00029 00030 // ****************************************************************** 00031 // This is the standard TypoScript content table, tt_content 00032 // ****************************************************************** 00033 $TCA['tt_content'] = array ( 00034 'ctrl' => array ( 00035 'label' => 'header', 00036 'label_alt' => 'subheader,bodytext', 00037 'sortby' => 'sorting', 00038 'tstamp' => 'tstamp', 00039 'crdate' => 'crdate', 00040 'cruser_id' => 'cruser_id', 00041 'title' => 'LLL:EXT:cms/locallang_tca.xml:tt_content', 00042 'delete' => 'deleted', 00043 'versioningWS' => 2, 00044 'versioning_followPages' => true, 00045 'origUid' => 't3_origuid', 00046 'type' => 'CType', 00047 'hideAtCopy' => true, 00048 'prependAtCopy' => 'LLL:EXT:lang/locallang_general.xml:LGL.prependAtCopy', 00049 'copyAfterDuplFields' => 'colPos,sys_language_uid', 00050 'useColumnsForDefaultValues' => 'colPos,sys_language_uid', 00051 'shadowColumnsForNewPlaceholders' => 'colPos', 00052 'transOrigPointerField' => 'l18n_parent', 00053 'transOrigDiffSourceField' => 'l18n_diffsource', 00054 'languageField' => 'sys_language_uid', 00055 'enablecolumns' => array ( 00056 'disabled' => 'hidden', 00057 'starttime' => 'starttime', 00058 'endtime' => 'endtime', 00059 'fe_group' => 'fe_group', 00060 ), 00061 'typeicon_column' => 'CType', 00062 'typeicon_classes' => array( 00063 'header' => 'mimetypes-x-content-header', 00064 'textpic' => 'mimetypes-x-content-text-picture', 00065 'image' => 'mimetypes-x-content-image', 00066 'bullets' => 'mimetypes-x-content-list-bullets', 00067 'table' => 'mimetypes-x-content-table', 00068 'splash' => 'mimetypes-x-content-splash', 00069 'uploads' => 'mimetypes-x-content-list-files', 00070 'multimedia' => 'mimetypes-x-content-multimedia', 00071 'media' => 'mimetypes-x-content-multimedia', 00072 'menu' => 'mimetypes-x-content-menu', 00073 'list' => 'mimetypes-x-content-plugin', 00074 'mailform' => 'mimetypes-x-content-form', 00075 'search' => 'mimetypes-x-content-form-search', 00076 'login' => 'mimetypes-x-content-login', 00077 'shortcut' => 'mimetypes-x-content-link', 00078 'script' => 'mimetypes-x-content-script', 00079 'div' => 'mimetypes-x-content-divider', 00080 'html' => 'mimetypes-x-content-html', 00081 'text' => 'mimetypes-x-content-text', 00082 'default' => 'mimetypes-x-content-text', 00083 ), 00084 'typeicons' => array ( 00085 'header' => 'tt_content_header.gif', 00086 'textpic' => 'tt_content_textpic.gif', 00087 'image' => 'tt_content_image.gif', 00088 'bullets' => 'tt_content_bullets.gif', 00089 'table' => 'tt_content_table.gif', 00090 'splash' => 'tt_content_news.gif', 00091 'uploads' => 'tt_content_uploads.gif', 00092 'multimedia' => 'tt_content_mm.gif', 00093 'media' => 'tt_content_mm.gif', 00094 'menu' => 'tt_content_menu.gif', 00095 'list' => 'tt_content_list.gif', 00096 'mailform' => 'tt_content_form.gif', 00097 'search' => 'tt_content_search.gif', 00098 'login' => 'tt_content_login.gif', 00099 'shortcut' => 'tt_content_shortcut.gif', 00100 'script' => 'tt_content_script.gif', 00101 'div' => 'tt_content_div.gif', 00102 'html' => 'tt_content_html.gif' 00103 ), 00104 'thumbnail' => 'image', 00105 'requestUpdate' => 'list_type,rte_enabled', 00106 'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY).'tbl_tt_content.php', 00107 'dividers2tabs' => 1 00108 ) 00109 ); 00110 00111 // ****************************************************************** 00112 // fe_users 00113 // ****************************************************************** 00114 $TCA['fe_users'] = array ( 00115 'ctrl' => array ( 00116 'label' => 'username', 00117 'tstamp' => 'tstamp', 00118 'crdate' => 'crdate', 00119 'cruser_id' => 'cruser_id', 00120 'fe_cruser_id' => 'fe_cruser_id', 00121 'title' => 'LLL:EXT:cms/locallang_tca.xml:fe_users', 00122 'delete' => 'deleted', 00123 'enablecolumns' => array ( 00124 'disabled' => 'disable', 00125 'starttime' => 'starttime', 00126 'endtime' => 'endtime' 00127 ), 00128 'typeicon_classes' => array( 00129 'default' => 'status-user-frontend', 00130 ), 00131 'useColumnsForDefaultValues' => 'usergroup,lockToDomain,disable,starttime,endtime', 00132 'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY).'tbl_cms.php', 00133 'dividers2tabs' => 1 00134 ), 00135 'feInterface' => array ( 00136 'fe_admin_fieldList' => 'username,password,usergroup,name,address,telephone,fax,email,title,zip,city,country,www,company', 00137 ) 00138 ); 00139 00140 // ****************************************************************** 00141 // fe_groups 00142 // ****************************************************************** 00143 $TCA['fe_groups'] = array ( 00144 'ctrl' => array ( 00145 'label' => 'title', 00146 'tstamp' => 'tstamp', 00147 'crdate' => 'crdate', 00148 'cruser_id' => 'cruser_id', 00149 'delete' => 'deleted', 00150 'prependAtCopy' => 'LLL:EXT:lang/locallang_general.xml:LGL.prependAtCopy', 00151 'enablecolumns' => array ( 00152 'disabled' => 'hidden' 00153 ), 00154 'title' => 'LLL:EXT:cms/locallang_tca.xml:fe_groups', 00155 'typeicon_classes' => array( 00156 'default' => 'status-user-group-frontend', 00157 ), 00158 'useColumnsForDefaultValues' => 'lockToDomain', 00159 'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY).'tbl_cms.php', 00160 'dividers2tabs' => 1 00161 ) 00162 ); 00163 00164 // ****************************************************************** 00165 // sys_domain 00166 // ****************************************************************** 00167 $TCA['sys_domain'] = array ( 00168 'ctrl' => array ( 00169 'label' => 'domainName', 00170 'tstamp' => 'tstamp', 00171 'crdate' => 'crdate', 00172 'cruser_id' => 'cruser_id', 00173 'sortby' => 'sorting', 00174 'title' => 'LLL:EXT:cms/locallang_tca.xml:sys_domain', 00175 'iconfile' => 'domain.gif', 00176 'enablecolumns' => array ( 00177 'disabled' => 'hidden' 00178 ), 00179 'typeicon_classes' => array( 00180 'default' => 'mimetypes-x-content-domain', 00181 ), 00182 'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY).'tbl_cms.php' 00183 ) 00184 ); 00185 00186 // ****************************************************************** 00187 // pages_language_overlay 00188 // ****************************************************************** 00189 $TCA['pages_language_overlay'] = array ( 00190 'ctrl' => array ( 00191 'label' => 'title', 00192 'tstamp' => 'tstamp', 00193 'title' => 'LLL:EXT:cms/locallang_tca.xml:pages_language_overlay', 00194 'versioningWS' => true, 00195 'versioning_followPages' => true, 00196 'origUid' => 't3_origuid', 00197 'crdate' => 'crdate', 00198 'cruser_id' => 'cruser_id', 00199 'delete' => 'deleted', 00200 'enablecolumns' => array ( 00201 'disabled' => 'hidden', 00202 'starttime' => 'starttime', 00203 'endtime' => 'endtime' 00204 ), 00205 'transOrigPointerField' => 'pid', 00206 'transOrigPointerTable' => 'pages', 00207 'transOrigDiffSourceField' => 'l18n_diffsource', 00208 'shadowColumnsForNewPlaceholders' => 'title', 00209 'languageField' => 'sys_language_uid', 00210 'mainpalette' => 1, 00211 'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY) . 'tbl_cms.php', 00212 'type' => 'doktype', 00213 'typeicon_classes' => array( 00214 'default' => 'mimetypes-x-content-page-language-overlay', 00215 ), 00216 00217 'dividers2tabs' => true 00218 ) 00219 ); 00220 00221 00222 // ****************************************************************** 00223 // sys_template 00224 // ****************************************************************** 00225 $TCA['sys_template'] = array ( 00226 'ctrl' => array ( 00227 'label' => 'title', 00228 'tstamp' => 'tstamp', 00229 'sortby' => 'sorting', 00230 'prependAtCopy' => 'LLL:EXT:lang/locallang_general.xml:LGL.prependAtCopy', 00231 'title' => 'LLL:EXT:cms/locallang_tca.xml:sys_template', 00232 'versioningWS' => true, 00233 'origUid' => 't3_origuid', 00234 'crdate' => 'crdate', 00235 'cruser_id' => 'cruser_id', 00236 'delete' => 'deleted', 00237 'adminOnly' => 1, // Only admin, if any 00238 'iconfile' => 'template.gif', 00239 'thumbnail' => 'resources', 00240 'enablecolumns' => array ( 00241 'disabled' => 'hidden', 00242 'starttime' => 'starttime', 00243 'endtime' => 'endtime' 00244 ), 00245 'typeicon_column' => 'root', 00246 'typeicon_classes' => array( 00247 'default' => 'mimetypes-x-content-template-extension', 00248 '1' => 'mimetypes-x-content-template', 00249 ), 00250 'typeicons' => array ( 00251 '0' => 'template_add.gif' 00252 ), 00253 'dividers2tabs' => 1, 00254 'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY).'tbl_cms.php' 00255 ) 00256 ); 00257 00258 00259 // ****************************************************************** 00260 // layouts 00261 // ****************************************************************** 00262 $TCA['backend_layout'] = array ( 00263 'ctrl' => array ( 00264 'title' => 'LLL:EXT:cms/locallang_tca.xml:backend_layout', 00265 'label' => 'title', 00266 'tstamp' => 'tstamp', 00267 'crdate' => 'crdate', 00268 'cruser_id' => 'cruser_id', 00269 'versioningWS' => TRUE, 00270 'origUid' => 't3_origuid', 00271 'sortby' => 'sorting', 00272 'delete' => 'deleted', 00273 'enablecolumns' => array ( 00274 'disabled' => 'hidden', 00275 ), 00276 'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY).'tbl_cms.php', 00277 'iconfile' => 'backend_layout.gif', 00278 'selicon_field' => 'icon', 00279 'selicon_field_path' => 'uploads/media', 00280 'thumbnail' => 'resources', 00281 ) 00282 ); 00283 00284 ?>
1.8.0