added feature #7565: Tabs for sys_template
authorIngo Renner <ingo.renner@typo3.org>
Tue, 19 Feb 2008 01:06:16 +0000 (01:06 +0000)
committerIngo Renner <ingo.renner@typo3.org>
Tue, 19 Feb 2008 01:06:16 +0000 (01:06 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@3220 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
typo3/sysext/cms/ext_tables.php
typo3/sysext/cms/locallang_tca.xml
typo3/sysext/cms/tbl_cms.php

index 2c5512f..abcf3f0 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -2,6 +2,7 @@
 
        * added feature #7580: Enable tabs for be_groups
        * added feature #7566: Tabs for fe_user and fe_groups
+       * added feature #7565: Tabs for sys_template
 
 2008-02-18  Jeff Segars  <jeff@webempoweredchurch.org>
 
index 98dcec1..8005164 100755 (executable)
@@ -797,7 +797,7 @@ $TCA['sys_template'] = array (
                'typeicons' => array (
                        '0' => 'template_add.gif'
                ),
-               'mainpalette' => '1',
+               'dividers2tabs' => true,
                'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY).'tbl_cms.php'
        )
 );
index f88eba4..cd36b8e 100755 (executable)
                        <label index="sys_domain.domainName">Domain:</label>
                        <label index="sys_domain.redirectTo">Redirect to:</label>
                        <label index="sys_domain.prepend_params">Transfer parameters to Redirect URL:</label>
-                       <label index="pages_language_overlay">Alternative Page Language</label>
                        <label index="sys_template">Template</label>
+                       <label index="sys_template.title">Template title:</label>
+                       <label index="sys_template.root">Rootlevel:</label>
+                       <label index="sys_template.clear">Clear:</label>
+                       <label index="sys_template.sitetitle">Website title:</label>
+                       <label index="sys_template.constants">Constants:</label>
+                       <label index="sys_template.resources">Resources:</label>
+                       <label index="sys_template.nextLevel">Template on next level:</label>
+                       <label index="sys_template.include_static">Include static:</label>
+                       <label index="sys_template.include_static_file">Include static (from extensions):</label>
+                       <label index="sys_template.basedOn">Include basis template:</label>
+                       <label index="sys_template.includeStaticAfterBasedOn">Include static AFTER basedOn:</label>
+                       <label index="sys_template.config">Setup:</label>
+                       <label index="sys_template.editorcfg">Backend Editor Configuration:</label>
+                       <label index="sys_template.description">Description:</label>
+                       <label index="sys_template.static_file_mode">Static template files from T3 Extensions:</label>
+                       <label index="sys_template.basedOn_add">Add new basis template</label>
+                       <label index="sys_template.tabs.files">Resources</label>
+                       <label index="sys_template.tabs.include">Includes</label>
+                       <label index="sys_template.tabs.options">Options</label>
+                       <label index="sys_template.tabs.access">Access</label>
+                       <label index="pages_language_overlay">Alternative Page Language</label>
                        <label index="static_template">Static templates</label>
                </languageKey>
        </data>
index 3e24b5e..a317268 100755 (executable)
@@ -624,7 +624,7 @@ $TCA['sys_template'] = Array (
        ),
        'columns' => Array (
                'title' => Array (
-                       'label' => 'Template title:',
+                       'label' => 'LLL:EXT:cms/locallang_tca.xml:sys_template.title',
                        'config' => Array (
                                'type' => 'input',
                                'size' => '25',
@@ -633,7 +633,7 @@ $TCA['sys_template'] = Array (
                        )
                ),
                'hidden' => Array (
-                       'label' => 'Deactivated:',
+                       'label' => 'LLL:EXT:lang/locallang_general.php:LGL.disable',
                        'exclude' => 1,
                        'config' => Array (
                                'type' => 'check',
@@ -641,7 +641,7 @@ $TCA['sys_template'] = Array (
                        )
                ),
                'starttime' => Array (
-                       'label' => 'Start:',
+                       'label' => 'LLL:EXT:lang/locallang_general.php:LGL.starttime',
                        'exclude' => 1,
                        'config' => Array (
                                'type' => 'input',
@@ -653,7 +653,7 @@ $TCA['sys_template'] = Array (
                        )
                ),
                'endtime' => Array (
-                       'label' => 'Stop:',
+                       'label' => 'LLL:EXT:lang/locallang_general.php:LGL.endtime',
                        'exclude' => 1,
                        'config' => Array (
                                'type' => 'input',
@@ -668,13 +668,13 @@ $TCA['sys_template'] = Array (
                        )
                ),
                'root' => Array (
-                       'label' => 'Rootlevel:',
+                       'label' => 'LLL:EXT:cms/locallang_tca.xml:sys_template.root',
                        'config' => Array (
                                'type' => 'check'
                        )
                ),
                'clear' => Array (
-                       'label' => 'Clear:',
+                       'label' => 'LLL:EXT:cms/locallang_tca.xml:sys_template.clear',
                        'config' => Array (
                                'type' => 'check',
                                'items' => Array (
@@ -685,7 +685,7 @@ $TCA['sys_template'] = Array (
                        )
                ),
                'sitetitle' => Array (
-                       'label' => 'Website title:',
+                       'label' => 'LLL:EXT:cms/locallang_tca.xml:sys_template.sitetitle',
                        'config' => Array (
                                'type' => 'input',
                                'size' => '25',
@@ -693,7 +693,7 @@ $TCA['sys_template'] = Array (
                        )
                ),
                'constants' => Array (
-                       'label' => 'Constants:',
+                       'label' => 'LLL:EXT:cms/locallang_tca.xml:sys_template.constants',
                        'config' => Array (
                                'type' => 'text',
                                'cols' => '48',
@@ -704,7 +704,7 @@ $TCA['sys_template'] = Array (
                        'defaultExtras' => 'fixed-font : enable-tab',
                ),
                'resources' => Array (
-                       'label' => 'Resources:',
+                       'label' => 'LLL:EXT:cms/locallang_tca.xml:sys_template.resources',
                        'config' => Array (
                                'type' => 'group',
                                'internal_type' => 'file',
@@ -718,7 +718,7 @@ $TCA['sys_template'] = Array (
                        )
                ),
                'nextLevel' => Array (
-                       'label' => 'Template on next level:',
+                       'label' => 'LLL:EXT:cms/locallang_tca.xml:sys_template.nextLevel',
                        'config' => Array (
                                'type' => 'group',
                                'internal_type' => 'db',
@@ -731,7 +731,7 @@ $TCA['sys_template'] = Array (
                        )
                ),
                'include_static' => Array (
-                       'label' => 'Include static:',
+                       'label' => 'LLL:EXT:cms/locallang_tca.xml:sys_template.include_static',
                        'config' => Array (
                                'type' => 'select',
                                'foreign_table' => 'static_template',
@@ -742,7 +742,7 @@ $TCA['sys_template'] = Array (
                        ),
                ),
                'include_static_file' => Array(
-                       'label' => 'Include static (from extensions):',
+                       'label' => 'LLL:EXT:cms/locallang_tca.xml:sys_template.include_static_file',
                        'config' => Array (
                                'type' => 'select',
                                'size' => 10,
@@ -753,7 +753,7 @@ $TCA['sys_template'] = Array (
                        )
                ),
                'basedOn' => Array (
-                       'label' => 'Include basis template:',
+                       'label' => 'LLL:EXT:cms/locallang_tca.xml:sys_template.basedOn',
                        'config' => Array (
                                'type' => 'group',
                                'internal_type' => 'db',
@@ -777,7 +777,7 @@ $TCA['sys_template'] = Array (
                                        ),
                                        'add' => Array(
                                                'type' => 'script',
-                                               'title' => 'Add new basis template',
+                                               'title' => 'LLL:EXT:cms/locallang_tca.xml:sys_template.basedOn_add',
                                                'icon' => 'add.gif',
                                                'params' => Array(
                                                        'table'=>'sys_template',
@@ -790,7 +790,7 @@ $TCA['sys_template'] = Array (
                        )
                ),
                'includeStaticAfterBasedOn' => Array (
-                       'label' => 'Include static AFTER basedOn:',
+                       'label' => 'LLL:EXT:cms/locallang_tca.xml:sys_template.includeStaticAfterBasedOn',
                        'exclude' => 1,
                        'config' => Array (
                                'type' => 'check',
@@ -798,7 +798,7 @@ $TCA['sys_template'] = Array (
                        )
                ),
                'config' => Array (
-                       'label' => 'Setup:',
+                       'label' => 'LLL:EXT:cms/locallang_tca.xml:sys_template.config',
                        'config' => Array (
                                'type' => 'text',
                                'rows' => 10,
@@ -819,25 +819,25 @@ $TCA['sys_template'] = Array (
                        'defaultExtras' => 'fixed-font : enable-tab',
                ),
                'editorcfg' => Array (
-                       'label' => 'Backend Editor Configuration:',
+                       'label' => 'LLL:EXT:cms/locallang_tca.xml:sys_template.editorcfg',
                        'config' => Array (
                                'type' => 'text',
-                               'rows' => 4,
+                               'rows' => 8,
                                'cols' => 48,
                                'wrap' => 'OFF'
                        ),
                        'defaultExtras' => 'fixed-font : enable-tab',
                ),
                'description' => Array (
-                       'label' => 'Description:',
+                       'label' => 'LLL:EXT:cms/locallang_tca.xml:sys_template.description',
                        'config' => Array (
                                'type' => 'text',
-                               'rows' => 10,
+                               'rows' => 5,
                                'cols' => 48
                        )
                ),
                'static_file_mode' => Array (
-                       'label' => 'Static template files from T3 Extensions:',
+                       'label' => 'LLL:EXT:cms/locallang_tca.xml:sys_template.static_file_mode',
                        'config' => Array (
                                'type' => 'select',
                                'items' => Array (
@@ -859,11 +859,13 @@ $TCA['sys_template'] = Array (
                ),
        ),
        'types' => Array (
-               '1' => Array('showitem' => 'title;;1;;2-2-2, sitetitle, constants;;;;3-3-3, config, resources, clear, root, --div--, include_static;;2;;5-5-5, include_static_file;;2, basedOn;;2, static_file_mode, nextLevel, --div--, description;;;;5-5-5, editorcfg')
-       ),
-       'palettes' => Array (
-               '1' => Array('showitem' => 'hidden,starttime,endtime'),
-               '2' => Array('showitem' => 'includeStaticAfterBasedOn')
+               '1' => Array('showitem' => '
+                       hidden,title;;1;;2-2-2, sitetitle, constants;;;;3-3-3, config, description;;;;4-4-4,
+                       --div--;LLL:EXT:cms/locallang_tca.xml:sys_template.tabs.options, clear, root, nextLevel, editorcfg;;;;5-5-5,
+                       --div--;LLL:EXT:cms/locallang_tca.xml:sys_template.tabs.include, include_static,includeStaticAfterBasedOn,6-6-6, include_static_file, basedOn, static_file_mode,
+                       --div--;LLL:EXT:cms/locallang_tca.xml:sys_template.tabs.files, resources,
+                       --div--;LLL:EXT:cms/locallang_tca.xml:sys_template.tabs.access, starttime, endtime'
+               )
        )
 );