[TASK] Whitespace CGL
[Packages/TYPO3.CMS.git] / typo3 / sysext / statictemplates / ext_tables.php
1 <?php
2
3 if (!defined ("TYPO3_MODE")) die ("Access denied.");
4
5 // ******************************************************************
6 // static_template
7 // ******************************************************************
8 $TCA['static_template'] = array(
9 'ctrl' => array(
10 'label' => 'title',
11 'tstamp' => 'tstamp',
12 'title' => 'LLL:EXT:statictemplates/locallang_tca.xml:static_template',
13 'readOnly' => 1, // This should always be TRUE, as it prevents the static templates from being altered
14 'adminOnly' => 1, // Only admin, if any
15 'rootLevel' => 1,
16 'is_static' => 1,
17 'default_sortby' => 'ORDER BY title',
18 'crdate' => 'crdate',
19 'iconfile' => 'template_standard.gif',
20 'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY) . 'tca.php'
21 )
22 );
23
24 $tempField = array(
25 'include_static' => array(
26 'label' => 'LLL:EXT:statictemplates/locallang_tca.xml:include_static',
27 'config' => array(
28 'type' => 'select',
29 'foreign_table' => 'static_template',
30 'foreign_table_where' => 'ORDER BY static_template.title DESC',
31 'size' => 10,
32 'maxitems' => 20,
33 'default' => '',
34 )
35 ),
36 );
37
38 t3lib_div::loadTCA('sys_template');
39 t3lib_extMgm::addTCAcolumns('sys_template', $tempField, 1);
40 t3lib_extMgm::addToAllTCAtypes('sys_template', 'include_static;;2;;5-5-5', '', 'before:includeStaticAfterBasedOn');
41
42 ?>