Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- if (!defined('TYPO3_MODE')) {
- die('Access denied.');
- }
- $GLOBALS['TCA']['tx_customext_domain_model_department'] = array(
- 'ctrl' => array(
- 'title' => 'LLL:EXT:custom_ext/Resources/Private/Language/locallang_db.xlf:tx_custom_ext_domain_model_department',
- // title prefixed by department_id
- 'label' => 'department_id',
- 'label_alt' => 'title',
- 'label_alt_force' => 1,
- 'default_sortby' => 'ORDER BY title',
- 'tstamp' => 'tstamp',
- 'crdate' => 'crdate',
- 'cruser_id' => 'cruser_id',
- 'dividers2tabs' => true,
- 'versioningWS' => 2,
- 'versioning_followPages' => true,
- 'delete' => 'deleted',
- 'enablecolumns' => array(
- 'disabled' => 'hidden',
- ),
- 'searchFields' => 'title,department_id',
- 'iconfile' => 'EXT:custom_ext/Resources/Public/Icons/department.png',
- // Copy related settings:
- 'hideAtCopy' => 1,
- 'prependAtCopy' => 'LLL:EXT:custom_ext/Resources/Private/Language/locallang_db.xlf:prependAtCopy',
- 'setToDefaultOnCopy' => '',
- ),
- // info dialog for record in BE
- 'interface' => array(
- 'showRecordFieldList' => 'hidden, title',
- 'maxDBListItems' => 5,
- ),
- 'palettes' => array(
- '1' => array(
- 'canNotCollapse' => '1',
- 'showitem' => 'title, --linebreak--, title_short, --linebreak--, department_id, --linebreak--, employments',
- ),
- ),
- 'types' => array(
- '1' => array(
- 'showitem' => 'hidden, tx_extbase_type, --palette--;LLL:EXT:custom_ext/Resources/Private/Language/locallang_db.xlf:tx_custom_ext_domain_model_department.department_label;1, --div--;LLL:EXT:cms/locallang_ttc.xlf:tabs.access, starttime, endtime',
- ),
- ),
- 'columns' => array(
- 't3ver_label' => array(
- 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.versionLabel',
- 'config' => array(
- 'type' => 'input',
- 'size' => 30,
- 'max' => 255,
- ),
- ),
- 'hidden' => array(
- 'exclude' => 1,
- 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.hidden',
- 'config' => array(
- 'type' => 'check',
- ),
- ),
- 'title' => array(
- 'exclude' => 0,
- 'label' => 'LLL:EXT:custom_ext/Resources/Private/Language/locallang_db.xlf:tx_custom_ext_domain_model_department.title',
- 'config' => array(
- 'type' => 'input',
- 'size' => 30,
- 'eval' => 'trim',
- ),
- ),
- 'title_short' => array(
- 'exclude' => 0,
- 'label' => 'LLL:EXT:custom_ext/Resources/Private/Language/locallang_db.xlf:tx_custom_ext_domain_model_department.title_short',
- 'config' => array(
- 'type' => 'input',
- 'size' => 30,
- 'eval' => 'trim',
- ),
- ),
- 'department_id' => array(
- 'exclude' => 0,
- 'label' => 'LLL:EXT:custom_ext/Resources/Private/Language/locallang_db.xlf:tx_custom_ext_domain_model_department.department_id',
- 'config' => array(
- 'type' => 'input',
- 'size' => 30,
- 'eval' => 'trim',
- ),
- ),
- 'employments' => array(
- 'exclude' => 0,
- 'label' => 'LLL:EXT:custom_ext/Resources/Private/Language/locallang_db.xlf:tx_custom_ext_domain_model_department.employments',
- 'config' => array(
- 'type' => 'inline',
- 'foreign_table' => 'tx_customext_domain_model_employment',
- 'foreign_field' => 'department',
- 'foreign_label' => 'employee',
- 'appearance' => array(
- 'useSortable' => true,
- 'levelLinksPosition' => 'bottom',
- ),
- ),
- ),
- ),
- );
Add Comment
Please, Sign In to add comment