|
TYPO3 API
SVNRelease
|
00001 <?php 00002 00003 if (!defined ("TYPO3_MODE")) die ("Access denied."); 00004 00005 // ****************************************************************** 00006 // static_template 00007 // ****************************************************************** 00008 $TCA['static_template'] = array( 00009 'ctrl' => array( 00010 'label' => 'title', 00011 'tstamp' => 'tstamp', 00012 'title' => 'LLL:EXT:statictemplates/locallang_tca.xml:static_template', 00013 'readOnly' => 1, // This should always be true, as it prevents the static templates from being altered 00014 'adminOnly' => 1, // Only admin, if any 00015 'rootLevel' => 1, 00016 'is_static' => 1, 00017 'default_sortby' => 'ORDER BY title', 00018 'crdate' => 'crdate', 00019 'iconfile' => 'template_standard.gif', 00020 'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY) . 'tca.php' 00021 ) 00022 ); 00023 00024 $tempField = array( 00025 'include_static' => array( 00026 'label' => 'LLL:EXT:statictemplates/locallang_tca.xml:include_static', 00027 'config' => array( 00028 'type' => 'select', 00029 'foreign_table' => 'static_template', 00030 'foreign_table_where' => 'ORDER BY static_template.title DESC', 00031 'size' => 10, 00032 'maxitems' => 20, 00033 'default' => '', 00034 ) 00035 ), 00036 ); 00037 00038 t3lib_div::loadTCA('sys_template'); 00039 t3lib_extMgm::addTCAcolumns('sys_template', $tempField, 1); 00040 t3lib_extMgm::addToAllTCAtypes('sys_template', 'include_static;;2;;5-5-5', '', 'before:includeStaticAfterBasedOn'); 00041 00042 ?>
1.8.0