Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- if (!defined ('TYPO3_MODE')) {
- die ('Access denied.');
- }
- $TCA['tx_consultantprofile_domain_model_consultant'] = array(
- 'ctrl' => $TCA['tx_consultantprofile_domain_model_consultant']['ctrl'],
- 'interface' => array(
- 'showRecordFieldList' => 'sys_language_uid, l10n_parent, l10n_diffsource, hidden, description, picture, reference1, reference2, reference3, reference4, reference5, categories, user',
- ),
- 'types' => array(
- '1' => array('showitem' => 'sys_language_uid;;;;1-1-1, l10n_parent, l10n_diffsource, hidden;;1, description, picture, reference1, reference2, reference3, reference4, reference5, categories, user,--div--;LLL:EXT:cms/locallang_ttc.xlf:tabs.access,starttime, endtime'),
- ),
- 'palettes' => array(
- '1' => array('showitem' => ''),
- ),
- 'columns' => array(
- 'sys_language_uid' => array(
- 'exclude' => 1,
- 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.language',
- 'config' => array(
- 'type' => 'select',
- 'foreign_table' => 'sys_language',
- 'foreign_table_where' => 'ORDER BY sys_language.title',
- 'items' => array(
- array('LLL:EXT:lang/locallang_general.xlf:LGL.allLanguages', -1),
- array('LLL:EXT:lang/locallang_general.xlf:LGL.default_value', 0)
- ),
- ),
- ),
- 'l10n_parent' => array(
- 'displayCond' => 'FIELD:sys_language_uid:>:0',
- 'exclude' => 1,
- 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.l18n_parent',
- 'config' => array(
- 'type' => 'select',
- 'items' => array(
- array('', 0),
- ),
- 'foreign_table' => 'tx_consultantprofile_domain_model_consultant',
- 'foreign_table_where' => 'AND tx_consultantprofile_domain_model_consultant.pid=###CURRENT_PID### AND tx_consultantprofile_domain_model_consultant.sys_language_uid IN (-1,0)',
- ),
- ),
- 'l10n_diffsource' => array(
- 'config' => array(
- 'type' => 'passthrough',
- ),
- ),
- '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',
- ),
- ),
- 'starttime' => array(
- 'exclude' => 1,
- 'l10n_mode' => 'mergeIfNotBlank',
- 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.starttime',
- 'config' => array(
- 'type' => 'input',
- 'size' => 13,
- 'max' => 20,
- 'eval' => 'datetime',
- 'checkbox' => 0,
- 'default' => 0,
- 'range' => array(
- 'lower' => mktime(0, 0, 0, date('m'), date('d'), date('Y'))
- ),
- ),
- ),
- 'endtime' => array(
- 'exclude' => 1,
- 'l10n_mode' => 'mergeIfNotBlank',
- 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.endtime',
- 'config' => array(
- 'type' => 'input',
- 'size' => 13,
- 'max' => 20,
- 'eval' => 'datetime',
- 'checkbox' => 0,
- 'default' => 0,
- 'range' => array(
- 'lower' => mktime(0, 0, 0, date('m'), date('d'), date('Y'))
- ),
- ),
- ),
- 'description' => array(
- 'exclude' => 0,
- 'label' => 'LLL:EXT:consultant_profile/Resources/Private/Language/locallang_db.xlf:tx_consultantprofile_domain_model_consultant.description',
- 'config' => array(
- 'type' => 'text',
- 'cols' => 40,
- 'rows' => 15,
- 'eval' => 'trim,required'
- ),
- ),
- 'picture' => array(
- 'exclude' => 0,
- 'label' => 'LLL:EXT:consultant_profile/Resources/Private/Language/locallang_db.xlf:tx_consultantprofile_domain_model_consultant.picture',
- 'config' => array(
- 'type' => 'group',
- 'internal_type' => 'file',
- 'uploadfolder' => 'uploads/tx_consultantprofile',
- 'show_thumbs' => 1,
- 'size' => 5,
- 'allowed' => $GLOBALS['TYPO3_CONF_VARS']['GFX']['imagefile_ext'],
- 'disallowed' => '',
- ),
- ),
- 'reference1' => array(
- 'exclude' => 0,
- 'label' => 'LLL:EXT:consultant_profile/Resources/Private/Language/locallang_db.xlf:tx_consultantprofile_domain_model_consultant.reference1',
- 'config' => array(
- 'type' => 'text',
- 'cols' => 40,
- 'rows' => 15,
- 'eval' => 'trim'
- ),
- ),
- 'reference2' => array(
- 'exclude' => 0,
- 'label' => 'LLL:EXT:consultant_profile/Resources/Private/Language/locallang_db.xlf:tx_consultantprofile_domain_model_consultant.reference2',
- 'config' => array(
- 'type' => 'text',
- 'cols' => 40,
- 'rows' => 15,
- 'eval' => 'trim'
- ),
- ),
- 'reference3' => array(
- 'exclude' => 0,
- 'label' => 'LLL:EXT:consultant_profile/Resources/Private/Language/locallang_db.xlf:tx_consultantprofile_domain_model_consultant.reference3',
- 'config' => array(
- 'type' => 'text',
- 'cols' => 40,
- 'rows' => 15,
- 'eval' => 'trim'
- ),
- ),
- 'reference4' => array(
- 'exclude' => 0,
- 'label' => 'LLL:EXT:consultant_profile/Resources/Private/Language/locallang_db.xlf:tx_consultantprofile_domain_model_consultant.reference4',
- 'config' => array(
- 'type' => 'text',
- 'cols' => 40,
- 'rows' => 15,
- 'eval' => 'trim'
- ),
- ),
- 'reference5' => array(
- 'exclude' => 0,
- 'label' => 'LLL:EXT:consultant_profile/Resources/Private/Language/locallang_db.xlf:tx_consultantprofile_domain_model_consultant.reference5',
- 'config' => array(
- 'type' => 'text',
- 'cols' => 40,
- 'rows' => 15,
- 'eval' => 'trim'
- ),
- ),
- 'categories' => array(
- 'exclude' => 0,
- 'label' => 'LLL:EXT:consultant_profile/Resources/Private/Language/locallang_db.xlf:tx_consultantprofile_domain_model_consultant.categories',
- 'config' => array(
- 'type' => 'select',
- 'foreign_table' => 'tx_consultantprofile_domain_model_consultantcategory',
- 'MM' => 'tx_consultantprofile_consultant_consultantcategory_mm',
- 'size' => 10,
- 'autoSizeMax' => 30,
- 'maxitems' => 9999,
- 'multiple' => 0,
- 'wizards' => array(
- '_PADDING' => 1,
- '_VERTICAL' => 1,
- 'edit' => array(
- 'type' => 'popup',
- 'title' => 'Edit',
- 'script' => 'wizard_edit.php',
- 'icon' => 'edit2.gif',
- 'popup_onlyOpenIfSelected' => 1,
- 'JSopenParams' => 'height=350,width=580,status=0,menubar=0,scrollbars=1',
- ),
- 'add' => Array(
- 'type' => 'script',
- 'title' => 'Create new',
- 'icon' => 'add.gif',
- 'params' => array(
- 'table' => 'tx_consultantprofile_domain_model_consultantcategory',
- 'pid' => '###CURRENT_PID###',
- 'setValue' => 'prepend'
- ),
- 'script' => 'wizard_add.php',
- ),
- ),
- ),
- ),
- 'user' => array(
- 'exclude' => 0,
- 'label' => 'LLL:EXT:consultant_profile/Resources/Private/Language/locallang_db.xlf:tx_consultantprofile_domain_model_consultant.user',
- 'config' => array(
- 'type' => 'inline',
- 'foreign_table' => 'fe_users',
- 'minitems' => 0,
- 'maxitems' => 1,
- 'appearance' => array(
- 'collapseAll' => 0,
- 'levelLinksPosition' => 'top',
- 'showSynchronizationLink' => 1,
- 'showPossibleLocalizationRecords' => 1,
- 'showAllLocalizationLink' => 1
- ),
- ),
- ),
- ),
- );
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement