Project

General

Profile

Bug #19330 ยป loadTCA-pages.diff

Administrator Admin, 2008-09-15 14:03

View differences:

typo3/sysext/cms/ext_tables.php (copie de travail)
$ICON_TYPES = array();
}
t3lib_div::loadTCA('pages');
// Adding pages_types:
// t3lib_div::array_merge() MUST be used!
$PAGES_TYPES = t3lib_div::array_merge(array(
t3lib/stddb/tables.php (copie de travail)
*/
$TCA = array();
/**
* Table "pages":
* The mandatory pages table. The backbone of the TYPO3 page tree structure.
* All other records configured in $TCA must have a field, "pid", which relates the record to a page record's "uid" field.
* Must be COMPLETELY configured in tables.php
*/
$TCA['pages'] = array(
'ctrl' => array(
......
'prependAtCopy' => 'LLL:EXT:lang/locallang_general.php:LGL.prependAtCopy',
'cruser_id' => 'cruser_id',
'editlock' => 'editlock',
'useColumnsForDefaultValues' => 'doktype'
'useColumnsForDefaultValues' => 'doktype',
'dynamicConfigFile' => 'T3LIB:tbl_be.php',
),
'interface' => array(
'showRecordFieldList' => 'doktype,title',
'maxDBListItems' => 30,
'maxSingleDBListItems' => 50
),
'columns' => array(
'doktype' => array(
'exclude' => 1,
'label' => 'LLL:EXT:lang/locallang_general.php:LGL.type',
'config' => array(
'type' => 'select',
'items' => array(
array('LLL:EXT:lang/locallang_tca.php:doktype.I.0', '1', 'i/pages.gif'),
array('LLL:EXT:lang/locallang_tca.php:doktype.I.1', '254', 'i/sysf.gif'),
array('LLL:EXT:lang/locallang_tca.php:doktype.I.2', '255', 'i/recycler.gif')
),
'default' => '1',
'iconsInOptionTags' => 1,
'noIconsBelowSelect' => 1,
)
),
'title' => array(
'label' => 'LLL:EXT:lang/locallang_tca.php:title',
'config' => array(
'type' => 'input',
'size' => '30',
'max' => '255',
'eval' => 'required'
)
),
'TSconfig' => array(
'exclude' => 1,
'label' => 'TSconfig:',
'config' => array(
'type' => 'text',
'cols' => '40',
'rows' => '5',
'wizards' => array(
'_PADDING' => 4,
'0' => array(
'type' => t3lib_extMgm::isLoaded('tsconfig_help')?'popup':'',
'title' => 'TSconfig QuickReference',
'script' => 'wizard_tsconfig.php?mode=page',
'icon' => 'wizard_tsconfig.gif',
'JSopenParams' => 'height=500,width=780,status=0,menubar=0,scrollbars=1',
)
),
'softref' => 'TSconfig'
),
'defaultExtras' => 'fixed-font : enable-tab',
),
'php_tree_stop' => array(
'exclude' => 1,
'label' => 'LLL:EXT:lang/locallang_tca.php:php_tree_stop',
'config' => array(
'type' => 'check'
)
),
'is_siteroot' => array(
'exclude' => 1,
'label' => 'LLL:EXT:lang/locallang_tca.php:is_siteroot',
'config' => array(
'type' => 'check'
)
),
'storage_pid' => array(
'exclude' => 1,
'label' => 'LLL:EXT:lang/locallang_tca.php:storage_pid',
'config' => array(
'type' => 'group',
'internal_type' => 'db',
'allowed' => 'pages',
'size' => '1',
'maxitems' => '1',
'minitems' => '0',
'show_thumbs' => '1'
)
),
'tx_impexp_origuid' => array('config'=>array('type'=>'passthrough')),
't3ver_label' => array(
'label' => 'LLL:EXT:lang/locallang_general.php:LGL.versionLabel',
'config' => array(
'type' => 'input',
'size' => '30',
'max' => '30',
)
),
'editlock' => array(
'exclude' => 1,
'label' => 'LLL:EXT:lang/locallang_tca.php:editlock',
'config' => array(
'type' => 'check'
)
),
),
'types' => array(
'1' => array('showitem' => 'doktype, title, TSconfig;;6;nowrap, storage_pid;;7'),
'254' => array('showitem' => 'doktype, title;LLL:EXT:lang/locallang_general.php:LGL.title, TSconfig;;6;nowrap, storage_pid;;7'),
'255' => array('showitem' => 'doktype, title, TSconfig;;6;nowrap, storage_pid;;7')
),
'palettes' => array(
'6' => array('showitem' => 'php_tree_stop, editlock'),
'7' => array('showitem' => 'is_siteroot')
)
);
/**
t3lib/stddb/tbl_be.php (copie de travail)
* This copyright notice MUST APPEAR in all copies of the script!
***************************************************************/
/**
* Contains the dynamic configuation of the fields in the core tables of TYPO3: be_users, be_groups, sys_filemounts and sys_workspace
* Contains the dynamic configuation of the fields in the core tables of TYPO3: pages, be_users, be_groups, sys_filemounts and sys_workspace
*
* $Id$
* Revised for TYPO3 3.6 July/2003 by Kasper Skaarhoj
......
/**
* Table "pages":
*/
$TCA['pages'] = array(
'ctrl' => $TCA['pages']['ctrl'],
'interface' => array(
'showRecordFieldList' => 'doktype,title',
'maxDBListItems' => 30,
'maxSingleDBListItems' => 50
),
'columns' => array(
'doktype' => array(
'exclude' => 1,
'label' => 'LLL:EXT:lang/locallang_general.php:LGL.type',
'config' => array(
'type' => 'select',
'items' => array(
array('LLL:EXT:lang/locallang_tca.php:doktype.I.0', '1', 'i/pages.gif'),
array('LLL:EXT:lang/locallang_tca.php:doktype.I.1', '254', 'i/sysf.gif'),
array('LLL:EXT:lang/locallang_tca.php:doktype.I.2', '255', 'i/recycler.gif')
),
'default' => '1',
'iconsInOptionTags' => 1,
'noIconsBelowSelect' => 1,
)
),
'title' => array(
'label' => 'LLL:EXT:lang/locallang_tca.php:title',
'config' => array(
'type' => 'input',
'size' => '30',
'max' => '255',
'eval' => 'required'
)
),
'TSconfig' => array(
'exclude' => 1,
'label' => 'TSconfig:',
'config' => array(
'type' => 'text',
'cols' => '40',
'rows' => '5',
'wizards' => array(
'_PADDING' => 4,
'0' => array(
'type' => t3lib_extMgm::isLoaded('tsconfig_help')?'popup':'',
'title' => 'TSconfig QuickReference',
'script' => 'wizard_tsconfig.php?mode=page',
'icon' => 'wizard_tsconfig.gif',
'JSopenParams' => 'height=500,width=780,status=0,menubar=0,scrollbars=1',
)
),
'softref' => 'TSconfig'
),
'defaultExtras' => 'fixed-font : enable-tab',
),
'php_tree_stop' => array(
'exclude' => 1,
'label' => 'LLL:EXT:lang/locallang_tca.php:php_tree_stop',
'config' => array(
'type' => 'check'
)
),
'is_siteroot' => array(
'exclude' => 1,
'label' => 'LLL:EXT:lang/locallang_tca.php:is_siteroot',
'config' => array(
'type' => 'check'
)
),
'storage_pid' => array(
'exclude' => 1,
'label' => 'LLL:EXT:lang/locallang_tca.php:storage_pid',
'config' => array(
'type' => 'group',
'internal_type' => 'db',
'allowed' => 'pages',
'size' => '1',
'maxitems' => '1',
'minitems' => '0',
'show_thumbs' => '1'
)
),
'tx_impexp_origuid' => array('config'=>array('type'=>'passthrough')),
't3ver_label' => array(
'label' => 'LLL:EXT:lang/locallang_general.php:LGL.versionLabel',
'config' => array(
'type' => 'input',
'size' => '30',
'max' => '30',
)
),
'editlock' => array(
'exclude' => 1,
'label' => 'LLL:EXT:lang/locallang_tca.php:editlock',
'config' => array(
'type' => 'check'
)
),
),
'types' => array(
'1' => array('showitem' => 'doktype, title, TSconfig;;6;nowrap, storage_pid;;7'),
'254' => array('showitem' => 'doktype, title;LLL:EXT:lang/locallang_general.php:LGL.title, TSconfig;;6;nowrap, storage_pid;;7'),
'255' => array('showitem' => 'doktype, title, TSconfig;;6;nowrap, storage_pid;;7')
),
'palettes' => array(
'6' => array('showitem' => 'php_tree_stop, editlock'),
'7' => array('showitem' => 'is_siteroot')
)
);
    (1-1/1)