Project

General

Profile

Bug #17769 » ext_tables.patch

Administrator Admin, 2007-11-09 17:39

View differences:

ext_tables.php (working copy)
// Setting main palette
$TCA['pages']['ctrl']['mainpalette']='1,15';
//enable Tabs:
$TCA['pages']['ctrl']['dividers2tabs']=1;
// Totally overriding all type-settings:
$TCA['pages']['types'] = Array (
'1' => Array('showitem' => 'hidden;;;;1-1-1, doktype;;2;button, title;;3;;2-2-2, subtitle, nav_hide, TSconfig;;6;nowrap;5-5-5, storage_pid;;7, l18n_cfg'),
'2' => Array('showitem' => 'hidden;;;;1-1-1, doktype;;2;button, title;;3;;2-2-2, subtitle, nav_hide, nav_title, --div--, abstract;;5;;3-3-3, keywords, description, media;;;;4-4-4, --div--, TSconfig;;6;nowrap;5-5-5, storage_pid;;7, l18n_cfg, fe_login_mode, module, content_from_pid'),
'3' => Array('showitem' => 'hidden;;;;1-1-1, doktype, title;;3;;2-2-2, subtitle, nav_hide, url;;;;3-3-3, urltype, TSconfig;;6;nowrap;5-5-5, storage_pid;;7, l18n_cfg'),
'4' => Array('showitem' => 'hidden;;;;1-1-1, doktype, title;;3;;2-2-2, subtitle, nav_hide, shortcut;;;;3-3-3, shortcut_mode, TSconfig;;6;nowrap;5-5-5, storage_pid;;7, l18n_cfg'),
'5' => Array('showitem' => 'hidden;;;;1-1-1, doktype;;2;button, title;;3;;2-2-2, subtitle, nav_hide, nav_title, --div--, media;;;;4-4-4, --div--, TSconfig;;6;nowrap;5-5-5, storage_pid;;7, l18n_cfg, fe_login_mode, module, content_from_pid'),
'7' => Array('showitem' => 'hidden;;;;1-1-1, doktype;;2;button, title;;3;;2-2-2, subtitle, nav_hide, nav_title, --div--, mount_pid;;;;3-3-3, mount_pid_ol, media;;;;4-4-4, --div--, TSconfig;;6;nowrap;5-5-5, storage_pid;;7, l18n_cfg, fe_login_mode, module, content_from_pid'),
'199' => Array('showitem' => 'hidden;;;;1-1-1, doktype, title;;;;2-2-2, TSconfig;;6;nowrap;5-5-5, storage_pid;;7'),
'254' => Array('showitem' => 'hidden;;;;1-1-1, doktype, title;LLL:EXT:lang/locallang_general.php:LGL.title;;;2-2-2, --div--, TSconfig;;6;nowrap;5-5-5, storage_pid;;7, module'),
'255' => Array('showitem' => 'hidden;;;;1-1-1, doktype, title;;;;2-2-2')
//standard
'1' => Array('showitem' => 'hidden;;;;1-1-1, doktype;;2;button, title;;3;;2-2-2, subtitle, nav_hide,
--div--;LLL:EXT:cms/locallang_tca.xml:pages.tab.meta,
abstract;;5;;3-3-3, keywords, description,
--div--;LLL:EXT:cms/locallang_tca.xml:pages.tab.system,
TSconfig;;6;nowrap;5-5-5, storage_pid;;7,
--div--; LLL:EXT:cms/locallang_tca.xml:pages.tab.options,
l18n_cfg,
--div--; LLL:EXT:cms/locallang_tca.xml:pages.tab.visibility,
fe_group;;1;;'),
'2' => Array('showitem' => 'hidden;;;;1-1-1, doktype;;2;button, title;;3;;2-2-2, subtitle, nav_hide, nav_title, media;;;;4-4-4, content_from_pid,
--div--;LLL:EXT:cms/locallang_tca.xml:pages.tab.meta,
abstract;;5;;3-3-3, keywords, description,
--div--; LLL:EXT:cms/locallang_tca.xml:pages.tab.system,
TSconfig;;6;nowrap;5-5-5, storage_pid;;7,
--div--; LLL:EXT:cms/locallang_tca.xml:pages.tab.options,
l18n_cfg, fe_login_mode, module,
--div--; LLL:EXT:cms/locallang_tca.xml:pages.tab.visibility,
fe_group;;1;;'),
'3' => Array('showitem' => 'hidden;;;;1-1-1, doktype, title;;3;;2-2-2, subtitle, nav_hide, url;;;;3-3-3, urltype,
--div--; LLL:EXT:cms/locallang_tca.xml:pages.tab.system,
TSconfig;;6;nowrap;5-5-5, storage_pid;;7,
--div--; LLL:EXT:cms/locallang_tca.xml:pages.tab.options,
l18n_cfg,
--div--; LLL:EXT:cms/locallang_tca.xml:pages.tab.visibility,
fe_group;;1;;'),
'4' => Array('showitem' => 'hidden;;;;1-1-1, doktype, title;;3;;2-2-2, subtitle, nav_hide, shortcut;;;;3-3-3, shortcut_mode,
--div--; LLL:EXT:cms/locallang_tca.xml:pages.tab.system,
TSconfig;;6;nowrap;5-5-5, storage_pid;;7,
--div--; LLL:EXT:cms/locallang_tca.xml:pages.tab.options,
l18n_cfg,
--div--; LLL:EXT:cms/locallang_tca.xml:pages.tab.visibility,
fe_group;;1;;'),
'5' => Array('showitem' => 'hidden;;;;1-1-1, doktype;;2;button, title;;3;;2-2-2, subtitle, nav_hide, nav_title, media;;;;4-4-4, content_from_pid
--div--; LLL:EXT:cms/locallang_tca.xml:pages.tab.system,
TSconfig;;6;nowrap;5-5-5, storage_pid;;7,
--div--; LLL:EXT:cms/locallang_tca.xml:pages.tab.options,
l18n_cfg, fe_login_mode, module,
--div--; LLL:EXT:cms/locallang_tca.xml:pages.tab.visibility,
fe_group;;1;;'),
'7' => Array('showitem' => 'hidden;;;;1-1-1, doktype;;2;button, title;;3;;2-2-2, subtitle, nav_hide, nav_title, mount_pid;;;;3-3-3, mount_pid_ol, media;;;;4-4-4,content_from_pid
--div--; LLL:EXT:cms/locallang_tca.xml:pages.tab.system,
TSconfig;;6;nowrap;5-5-5, storage_pid;;7,
--div--; LLL:EXT:cms/locallang_tca.xml:pages.tab.options,
l18n_cfg, fe_login_mode, module,
--div--; LLL:EXT:cms/locallang_tca.xml:pages.tab.visibility,
fe_group;;1;;'),
'199' => Array('showitem' => 'hidden;;;;1-1-1, doktype, title;;;;2-2-2,
--div--; LLL:EXT:cms/locallang_tca.xml:pages.tab.system,
TSconfig;;6;nowrap;5-5-5, storage_pid;;7,
--div--; LLL:EXT:cms/locallang_tca.xml:pages.tab.visibility,
fe_group;;1;;'),
'254' => Array('showitem' => 'hidden;;;;1-1-1, doktype, title;LLL:EXT:lang/locallang_general.php:LGL.title;;;2-2-2,
--div--; LLL:EXT:cms/locallang_tca.xml:pages.tab.system,
TSconfig;;6;nowrap;5-5-5, storage_pid;;7, module,
--div--; LLL:EXT:cms/locallang_tca.xml:pages.tab.visibility,
fe_group;;1;;'),
'255' => Array('showitem' => 'hidden;;;;1-1-1, doktype, title;;;;2-2-2,
--div--; LLL:EXT:cms/locallang_tca.xml:pages.tab.visibility,
fe_group;;1;;')
);
// Merging palette settings:
// t3lib_div::array_merge() MUST be used - otherwise the keys will be re-numbered!
$TCA['pages']['palettes'] = t3lib_div::array_merge($TCA['pages']['palettes'],Array(
'1' => Array('showitem' => 'starttime,endtime,extendToSubpages'),
'15' => Array('showitem' => 'fe_group'),
//'15' => Array('showitem' => 'fe_group'),
'2' => Array('showitem' => 'layout, lastUpdated, newUntil, no_search'),
'3' => Array('showitem' => 'alias, target, no_cache, cache_timeout'),
'5' => Array('showitem' => 'author,author_email'),
(2-2/2)