Exemple #1
0
<?php

if (!defined('TYPO3_MODE')) {
    die('Access denied.');
}
$TCA['tx_dpnglossary_domain_model_term'] = array('ctrl' => $TCA['tx_dpnglossary_domain_model_term']['ctrl'], 'interface' => array('showRecordFieldList' => 'sys_language_uid, l10n_diffsource, hidden, name, name_alternative, tooltiptext, descriptions, term_type, term_lang, images'), 'types' => array('1' => array('showitem' => 'hidden;;1, name, name_alternative, tooltiptext, descriptions, term_type, term_lang, images')), '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_dpnglossary_domain_model_term', 'foreign_table_where' => 'AND tx_dpnglossary_domain_model_term.pid=###CURRENT_PID### AND tx_dpnglossary_domain_model_term.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')), 'name' => array('exclude' => 0, 'label' => 'LLL:EXT:dpn_glossary/Resources/Private/Language/locallang.xlf:tx_dpnglossary_domain_model_term.name', 'config' => array('type' => 'input', 'size' => 30, 'eval' => 'trim,required')), 'tooltiptext' => array('exclude' => 0, 'label' => 'LLL:EXT:dpn_glossary/Resources/Private/Language/locallang.xlf:tx_dpnglossary_domain_model_term.tooltiptext', 'config' => array('type' => 'input', 'size' => 30, 'eval' => 'trim')), 'descriptions' => array('exclude' => 0, 'label' => 'LLL:EXT:dpn_glossary/Resources/Private/Language/locallang.xlf:tx_dpnglossary_domain_model_term.descriptions', 'config' => array('type' => 'inline', 'foreign_table' => 'tx_dpnglossary_domain_model_description', 'foreign_field' => 'term', 'foreign_label' => 'meaning', 'minitems' => 1, 'maxitems' => 9999, 'appearance' => array('newRecordLinkTitle' => 'LLL:EXT:dpn_glossary/Resources/Private/Language/locallang.xlf:tx_dpnglossary.new_description', 'useSortable' => 1), 'behaviour' => array('localizationMode' => 'select', 'localizeChildrenAtParentLocalization' => TRUE))), 'name_alternative' => array('exclude' => 0, 'label' => 'LLL:EXT:dpn_glossary/Resources/Private/Language/locallang.xlf:tx_dpnglossary_domain_model_term.name_alternative', 'config' => array('type' => 'input', 'size' => 30, 'eval' => 'trim')), 'term_type' => array('exclude' => 0, 'label' => 'LLL:EXT:dpn_glossary/Resources/Private/Language/locallang.xlf:tx_dpnglossary_domain_model_term.term_type', 'config' => array('type' => 'select', 'items' => array(array('LLL:EXT:dpn_glossary/Resources/Private/Language/locallang.xlf:tx_dpnglossary_domain_model_term.term_type_none', ''), array('LLL:EXT:dpn_glossary/Resources/Private/Language/locallang.xlf:tx_dpnglossary_domain_model_term.term_type_definition', 'definition'), array('LLL:EXT:dpn_glossary/Resources/Private/Language/locallang.xlf:tx_dpnglossary_domain_model_term.term_type_abbreviation', 'abbreviation'), array('LLL:EXT:dpn_glossary/Resources/Private/Language/locallang.xlf:tx_dpnglossary_domain_model_term.term_type_acronym', 'acronym')), 'default' => '')), 'term_lang' => array('exclude' => 0, 'label' => 'LLL:EXT:dpn_glossary/Resources/Private/Language/locallang.xlf:tx_dpnglossary_domain_model_term.term_lang', 'config' => array('type' => 'input', 'size' => 2, 'max' => 2, 'eval' => 'trim,lower,nospace,alpha')), 'images' => array('exclude' => 0, 'label' => 'LLL:EXT:dpn_glossary/Resources/Private/Language/locallang.xlf:tx_dpnglossary_domain_model_term.images', 'config' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::getFileFieldTCAConfig('images', array('appearance' => array('createNewRelationLinkTitle' => 'LLL:EXT:cms/locallang_ttc.xlf:images.addFileReference'), 'minitems' => 0, 'maxitems' => 10), $GLOBALS['TYPO3_CONF_VARS']['GFX']['imagefile_ext']))));
Exemple #2
0
<?php

if (!defined('TYPO3_MODE')) {
    die('Access denied.');
}
$GLOBALS['TCA']['tx_companymanagement_domain_model_team'] = array('ctrl' => $GLOBALS['TCA']['tx_companymanagement_domain_model_team']['ctrl'], 'interface' => array('showRecordFieldList' => 'sys_language_uid, l10n_parent, l10n_diffsource, hidden, name, designation, image, telephone, mobile, fax, email,description'), 'types' => array('1' => array('showitem' => 'sys_language_uid;;;;1-1-1, l10n_parent, l10n_diffsource, hidden;;1, name, designation, image, telephone, mobile, fax, email ,  description;;;richtext:rte_transform[mode=ts_links], --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_companymanagement_domain_model_team', 'foreign_table_where' => 'AND tx_companymanagement_domain_model_team.pid=###CURRENT_PID### AND tx_companymanagement_domain_model_team.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'))))), 'name' => array('exclude' => 1, 'label' => 'LLL:EXT:company_management/Resources/Private/Language/locallang_db.xlf:tx_companymanagement_domain_model_team.name', 'config' => array('type' => 'input', 'size' => 30, 'eval' => 'trim')), 'designation' => array('exclude' => 1, 'label' => 'LLL:EXT:company_management/Resources/Private/Language/locallang_db.xlf:tx_companymanagement_domain_model_team.designation', 'config' => array('type' => 'input', 'size' => 30, 'eval' => 'trim')), 'image' => array('exclude' => 1, 'label' => 'LLL:EXT:company_management/Resources/Private/Language/locallang_db.xlf:tx_companymanagement_domain_model_team.image', 'config' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::getFileFieldTCAConfig('image', array('maxitems' => 1), $GLOBALS['TYPO3_CONF_VARS']['GFX']['imagefile_ext'])), 'telephone' => array('exclude' => 1, 'label' => 'LLL:EXT:company_management/Resources/Private/Language/locallang_db.xlf:tx_companymanagement_domain_model_team.telephone', 'config' => array('type' => 'input', 'size' => 30, 'eval' => 'trim')), 'mobile' => array('exclude' => 1, 'label' => 'LLL:EXT:company_management/Resources/Private/Language/locallang_db.xlf:tx_companymanagement_domain_model_team.mobile', 'config' => array('type' => 'input', 'size' => 30, 'eval' => 'trim')), 'fax' => array('exclude' => 1, 'label' => 'LLL:EXT:company_management/Resources/Private/Language/locallang_db.xlf:tx_companymanagement_domain_model_team.fax', 'config' => array('type' => 'input', 'size' => 30, 'eval' => 'trim')), 'email' => array('exclude' => 1, 'label' => 'LLL:EXT:company_management/Resources/Private/Language/locallang_db.xlf:tx_companymanagement_domain_model_team.email', 'config' => array('type' => 'input', 'size' => 30, 'eval' => 'trim')), 'description' => array('exclude' => 1, 'label' => 'LLL:EXT:company_management/Resources/Private/Language/locallang_db.xlf:tx_companymanagement_domain_model_team.description', 'config' => array('type' => 'text', 'cols' => 40, 'rows' => 15, 'eval' => 'trim', 'wizards' => array('RTE' => array('icon' => 'wizard_rte2.gif', 'notNewRecords' => 1, 'RTEonly' => 1, 'script' => 'wizard_rte.php', 'title' => 'LLL:EXT:cms/locallang_ttc.xlf:bodytext.W.RTE', 'type' => 'script'))))));
<?php

return array('ctrl' => array('title' => 'LLL:EXT:go_maabwizerd/Resources/Private/Language/locallang_db.xlf:tx_gomaabwizerd_domain_model_storeme', 'label' => 'firstname', 'tstamp' => 'tstamp', 'crdate' => 'crdate', 'cruser_id' => 'cruser_id', 'dividers2tabs' => TRUE, 'versioningWS' => 2, 'versioning_followPages' => TRUE, 'languageField' => 'sys_language_uid', 'transOrigPointerField' => 'l10n_parent', 'transOrigDiffSourceField' => 'l10n_diffsource', 'delete' => 'deleted', 'enablecolumns' => array('disabled' => 'hidden', 'starttime' => 'starttime', 'endtime' => 'endtime'), 'searchFields' => 'firstname,lastname,address,userimage,phoneno,userdiscription,', 'iconfile' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath('go_maabwizerd') . 'Resources/Public/Icons/tx_gomaabwizerd_domain_model_storeme.gif'), 'interface' => array('showRecordFieldList' => 'sys_language_uid, l10n_parent, l10n_diffsource, hidden, firstname, lastname, address, userimage, phoneno, userdiscription'), 'types' => array('1' => array('showitem' => 'sys_language_uid;;;;1-1-1, l10n_parent, l10n_diffsource, hidden;;1, firstname, lastname, address, userimage, phoneno, userdiscription, --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', 'renderType' => 'selectSingle', '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', 'renderType' => 'selectSingle', 'items' => array(array('', 0)), 'foreign_table' => 'tx_gomaabwizerd_domain_model_storeme', 'foreign_table_where' => 'AND tx_gomaabwizerd_domain_model_storeme.pid=###CURRENT_PID### AND tx_gomaabwizerd_domain_model_storeme.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'))))), 'firstname' => array('exclude' => 1, 'label' => 'LLL:EXT:go_maabwizerd/Resources/Private/Language/locallang_db.xlf:tx_gomaabwizerd_domain_model_storeme.firstname', 'config' => array('type' => 'input', 'size' => 30, 'eval' => 'trim')), 'lastname' => array('exclude' => 1, 'label' => 'LLL:EXT:go_maabwizerd/Resources/Private/Language/locallang_db.xlf:tx_gomaabwizerd_domain_model_storeme.lastname', 'config' => array('type' => 'input', 'size' => 30, 'eval' => 'trim')), 'address' => array('exclude' => 1, 'label' => 'LLL:EXT:go_maabwizerd/Resources/Private/Language/locallang_db.xlf:tx_gomaabwizerd_domain_model_storeme.address', 'config' => array('type' => 'input', 'size' => 30, 'eval' => 'trim')), 'userimage' => array('exclude' => 1, 'label' => 'LLL:EXT:go_maabwizerd/Resources/Private/Language/locallang_db.xlf:tx_gomaabwizerd_domain_model_storeme.userimage', 'config' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::getFileFieldTCAConfig('userimage', array('appearance' => array('createNewRelationLinkTitle' => 'LLL:EXT:cms/locallang_ttc.xlf:images.addFileReference'), 'foreign_types' => array('0' => array('showitem' => '
							--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,
							--palette--;;filePalette'), \TYPO3\CMS\Core\Resource\File::FILETYPE_TEXT => array('showitem' => '
							--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,
							--palette--;;filePalette'), \TYPO3\CMS\Core\Resource\File::FILETYPE_IMAGE => array('showitem' => '
							--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,
							--palette--;;filePalette'), \TYPO3\CMS\Core\Resource\File::FILETYPE_AUDIO => array('showitem' => '
							--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,
							--palette--;;filePalette'), \TYPO3\CMS\Core\Resource\File::FILETYPE_VIDEO => array('showitem' => '
							--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,
							--palette--;;filePalette'), \TYPO3\CMS\Core\Resource\File::FILETYPE_APPLICATION => array('showitem' => '
							--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,
							--palette--;;filePalette')), 'maxitems' => 1), $GLOBALS['TYPO3_CONF_VARS']['GFX']['imagefile_ext'])), 'phoneno' => array('exclude' => 1, 'label' => 'LLL:EXT:go_maabwizerd/Resources/Private/Language/locallang_db.xlf:tx_gomaabwizerd_domain_model_storeme.phoneno', 'config' => array('type' => 'input', 'size' => 30, 'eval' => 'trim')), 'userdiscription' => array('exclude' => 1, 'label' => 'LLL:EXT:go_maabwizerd/Resources/Private/Language/locallang_db.xlf:tx_gomaabwizerd_domain_model_storeme.userdiscription', 'config' => array('type' => 'text', 'cols' => 40, 'rows' => 15, 'eval' => 'trim'))));
     hidden,
     content_element,
     type,
     color,
     title,
     link,
     image,
 '), 'types' => array('1' => array('showitem' => '
     hidden;;1,
     content_element,
     type,
     color,
     title,
     link,
     image,
 '), '2' => array('showitem' => '
     hidden;;1,
     content_element,
     type,
     title,
     link,
     image,
 '), '3' => array('showitem' => '
     hidden;;1,
     content_element,
     type,
     title,
     link,
     image,
 ')), 'palettes' => array('1' => array('showitem' => '')), 'columns' => array('hidden' => array('exclude' => 1, 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.hidden', 'config' => array('type' => 'check')), 'content_element' => array('exclude' => 0, 'label' => 'LLL:EXT:t3crr_contentelements/Resources/Private/Language/Language.xml:tx_t3crrcontentelements_sponsorfeature_item.content_element', 'config' => array('type' => 'select', 'foreign_table' => 'tt_content', 'foreign_table_where' => 'AND tt_content.pid=###CURRENT_PID### AND tt_content.CType="t3crr_sponsorfeature"', 'maxitems' => 1)), 'type' => array('config' => array('default' => 1, 'items' => array(array('LLL:EXT:t3crr_contentelements/Resources/Private/Language/Language.xml:sponsors.premium', 1), array('LLL:EXT:t3crr_contentelements/Resources/Private/Language/Language.xml:sponsors.value', 2), array('LLL:EXT:t3crr_contentelements/Resources/Private/Language/Language.xml:sponsors.media', 3)), 'maxitems' => 1, 'size' => 1, 'type' => 'select', 'exclude' => 1), 'label' => 'LLL:EXT:t3crr_contentelements/Resources/Private/Language/Language.xml:tx_t3crrcontentelements_sponsorfeature_item.type'), 'color' => array('label' => 'Farbe', 'exclude' => 1, 'config' => array('type' => 'select', 'items' => array(array('white', 'white'), array('grey', 'grey'), array('black', 'black'), array('blue', 'blue')), 'default' => 'white')), 'title' => array('exclude' => 0, 'label' => 'LLL:EXT:t3crr_contentelements/Resources/Private/Language/Language.xml:tx_t3crrcontentelements_sponsorfeature_item.title', 'config' => array('type' => 'input', 'size' => 50, 'eval' => 'trim,required')), 'image' => array('exclude' => 0, 'label' => 'LLL:EXT:t3crr_contentelements/Resources/Private/Language/Language.xml:tx_t3crrcontentelements_sponsorfeature_item.image', 'config' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::getFileFieldTCAConfig('image', array('appearance' => array('createNewRelationLinkTitle' => 'LLL:EXT:cms/locallang_ttc.xlf:images.addFileReference'), 'minitems' => 0, 'maxitems' => 1), $GLOBALS['TYPO3_CONF_VARS']['GFX']['imagefile_ext'])), 'link' => array('label' => 'LLL:EXT:t3crr_contentelements/Resources/Private/Language/Language.xml:tx_t3crrcontentelements_sponsorfeature_item.link', 'config' => array('type' => 'input', 'max' => 256, 'size' => 50, 'softref' => 'typolink', 'wizards' => array('link' => array('type' => 'popup', 'icon' => 'link_popup.gif', 'JSopenParams' => 'height=300,width=500,status=0,menubar=0,scrollbars=1', 'script' => 'browse_links.php?mode=wizard', 'title' => 'LLL:EXT:cms/locallang_ttc.xml:header_link_formlabel'), '_PADDING' => 2)))));
<?php

if (!defined('TYPO3_MODE')) {
    die('Access denied.');
}
$GLOBALS['TCA']['tx_skphotobox_domain_model_image'] = array('ctrl' => $GLOBALS['TCA']['tx_skphotobox_domain_model_image']['ctrl'], 'interface' => array('showRecordFieldList' => 'sys_language_uid, l10n_parent, l10n_diffsource, hidden, title, thumb_image, big_image'), 'types' => array('1' => array('showitem' => 'sys_language_uid;;;;1-1-1, l10n_parent, l10n_diffsource, hidden;;1, title, thumb_image, big_image, --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_skphotobox_domain_model_image', 'foreign_table_where' => 'AND tx_skphotobox_domain_model_image.pid=###CURRENT_PID### AND tx_skphotobox_domain_model_image.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'))))), 'title' => array('exclude' => 1, 'label' => 'LLL:EXT:sk_photobox/Resources/Private/Language/locallang_db.xlf:tx_skphotobox_domain_model_image.title', 'config' => array('type' => 'input', 'size' => 30, 'eval' => 'trim')), 'thumb_image' => array('exclude' => 1, 'label' => 'LLL:EXT:sk_photobox/Resources/Private/Language/locallang_db.xlf:tx_skphotobox_domain_model_image.thumb_image', 'config' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::getFileFieldTCAConfig('thumbImage', array('maxitems' => 1), $GLOBALS['TYPO3_CONF_VARS']['GFX']['imagefile_ext'])), 'big_image' => array('exclude' => 1, 'label' => 'LLL:EXT:sk_photobox/Resources/Private/Language/locallang_db.xlf:tx_skphotobox_domain_model_image.big_image', 'config' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::getFileFieldTCAConfig('bigImage', array('maxitems' => 1), $GLOBALS['TYPO3_CONF_VARS']['GFX']['imagefile_ext'])), 'photobox' => array('config' => array('type' => 'passthrough'))));
## EXTENSION BUILDER DEFAULTS END TOKEN - Everything BEFORE this line is overwritten with the defaults of the extension builder
<?php

return array('ctrl' => array('label' => 'header', 'label_alt' => 'bodytext', 'sortby' => 'sorting', 'tstamp' => 'tstamp', 'crdate' => 'crdate', 'cruser_id' => 'cruser_id', 'title' => 'LLL:EXT:bootstrap_package/Resources/Private/Language/Backend.xlf:tab_item', 'delete' => 'deleted', 'versioningWS' => 2, 'versioning_followPages' => true, 'origUid' => 't3_origuid', 'hideAtCopy' => false, 'prependAtCopy' => 'LLL:EXT:lang/locallang_general.xlf:LGL.prependAtCopy', 'transOrigPointerField' => 'l10n_parent', 'transOrigDiffSourceField' => 'l10n_diffsource', 'languageField' => 'sys_language_uid', 'dividers2tabs' => true, 'enablecolumns' => array('disabled' => 'hidden', 'starttime' => 'starttime', 'endtime' => 'endtime'), 'typeicon_classes' => array('default' => 'content-bootstrappackage-tab-item')), 'interface' => array('showRecordFieldList' => '
            hidden,
            tt_content,
            header,
            bodytext
        '), 'types' => array('1' => array('showitem' => '
            --palette--;LLL:EXT:cms/locallang_ttc.xlf:palette.general;general,
            header,
            bodytext,
            media,
            mediaorient,
            --div--;LLL:EXT:cms/locallang_ttc.xlf:tabs.access,
            --palette--;LLL:EXT:cms/locallang_ttc.xlf:palette.visibility;visibility,
            --palette--;LLL:EXT:cms/locallang_ttc.xlf:palette.access;access,
        ')), 'palettes' => array('1' => array('showitem' => ''), 'access' => array('showitem' => '
                starttime;LLL:EXT:cms/locallang_ttc.xlf:starttime_formlabel,
                endtime;LLL:EXT:cms/locallang_ttc.xlf:endtime_formlabel
            ', 'canNotCollapse' => 1), 'general' => array('showitem' => '
                tt_content
            ', 'canNotCollapse' => 1), 'visibility' => array('showitem' => '
                hidden;LLL:EXT:bootstrap_package/Resources/Private/Language/Backend.xlf:tab_item
            ', 'canNotCollapse' => 1)), 'columns' => array('tt_content' => array('exclude' => 0, 'label' => 'LLL:EXT:bootstrap_package/Resources/Private/Language/Backend.xlf:tab_item.tt_content', 'config' => array('type' => 'select', 'foreign_table' => 'tt_content', 'foreign_table_where' => 'AND tt_content.pid=###CURRENT_PID### AND tt_content.CType="bootstrap_package_tab"', 'maxitems' => 1)), 'hidden' => array('exclude' => 1, 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.hidden', 'config' => array('type' => 'check', 'items' => array('1' => array('0' => 'LLL:EXT:cms/locallang_ttc.xlf:hidden.I.0')))), 'starttime' => array('exclude' => 1, 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.starttime', 'config' => array('type' => 'input', 'size' => '13', 'max' => '20', 'eval' => 'datetime', 'default' => '0'), 'l10n_mode' => 'exclude', 'l10n_display' => 'defaultAsReadonly'), 'endtime' => array('exclude' => 1, 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.endtime', 'config' => array('type' => 'input', 'size' => '13', 'max' => '20', 'eval' => 'datetime', 'default' => '0', 'range' => array('upper' => mktime(0, 0, 0, 12, 31, 2020))), 'l10n_mode' => 'exclude', 'l10n_display' => 'defaultAsReadonly'), '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.php:LGL.l18n_parent', 'config' => array('type' => 'select', 'items' => array(array('', 0)), 'foreign_table' => 'tx_bootstrappackage_tab_item', 'foreign_table_where' => 'AND tx_bootstrappackage_tab_item.uid=###REC_FIELD_l10n_parent### AND tx_bootstrappackage_tab_item.sys_language_uid IN (-1,0)')), 'l10n_diffsource' => array('config' => array('type' => 'passthrough')), 'header' => array('exclude' => 0, 'label' => 'LLL:EXT:bootstrap_package/Resources/Private/Language/Backend.xlf:tab_item.header', 'config' => array('type' => 'input', 'size' => 50, 'eval' => 'trim,required')), 'bodytext' => array('exclude' => 0, 'label' => 'LLL:EXT:bootstrap_package/Resources/Private/Language/Backend.xlf:tab_item.bodytext', 'config' => array('type' => 'text', 'cols' => 40, 'rows' => 3), 'defaultExtras' => 'richtext:rte_transform[flag=rte_enabled|mode=ts_css]'), 'media' => array('exclude' => 0, 'label' => 'LLL:EXT:bootstrap_package/Resources/Private/Language/Backend.xlf:tab_item.media', 'config' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::getFileFieldTCAConfig('media', array('appearance' => array('createNewRelationLinkTitle' => 'LLL:EXT:cms/locallang_ttc.xlf:images.addFileReference'), 'foreign_types' => array('0' => array('showitem' => '
                                --palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,
                                --palette--;;filePalette'), \TYPO3\CMS\Core\Resource\File::FILETYPE_IMAGE => array('showitem' => '
                                --palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,
                                --palette--;;filePalette')), 'minitems' => 0, 'maxitems' => 1), $GLOBALS['TYPO3_CONF_VARS']['SYS']['mediafile_ext'])), 'mediaorient' => array('exclude' => 1, 'label' => 'LLL:EXT:bootstrap_package/Resources/Private/Language/Backend.xlf:tab_item.mediaorient', 'config' => array('type' => 'select', 'renderType' => 'selectSingle', 'items' => array(array('LLL:EXT:bootstrap_package/Resources/Private/Language/Backend.xlf:tab_item.mediaorient.left', 0), array('LLL:EXT:bootstrap_package/Resources/Private/Language/Backend.xlf:tab_item.mediaorient.right', 1)), 'default' => 0))));
<?php

return array('ctrl' => array('label' => 'title', 'tstamp' => 'tstamp', 'title' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages_language_overlay', 'versioningWS' => true, 'versioning_followPages' => true, 'origUid' => 't3_origuid', 'crdate' => 'crdate', 'cruser_id' => 'cruser_id', 'delete' => 'deleted', 'enablecolumns' => array('disabled' => 'hidden', 'starttime' => 'starttime', 'endtime' => 'endtime'), 'transOrigPointerField' => 'pid', 'transOrigPointerTable' => 'pages', 'transOrigDiffSourceField' => 'l18n_diffsource', 'shadowColumnsForNewPlaceholders' => 'title', 'languageField' => 'sys_language_uid', 'type' => 'doktype', 'typeicon_classes' => array('default' => 'mimetypes-x-content-page-language-overlay'), 'searchFields' => 'title,subtitle,nav_title,keywords,description,abstract,author,author_email,url'), 'interface' => array('showRecordFieldList' => 'title,hidden,starttime,endtime,keywords,description,abstract'), 'columns' => array('doktype' => $GLOBALS['TCA']['pages']['columns']['doktype'], 'hidden' => array('exclude' => 1, 'label' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.hidden', 'config' => array('type' => 'check', 'default' => '0', 'items' => array('1' => array('0' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.hidden_checkbox_1_formlabel')))), 'starttime' => array('exclude' => 1, 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.starttime', 'config' => array('type' => 'input', 'size' => '13', 'eval' => 'datetime', 'default' => '0')), 'endtime' => array('exclude' => 1, 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.endtime', 'config' => array('type' => 'input', 'size' => '13', 'eval' => 'datetime', 'default' => '0', 'range' => array('upper' => mktime(0, 0, 0, 12, 31, 2020)))), 'title' => array('l10n_mode' => 'prefixLangTitle', 'label' => $GLOBALS['TCA']['pages']['columns']['title']['label'], 'l10n_cat' => 'text', 'config' => array('type' => 'input', 'size' => '50', 'max' => '255', 'eval' => 'trim,required')), 'subtitle' => array('exclude' => 1, 'l10n_cat' => 'text', 'label' => $GLOBALS['TCA']['pages']['columns']['subtitle']['label'], 'config' => array('type' => 'input', 'size' => '50', 'max' => '255', 'eval' => 'trim')), 'nav_title' => array('exclude' => 1, 'l10n_cat' => 'text', 'label' => $GLOBALS['TCA']['pages']['columns']['nav_title']['label'], 'config' => array('type' => 'input', 'size' => '50', 'max' => '255', 'eval' => 'trim')), 'keywords' => array('exclude' => 1, 'label' => $GLOBALS['TCA']['pages']['columns']['keywords']['label'], 'config' => array('type' => 'text', 'cols' => '40', 'rows' => '3')), 'description' => array('exclude' => 1, 'label' => $GLOBALS['TCA']['pages']['columns']['description']['label'], 'config' => array('type' => 'text', 'cols' => '40', 'rows' => '3')), 'abstract' => array('exclude' => 1, 'label' => $GLOBALS['TCA']['pages']['columns']['abstract']['label'], 'config' => array('type' => 'text', 'cols' => '40', 'rows' => '3')), 'author' => array('exclude' => 1, 'label' => $GLOBALS['TCA']['pages']['columns']['author']['label'], 'config' => array('type' => 'input', 'size' => '23', 'eval' => 'trim', 'max' => '80')), 'author_email' => array('exclude' => 1, 'label' => $GLOBALS['TCA']['pages']['columns']['author_email']['label'], 'config' => array('type' => 'input', 'size' => '23', 'eval' => 'trim', 'max' => '80', 'softref' => 'email[subst]')), 'media' => array('exclude' => 1, 'label' => $GLOBALS['TCA']['pages']['columns']['media']['label'], 'config' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::getFileFieldTCAConfig('media')), 'url' => array('exclude' => 1, 'label' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.url', 'config' => array('type' => 'input', 'size' => '23', 'max' => '255', 'eval' => 'trim', 'softref' => 'url')), 'urltype' => array('exclude' => 1, 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.type', 'config' => array('type' => 'select', 'renderType' => 'selectSingle', 'items' => $GLOBALS['TCA']['pages']['columns']['urltype']['config']['items'], 'default' => '1')), 'shortcut' => array('label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.shortcut_page', 'config' => array('type' => 'group', 'internal_type' => 'db', 'allowed' => 'pages', 'size' => '1', 'maxitems' => '1', 'minitems' => '0', 'show_thumbs' => '1', 'wizards' => array('suggest' => array('type' => 'suggest')))), 'shortcut_mode' => array('exclude' => 1, 'label' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.shortcut_mode', 'config' => array('type' => 'select', 'renderType' => 'selectSingle', 'items' => $GLOBALS['TCA']['pages']['columns']['shortcut_mode']['config']['items'], 'default' => '0')), 'sys_language_uid' => array('label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.language', 'config' => array('type' => 'select', 'renderType' => 'selectSingle', 'foreign_table' => 'sys_language', 'foreign_table_where' => 'ORDER BY sys_language.title', 'items' => array(), 'default' => 0, 'showIconTable' => true)), 'tx_impexp_origuid' => array('config' => array('type' => 'passthrough')), 'l18n_diffsource' => array('config' => array('type' => 'passthrough', 'default' => '')), 't3ver_label' => array('label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.versionLabel', 'config' => array('type' => 'input', 'size' => '30', 'max' => '255'))), 'types' => array((string) \TYPO3\CMS\Frontend\Page\PageRepository::DOKTYPE_DEFAULT => array('showitem' => '--palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.standard;standard,
					--palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.title;title,
				--div--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.tabs.access,
					--palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.visibility;hiddenonly,
					--palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.access;access,
				--div--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.tabs.metadata,
					--palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.abstract;abstract,
					--palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.metatags;metatags,
					--palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.editorial;editorial,
				--div--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.tabs.resources,
					--palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.media;media,
				--div--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.tabs.extended,
		'), (string) \TYPO3\CMS\Frontend\Page\PageRepository::DOKTYPE_LINK => array('showitem' => '--palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.external;external,
					--palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.title;title,
				--div--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.tabs.access,
					--palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.visibility;hiddenonly,
					--palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.access;access,
				--div--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.tabs.metadata,
					--palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.abstract;abstract,
					--palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.editorial;editorial,
				--div--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.tabs.resources,
					--palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.media;media,
				--div--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.tabs.extended,
		'), (string) \TYPO3\CMS\Frontend\Page\PageRepository::DOKTYPE_SHORTCUT => array('showitem' => '--palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.shortcut;shortcut,
					--palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.shortcutpage;shortcutpage,
					--palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.title;title,
				--div--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.tabs.access,
					--palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.visibility;hiddenonly,
					--palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.access;access,
<?php

if (!defined('TYPO3_MODE')) {
    die('Access denied.');
}
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::allowTableOnStandardPages('tx_sschhtml5videoplayer_domain_model_audio');
return ['ctrl' => ['title' => 'LLL:EXT:ssch_html5videoplayer/Resources/Private/Language/locallang_db.xlf:tx_sschhtml5videoplayer_domain_model_audio', 'label' => 'title', 'tstamp' => 'tstamp', 'crdate' => 'crdate', 'cruser_id' => 'cruser_id', 'dividers2tabs' => true, 'versioningWS' => 2, 'versioning_followPages' => true, 'origUid' => 't3_origuid', 'languageField' => 'sys_language_uid', 'transOrigPointerField' => 'l10n_parent', 'transOrigDiffSourceField' => 'l10n_diffsource', 'delete' => 'deleted', 'enablecolumns' => ['disabled' => 'hidden', 'starttime' => 'starttime', 'endtime' => 'endtime'], 'iconfile' => TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath('ssch_html5videoplayer') . 'Resources/Public/Icons/tx_sschhtml5videoplayer_domain_model_audio.gif'], 'interface' => ['showRecordFieldList' => 'sys_language_uid, l10n_parent, l10n_diffsource, hidden, title, audio_source, image'], 'types' => ['1' => ['showitem' => 'sys_language_uid;;;;1-1-1, l10n_parent, l10n_diffsource, hidden;;1, title, image, description;;;richtext[paste|bold|italic|underline|formatblock|class|left|center|right|orderedlist|unorderedlist|outdent|indent|link|image]:rte_transform[mode=ts], audio_source, --div--;LLL:EXT:ssch_html5videoplayer/Resources/Private/Language/locallang_db.xlf:tx_sschhtml5videoplayer_domain_model_audio.categories, categories, --div--;LLL:EXT:cms/locallang_ttc.xml:tabs.access,starttime, endtime']], 'palettes' => ['1' => ['showitem' => '']], 'columns' => ['sys_language_uid' => ['exclude' => 1, 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.language', 'config' => ['type' => 'select', 'foreign_table' => 'sys_language', 'foreign_table_where' => 'ORDER BY sys_language.title', 'items' => [['LLL:EXT:lang/locallang_general.xlf:LGL.allLanguages', -1], ['LLL:EXT:lang/locallang_general.xlf:LGL.default_value', 0]]]], 'l10n_parent' => ['displayCond' => 'FIELD:sys_language_uid:>:0', 'exclude' => 1, 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.l18n_parent', 'config' => ['type' => 'select', 'items' => [['', 0]], 'foreign_table' => 'tx_sschhtml5videoplayer_domain_model_audio', 'foreign_table_where' => 'AND tx_sschhtml5videoplayer_domain_model_audio.pid=###CURRENT_PID### AND tx_sschhtml5videoplayer_domain_model_audio.sys_language_uid IN (-1,0)']], 'l10n_diffsource' => ['config' => ['type' => 'passthrough']], 't3ver_label' => ['label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.versionLabel', 'config' => ['type' => 'input', 'size' => 30, 'max' => 255]], 'hidden' => ['exclude' => 1, 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.hidden', 'config' => ['type' => 'check']], 'starttime' => ['exclude' => 1, 'l10n_mode' => 'mergeIfNotBlank', 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.starttime', 'config' => ['type' => 'input', 'size' => 13, 'max' => 20, 'eval' => 'datetime', 'checkbox' => 0, 'default' => 0, 'range' => ['lower' => mktime(0, 0, 0, date('m'), date('d'), date('Y'))]]], 'endtime' => ['exclude' => 1, 'l10n_mode' => 'mergeIfNotBlank', 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.endtime', 'config' => ['type' => 'input', 'size' => 13, 'max' => 20, 'eval' => 'datetime', 'checkbox' => 0, 'default' => 0, 'range' => ['lower' => mktime(0, 0, 0, date('m'), date('d'), date('Y'))]]], 'title' => ['exclude' => 1, 'label' => 'LLL:EXT:ssch_html5videoplayer/Resources/Private/Language/locallang_db.xlf:tx_sschhtml5videoplayer_domain_model_audio.title', 'config' => ['type' => 'input', 'size' => 30, 'eval' => 'trim,required']], 'description' => ['exclude' => 1, 'label' => 'LLL:EXT:ssch_html5videoplayer/Resources/Private/Language/locallang_db.xlf:tx_sschhtml5videoplayer_domain_model_video.description', 'config' => ['type' => 'text', 'cols' => 40, 'rows' => 15, 'wizards' => ['_PADDING' => 2, 'RTE' => ['notNewRecords' => 1, 'RTEonly' => 1, 'type' => 'script', 'title' => 'Full screen Rich Text Editing|Formatteret redigering i hele vinduet', 'icon' => 'wizard_rte2.gif', 'script' => 'wizard_rte.php']]]], 'audio_source' => ['exclude' => 1, 'label' => 'LLL:EXT:ssch_html5videoplayer/Resources/Private/Language/locallang_db.xlf:tx_sschhtml5videoplayer_domain_model_audio.audio_source', 'config' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::getFileFieldTCAConfig('$(field_name)', ['maxitems' => 1], 'mp3')], 'image' => ['exclude' => 1, 'label' => 'LLL:EXT:ssch_html5videoplayer/Resources/Private/Language/locallang_db.xlf:tx_sschhtml5videoplayer_domain_model_audio.image', 'config' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::getFileFieldTCAConfig('image', ['maxitems' => 1], $GLOBALS['TYPO3_CONF_VARS']['GFX']['imagefile_ext'])], 'categories' => ['exclude' => 1, 'l10n_mode' => 'mergeIfNotBlank', 'label' => 'LLL:EXT:ssch_html5videoplayer/Resources/Private/Language/locallang_db.xlf:tx_sschhtml5videoplayer_domain_model_audio.categories', 'config' => ['type' => 'select', 'renderMode' => 'tree', 'treeConfig' => ['parentField' => 'parent', 'appearance' => ['showHeader' => true, 'allowRecursiveMode' => true, 'expandAll' => true, 'maxLevels' => 99]], 'MM' => 'sys_category_record_mm', 'MM_match_fields' => ['fieldname' => 'categories', 'tablenames' => 'tx_sschhtml5videoplayer_domain_model_audio'], 'MM_opposite_field' => 'items', 'foreign_table' => 'sys_category', 'foreign_table_where' => ' AND (sys_category.sys_language_uid = 0 OR sys_category.l10n_parent = 0) ORDER BY sys_category.sorting', 'size' => 10, 'autoSizeMax' => 20, 'minitems' => 0, 'maxitems' => 20]]]];
<?php

## EXTENSION BUILDER DEFAULTS END TOKEN - Everything BEFORE this line is overwritten with the defaults of the extension builder
$GLOBALS['TCA']['tx_jsfaq_domain_model_content']['columns']['options']['config']['items'] = array(array('LLL:EXT:js_faq/Resources/Private/Language/locallang_db.xlf:tx_jsfaq_domain_model_content.options.I.0', 0), array('LLL:EXT:js_faq/Resources/Private/Language/locallang_db.xlf:tx_jsfaq_domain_model_content.options.I.1', 1), array('LLL:EXT:js_faq/Resources/Private/Language/locallang_db.xlf:tx_jsfaq_domain_model_content.options.I.2', 2));
$GLOBALS['TCA']['tx_jsfaq_domain_model_content']['ctrl']['requestUpdate'] = 'options';
$GLOBALS['TCA']['tx_jsfaq_domain_model_content']['columns']['description']['config']['defaultExtras'] = 'richtext:rte_transform[flag=rte_enabled|mode=ts]';
$GLOBALS['TCA']['tx_jsfaq_domain_model_content']['columns']['description']['displayCond'] = 'FIELD:options:=:1';
$GLOBALS['TCA']['tx_jsfaq_domain_model_content']['columns']['image']['config'] = \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::getFileFieldTCAConfig('image', array('maxitems' => 99), $GLOBALS['TYPO3_CONF_VARS']['GFX']['imagefile_ext']);
$GLOBALS['TCA']['tx_jsfaq_domain_model_content']['columns']['image']['displayCond'] = 'FIELD:options:=:2';
Exemple #10
0
<?php

defined('TYPO3_MODE') or die;
$_LLL = 'LLL:EXT:cart/Resources/Private/Language/locallang_db.xlf';
$newSysCategoryColumns = ['images' => ['exclude' => 1, 'l10n_mode' => 'mergeIfNotBlank', 'label' => $_LLL . ':tx_cart_domain_model_category.image', 'config' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::getFileFieldTCAConfig('images', ['appearance' => ['createNewRelationLinkTitle' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:images.addFileReference', 'showPossibleLocalizationRecords' => 1, 'showRemovedLocalizationRecords' => 1, 'showAllLocalizationLink' => 1, 'showSynchronizationLink' => 1], 'foreign_match_fields' => ['fieldname' => 'images', 'tablenames' => 'sys_category', 'table_local' => 'sys_file']], $GLOBALS['TYPO3_CONF_VARS']['GFX']['imagefile_ext'])], 'cart_product_single_pid' => ['exclude' => 1, 'l10n_mode' => 'mergeIfNotBlank', 'label' => $_LLL . ':tx_cart_domain_model_category.cart_product_single_pid', 'config' => ['type' => 'group', 'internal_type' => 'db', 'allowed' => 'pages', 'size' => 1, 'maxitems' => 1, 'minitems' => 0, 'show_thumbs' => 1, 'default' => 0, 'wizards' => ['suggest' => ['type' => 'suggest', 'default' => ['searchWholePhrase' => true]]]]]];
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTCAcolumns('sys_category', $newSysCategoryColumns);
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addToAllTCAtypes('sys_category', '--div--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.tabs.options, images', '', 'before:description');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addToAllTCAtypes('sys_category', 'cart_product_single_pid', '', 'after:description');
<?php

if (!defined('TYPO3_MODE')) {
    die('Access denied.');
}
$GLOBALS['TCA']['tx_whoshop_domain_model_track'] = array('ctrl' => $GLOBALS['TCA']['tx_whoshop_domain_model_track']['ctrl'], 'interface' => array('showRecordFieldList' => 'sys_language_uid, l10n_parent, l10n_diffsource, hidden, track_number, title, authority, has_example, example'), 'types' => array('0' => array('showitem' => 'sys_language_uid;;;;1-1-1, l10n_parent, l10n_diffsource, hidden;;1, title, authority, --div--;LLL:EXT:who_shop/Resources/Private/Language/locallang_db.xlf:tx_whoshop_domain_model_track.div.audio, has_example, example, --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_whoshop_domain_model_track', 'foreign_table_where' => 'AND tx_whoshop_domain_model_track.pid=###CURRENT_PID### AND tx_whoshop_domain_model_track.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'))))), 'track_number' => array('exclude' => 1, 'label' => 'LLL:EXT:who_shop/Resources/Private/Language/locallang_db.xlf:tx_whoshop_domain_model_track.track_number', 'config' => array('type' => 'input', 'size' => 1, 'eval' => 'trim')), 'title' => array('exclude' => 1, 'label' => 'LLL:EXT:who_shop/Resources/Private/Language/locallang_db.xlf:tx_whoshop_domain_model_track.title', 'config' => array('type' => 'input', 'size' => 30, 'eval' => 'required,trim')), 'authority' => array('exclude' => 1, 'label' => 'LLL:EXT:who_shop/Resources/Private/Language/locallang_db.xlf:tx_whoshop_domain_model_track.authority', 'config' => array('type' => 'input', 'size' => 30, 'eval' => 'trim')), 'has_example' => array('exclude' => 1, 'label' => 'LLL:EXT:who_shop/Resources/Private/Language/locallang_db.xlf:tx_whoshop_domain_model_track.has_example', 'config' => array('type' => 'check', 'default' => '0', 'eval' => 'num')), 'example' => array('exclude' => 0, 'displayCond' => 'FIELD:has_example:=:1', 'label' => 'LLL:EXT:who_shop/Resources/Private/Language/locallang_db.xlf:tx_whoshop_domain_model_track.example', 'config' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::getFileFieldTCAConfig('media')), 'content_element' => array('config' => array('type' => 'passthrough')), 'sorting' => array('config' => array('type' => 'passthrough'))));
						--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;newsPalette,
						--palette--;;imageoverlayPalette,
						--palette--;;filePalette'), \TYPO3\CMS\Core\Resource\File::FILETYPE_IMAGE => array('showitem' => '
						--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;newsPalette,
						--palette--;;imageoverlayPalette,
						--palette--;;filePalette'), \TYPO3\CMS\Core\Resource\File::FILETYPE_AUDIO => array('showitem' => '
						--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;newsPalette,
						--palette--;;imageoverlayPalette,
						--palette--;;filePalette'), \TYPO3\CMS\Core\Resource\File::FILETYPE_VIDEO => array('showitem' => '
						--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;newsPalette,
						--palette--;;imageoverlayPalette,
						--palette--;;filePalette'), \TYPO3\CMS\Core\Resource\File::FILETYPE_APPLICATION => array('showitem' => '
						--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;newsPalette,
						--palette--;;imageoverlayPalette,
						--palette--;;filePalette'))), $GLOBALS['TYPO3_CONF_VARS']['GFX']['imagefile_ext'] . ',flv,mp4'));
    $tx_news_domain_model_news['columns']['fal_related_files'] = array('exclude' => 1, 'l10n_mode' => 'mergeIfNotBlank', 'label' => '' . $ll . 'tx_news_domain_model_news.fal_related_files', 'config' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::getFileFieldTCAConfig('fal_related_files', array('appearance' => array('createNewRelationLinkTitle' => $ll . 'tx_news_domain_model_news.fal_related_files.add', 'showPossibleLocalizationRecords' => 1, 'showRemovedLocalizationRecords' => 1, 'showAllLocalizationLink' => 1, 'showSynchronizationLink' => 1), 'foreign_match_fields' => array('fieldname' => 'fal_related_files', 'tablenames' => 'tx_news_domain_model_news', 'table_local' => 'sys_file'))));
    // only use FAL
    if ($configuration->getUseFal() === 1) {
        foreach ($tx_news_domain_model_news['types'] as $key => $config) {
            $tx_news_domain_model_news['types'][$key]['showitem'] = str_replace(array(',media,', ',related_files,'), array(',fal_media,', ',fal_related_files,'), $config['showitem']);
        }
        unset($tx_news_domain_model_news['columns']['media']);
        unset($tx_news_domain_model_news['columns']['related_files']);
        // use FAL and media multimedia
    } elseif ($configuration->getUseFal() === 3) {
        foreach ($tx_news_domain_model_news['types'] as $key => $config) {
            $tx_news_domain_model_news['types'][$key]['showitem'] = str_replace(array(',media,', ',related_files,'), array(',fal_media,media,', ',fal_related_files,'), $config['showitem']);
        }
        unset($tx_news_domain_model_news['columns']['related_files']);
        // change media label
        $tx_news_domain_model_news['columns']['media']['label'] = $ll . 'tx_news_domain_model_media.type.I.1';
<?php

return ['ctrl' => ['title' => 'LLL:EXT:theaterinfo/Resources/Private/Language/locallang_db.xml:tx_theaterinfo_domain_model_play', 'label' => 'title', 'tstamp' => 'tstamp', 'crdate' => 'crdate', 'cruser_id' => 'cruser_id', 'default_sortby' => 'ORDER BY time_sort', 'delete' => 'deleted', 'enablecolumns' => ['disabled' => 'hidden'], 'dividers2tabs' => 1, 'iconfile' => 'EXT:theaterinfo/Resources/Public/Icons/icon_tx_theaterinfo_domain_model_play.gif', 'searchFields' => 'title'], 'interface' => ['showRecordFieldList' => 'hidden,title,author,time_sort,time_display,teaser,action,logo,pictures,state,roles,hide_roles,helpers,hide_helpers,advance_sale'], 'columns' => ['hidden' => ['exclude' => 1, 'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.hidden', 'config' => ['type' => 'check', 'default' => '0']], 'title' => ['exclude' => 0, 'label' => 'LLL:EXT:theaterinfo/Resources/Private/Language/locallang_db.xml:tx_theaterinfo_domain_model_play.title', 'config' => ['type' => 'input', 'size' => '30']], 'author' => ['exclude' => 0, 'label' => 'LLL:EXT:theaterinfo/Resources/Private/Language/locallang_db.xml:tx_theaterinfo_domain_model_play.author', 'config' => ['type' => 'text', 'cols' => '30', 'rows' => '5']], 'time_sort' => ['exclude' => 0, 'label' => 'LLL:EXT:theaterinfo/Resources/Private/Language/locallang_db.xml:tx_theaterinfo_domain_model_play.time_sort', 'config' => ['type' => 'input', 'size' => '12', 'max' => '20', 'eval' => 'datetime', 'checkbox' => '0', 'default' => '0']], 'time_display' => ['exclude' => 0, 'label' => 'LLL:EXT:theaterinfo/Resources/Private/Language/locallang_db.xml:tx_theaterinfo_domain_model_play.time_display', 'config' => ['type' => 'input', 'size' => '30']], 'teaser' => ['exclude' => 0, 'label' => 'LLL:EXT:theaterinfo/Resources/Private/Language/locallang_db.xml:tx_theaterinfo_domain_model_play.teaser', 'config' => ['type' => 'text', 'cols' => '30', 'rows' => '5']], 'action' => ['exclude' => 0, 'label' => 'LLL:EXT:theaterinfo/Resources/Private/Language/locallang_db.xml:tx_theaterinfo_domain_model_play.action', 'config' => ['type' => 'text', 'cols' => '30', 'rows' => '5']], 'logo' => ['exclude' => 0, 'label' => 'LLL:EXT:theaterinfo/Resources/Private/Language/locallang_db.xml:tx_theaterinfo_domain_model_play.logo', 'config' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::getFileFieldTCAConfig('logo', ['maxitems' => 1, 'foreign_types' => ['0' => ['showitem' => '
								--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;tx_theaterinfo_cropimage,
								--palette--;;filePalette'], \TYPO3\CMS\Core\Resource\File::FILETYPE_IMAGE => ['showitem' => '
								--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;tx_theaterinfo_cropimage,
								--palette--;;filePalette']]], $GLOBALS['TYPO3_CONF_VARS']['GFX']['imagefile_ext'])], 'pictures' => ['exclude' => 0, 'label' => 'LLL:EXT:theaterinfo/Resources/Private/Language/locallang_db.xml:tx_theaterinfo_domain_model_play.pictures', 'config' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::getFileFieldTCAConfig('pictures', ['maxitems' => 20, 'foreign_types' => ['0' => ['showitem' => '
								--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;tx_theaterinfo_playpicture,
								--palette--;;filePalette'], \TYPO3\CMS\Core\Resource\File::FILETYPE_IMAGE => ['showitem' => '
								--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;tx_theaterinfo_playpicture,
								--palette--;;filePalette']]], $GLOBALS['TYPO3_CONF_VARS']['GFX']['imagefile_ext'])], 'state' => ['exclude' => 0, 'label' => 'LLL:EXT:theaterinfo/Resources/Private/Language/locallang_db.xml:tx_theaterinfo_domain_model_play.state', 'config' => ['type' => 'select', 'renderType' => 'selectSingle', 'items' => [['LLL:EXT:theaterinfo/Resources/Private/Language/locallang_db.xml:tx_theaterinfo_domain_model_play.state.I.0', '0'], ['LLL:EXT:theaterinfo/Resources/Private/Language/locallang_db.xml:tx_theaterinfo_domain_model_play.state.I.1', '1'], ['LLL:EXT:theaterinfo/Resources/Private/Language/locallang_db.xml:tx_theaterinfo_domain_model_play.state.I.2', '2'], ['LLL:EXT:theaterinfo/Resources/Private/Language/locallang_db.xml:tx_theaterinfo_domain_model_play.state.I.3', '3']], 'size' => 1, 'maxitems' => 1]], 'roles' => ['exclude' => 0, 'label' => 'LLL:EXT:theaterinfo/Resources/Private/Language/locallang_db.xml:tx_theaterinfo_domain_model_play.roles', 'config' => ['type' => 'inline', 'foreign_table' => 'tx_theaterinfo_domain_model_role', 'foreign_field' => 'playuid', 'foreign_class' => 'Tx_Theaterinfo_Domain_Model_Role', 'maxitems' => 100, 'appearance' => ['collapseAll' => 1, 'expandSingle' => 1]]], 'hide_roles' => ['exclude' => 1, 'label' => 'LLL:EXT:theaterinfo/Resources/Private/Language/locallang_db.xml:tx_theaterinfo_domain_model_play.hide_roles', 'config' => ['type' => 'check', 'default' => '0']], 'helpers' => ['exclude' => 0, 'label' => 'LLL:EXT:theaterinfo/Resources/Private/Language/locallang_db.xml:tx_theaterinfo_domain_model_play.helpers', 'config' => ['type' => 'inline', 'foreign_table' => 'tx_theaterinfo_domain_model_helper', 'foreign_field' => 'playuid', 'foreign_class' => 'Tx_Theaterinfo_Domain_Model_Helper', 'maxitems' => 100, 'appearance' => ['collapseAll' => 1, 'expandSingle' => 1]]], 'hide_helpers' => ['exclude' => 1, 'label' => 'LLL:EXT:theaterinfo/Resources/Private/Language/locallang_db.xml:tx_theaterinfo_domain_model_play.hide_helpers', 'config' => ['type' => 'check', 'default' => '0']], 'advance_sale' => ['exclude' => 0, 'label' => 'LLL:EXT:theaterinfo/Resources/Private/Language/locallang_db.xml:tx_theaterinfo_domain_model_play.advance_sale', 'config' => ['type' => 'text', 'cols' => '30', 'rows' => '5']]], 'types' => ['0' => ['showitem' => '
				--div--;LLL:EXT:theaterinfo/Resources/Private/Language/locallang_db.xml:tx_theaterinfo_domain_model_play.properties, title, hidden, author, time_sort, time_display, state, teaser,
				--div--;LLL:EXT:theaterinfo/Resources/Private/Language/locallang_db.xml:tx_theaterinfo_domain_model_play.action, action,
				--div--;LLL:EXT:theaterinfo/Resources/Private/Language/locallang_db.xml:tx_theaterinfo_domain_model_play.pictures, logo, pictures,
				--div--;LLL:EXT:theaterinfo/Resources/Private/Language/locallang_db.xml:tx_theaterinfo_domain_model_play.roles, hide_roles, roles,
				--div--;LLL:EXT:theaterinfo/Resources/Private/Language/locallang_db.xml:tx_theaterinfo_domain_model_play.helpers, hide_helpers, helpers,
				--div--;LLL:EXT:theaterinfo/Resources/Private/Language/locallang_db.xml:tx_theaterinfo_domain_model_play.advance_sale, advance_sale
			', 'columnsOverrides' => ['action' => ['defaultExtras' => 'richtext:rte_transform[mode=ts_css]'], 'advance_sale' => ['defaultExtras' => 'richtext:rte_transform[mode=ts_css]']]]]];
Exemple #14
0
<?php

defined('TYPO3_MODE') or die;
call_user_func(function () {
    $tempColumns['profile_image'] = ['exclude' => 1, 'l10n_mode' => 'mergeIfNotBlank', 'label' => 'LLL:EXT:sso/Resources/Private/Language/locallang_db.xlf:fe_users.profile_image', 'config' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::getFileFieldTCAConfig('profile_image', ['appearance' => ['createNewRelationLinkTitle' => 'LLL:EXT:sso/Resources/Private/Language/locallang_db.xlf:fe_users.profile_image.add'], 'foreign_types' => [\TYPO3\CMS\Core\Resource\File::FILETYPE_IMAGE => ['showitem' => '
                    --palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,
                    --palette--;;filePalette']]], $GLOBALS['TYPO3_CONF_VARS']['GFX']['imagefile_ext'])];
    \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTCAcolumns('fe_users', $tempColumns, 1);
    \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addToAllTCAtypes('fe_users', 'profile_image;;;;1-1-1', '', 'after:image');
});
<?php

return ['ctrl' => ['title' => 'LLL:EXT:test_extension/Resources/Private/Language/locallang_db.xlf:tx_testextension_domain_model_child3', 'label' => 'name', 'tstamp' => 'tstamp', 'crdate' => 'crdate', 'cruser_id' => 'cruser_id', 'versioningWS' => true, 'languageField' => 'sys_language_uid', 'transOrigPointerField' => 'l10n_parent', 'transOrigDiffSourceField' => 'l10n_diffsource', 'delete' => 'deleted', 'enablecolumns' => ['disabled' => 'hidden', 'starttime' => 'starttime', 'endtime' => 'endtime'], 'searchFields' => 'name,password,image_property,', 'iconfile' => 'EXT:test_extension/Resources/Public/Icons/tx_testextension_domain_model_child3.gif'], 'interface' => ['showRecordFieldList' => 'sys_language_uid, l10n_parent, l10n_diffsource, hidden, name, password, image_property'], 'types' => ['1' => ['showitem' => 'sys_language_uid, l10n_parent, l10n_diffsource, hidden, name, password, image_property, --div--;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:tabs.access, starttime, endtime']], 'columns' => ['sys_language_uid' => ['exclude' => 1, 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.language', 'config' => ['type' => 'select', 'renderType' => 'selectSingle', 'special' => 'languages', 'items' => [['LLL:EXT:lang/locallang_general.xlf:LGL.allLanguages', -1, 'flags-multiple']], 'default' => 0]], 'l10n_parent' => ['displayCond' => 'FIELD:sys_language_uid:>:0', 'exclude' => 1, 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.l18n_parent', 'config' => ['type' => 'select', 'renderType' => 'selectSingle', 'items' => [['', 0]], 'foreign_table' => 'tx_testextension_domain_model_child3', 'foreign_table_where' => 'AND tx_testextension_domain_model_child3.pid=###CURRENT_PID### AND tx_testextension_domain_model_child3.sys_language_uid IN (-1,0)']], 'l10n_diffsource' => ['config' => ['type' => 'passthrough']], 't3ver_label' => ['label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.versionLabel', 'config' => ['type' => 'input', 'size' => 30, 'max' => 255]], 'hidden' => ['exclude' => 1, 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.hidden', 'config' => ['type' => 'check', 'items' => ['1' => ['0' => 'LLL:EXT:lang/locallang_core.xlf:labels.enabled']]]], 'starttime' => ['exclude' => 1, 'l10n_mode' => 'mergeIfNotBlank', 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.starttime', 'config' => ['type' => 'input', 'size' => 13, 'max' => 20, 'eval' => 'datetime', 'default' => 0, 'range' => ['lower' => mktime(0, 0, 0, date('m'), date('d'), date('Y'))]]], 'endtime' => ['exclude' => 1, 'l10n_mode' => 'mergeIfNotBlank', 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.endtime', 'config' => ['type' => 'input', 'size' => 13, 'max' => 20, 'eval' => 'datetime', 'default' => 0, 'range' => ['lower' => mktime(0, 0, 0, date('m'), date('d'), date('Y'))]]], 'name' => ['exclude' => 1, 'label' => 'LLL:EXT:test_extension/Resources/Private/Language/locallang_db.xlf:tx_testextension_domain_model_child3.name', 'config' => ['type' => 'input', 'size' => 30, 'eval' => 'trim,required']], 'password' => ['exclude' => 1, 'label' => 'LLL:EXT:test_extension/Resources/Private/Language/locallang_db.xlf:tx_testextension_domain_model_child3.password', 'config' => ['type' => 'input', 'size' => 30, 'eval' => 'nospace,password']], 'image_property' => ['exclude' => 1, 'label' => 'LLL:EXT:test_extension/Resources/Private/Language/locallang_db.xlf:tx_testextension_domain_model_child3.image_property', 'config' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::getFileFieldTCAConfig('image_property', ['appearance' => ['createNewRelationLinkTitle' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:images.addFileReference'], 'foreign_types' => ['0' => ['showitem' => '
			                --palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,
			                --palette--;;filePalette'], \TYPO3\CMS\Core\Resource\File::FILETYPE_TEXT => ['showitem' => '
			                --palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,
			                --palette--;;filePalette'], \TYPO3\CMS\Core\Resource\File::FILETYPE_IMAGE => ['showitem' => '
			                --palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,
			                --palette--;;filePalette'], \TYPO3\CMS\Core\Resource\File::FILETYPE_AUDIO => ['showitem' => '
			                --palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,
			                --palette--;;filePalette'], \TYPO3\CMS\Core\Resource\File::FILETYPE_VIDEO => ['showitem' => '
			                --palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,
			                --palette--;;filePalette'], \TYPO3\CMS\Core\Resource\File::FILETYPE_APPLICATION => ['showitem' => '
			                --palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,
			                --palette--;;filePalette']], 'maxitems' => 1, 'minitems' => 1], $GLOBALS['TYPO3_CONF_VARS']['GFX']['imagefile_ext'])]]];
<?php

return array('ctrl' => array('title' => 'LLL:EXT:cadabra/Resources/Private/Language/locallang_db.xlf:tx_cadabra_domain_model_information', 'label' => 'information_group', 'label_alt' => 'content', 'label_alt_force' => 1, 'type' => 'record_type', 'tstamp' => 'tstamp', 'crdate' => 'crdate', 'requestUpdate' => 'record_type', 'cruser_id' => 'cruser_id', 'dividers2tabs' => true, 'versioningWS' => 2, 'versioning_followPages' => true, 'languageField' => 'sys_language_uid', 'transOrigPointerField' => 'l10n_parent', 'transOrigDiffSourceField' => 'l10n_diffsource', 'delete' => 'deleted', 'enablecolumns' => array('disabled' => 'hidden', 'starttime' => 'starttime', 'endtime' => 'endtime'), 'searchFields' => 'information_group, content', 'iconfile' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath('cadabra') . 'Resources/Public/Icons/tx_cadabra_domain_model_information.gif'), 'interface' => array('showRecordFieldList' => 'sys_language_uid, l10n_parent, l10n_diffsource, hidden, '), 'types' => array('1' => array('showitem' => 'sys_language_uid;;;;1-1-1, l10n_parent, l10n_diffsource, record_type, hidden;;1, --div--;LLL:EXT:cms/locallang_ttc.xlf:tabs.access, starttime, endtime'), 'Abra\\Cadabra\\Domain\\Model\\Information\\FileInformation' => array('showitem' => 'sys_language_uid;;;;1-1-1, l10n_parent, l10n_diffsource, information_group, record_type, items, hidden;;1, --div--;LLL:EXT:cms/locallang_ttc.xlf:tabs.access, starttime, endtime'), 'Abra\\Cadabra\\Domain\\Model\\Information\\PageInformation' => array('showitem' => 'sys_language_uid;;;;1-1-1, l10n_parent, l10n_diffsource, information_group, record_type, items, hidden;;1, --div--;LLL:EXT:cms/locallang_ttc.xlf:tabs.access, starttime, endtime'), 'Abra\\Cadabra\\Domain\\Model\\Information\\TtContentInformation' => array('showitem' => 'sys_language_uid;;;;1-1-1, l10n_parent, l10n_diffsource, information_group, record_type, items, hidden;;1, --div--;LLL:EXT:cms/locallang_ttc.xlf:tabs.access, starttime, endtime'), 'Abra\\Cadabra\\Domain\\Model\\Information\\TextInformation' => array('showitem' => 'sys_language_uid;;;;1-1-1, l10n_parent, l10n_diffsource, information_group, record_type, content, hidden;;1, --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', 'renderType' => 'selectSingle', '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', 'renderType' => 'selectSingle', 'items' => array(array('', 0)), 'foreign_table' => 'tx_cadabra_domain_model_information', 'foreign_table_where' => 'AND tx_cadabra_domain_model_information.pid=###CURRENT_PID### AND tx_cadabra_domain_model_information.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'))))), 'record_type' => array('label' => 'LLL:EXT:cadabra/Resources/Private/Language/locallang_db.xlf:information.record_type', 'config' => array('type' => 'select', 'items' => array(array('LLL:EXT:cadabra/Resources/Private/Language/locallang_db.xlf:information.record_type.file', 'Abra\\Cadabra\\Domain\\Model\\Information\\FileInformation'), array('LLL:EXT:cadabra/Resources/Private/Language/locallang_db.xlf:information.record_type.page', 'Abra\\Cadabra\\Domain\\Model\\Information\\PageInformation'), array('LLL:EXT:cadabra/Resources/Private/Language/locallang_db.xlf:information.record_type.tt_content', 'Abra\\Cadabra\\Domain\\Model\\Information\\TtContentInformation'), array('LLL:EXT:cadabra/Resources/Private/Language/locallang_db.xlf:information.record_type.text', 'Abra\\Cadabra\\Domain\\Model\\Information\\TextInformation')), 'default' => 'Abra\\Cadabra\\Domain\\Model\\Information\\TextInformation')), 'content' => array('label' => 'LLL:EXT:cadabra/Resources/Private/Language/locallang_db.xlf:information.content', 'config' => array('type' => 'text', 'cols' => '40', 'rows' => '15'), 'defaultExtras' => 'richtext[]'), 'items' => array('label' => 'LLL:EXT:cadabra/Resources/Private/Language/locallang_db.xlf:information.items', 'config' => array('type' => 'group', 'internal_type' => 'db', 'allowed' => 'sys_file,pages,tt_content', 'MM' => 'tx_cadabra_information_record_mm', 'MM_opposite_field' => 'records', 'MM_oppositeUsage' => array('sys_file' => array('tx_cadabra_information'), 'pages' => array('tx_cadabra_information'), 'tt_content' => array('tx_cadabra_information')), 'size' => 10, 'autoSizeMax' => 50, 'maxitems' => 9999)), 'files' => array('label' => 'LLL:EXT:cadabra/Resources/Private/Language/locallang_db.xlf:information.files', 'config' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::getFileFieldTCAConfig('files')), 'products' => array('label' => 'LLL:EXT:cadabra/Resources/Private/Language/locallang_db.xlf:information.products', 'config' => array('type' => 'select', 'foreign_table' => 'tx_cadabra_domain_model_product', 'MM' => 'tx_cadabra_product_information_mm', 'MM_opposite_field' => 'information', 'size' => 10, 'autoSizeMax' => 50, 'maxitems' => 9999)), 'information_group' => array('label' => 'LLL:EXT:cadabra/Resources/Private/Language/locallang_db.xlf:information.information_group', 'config' => array('type' => 'select', 'foreign_table' => 'tx_cadabra_domain_model_information_group', 'size' => 1, 'maxitems' => 1, 'items' => array(array('LLL:EXT:cadabra/Resources/Private/Language/locallang_db.xlf:information.information_group.0', 0)), 'wizards' => array('_VERTICAL' => 1, 'suggest' => array('type' => 'suggest'), 'add' => array('type' => 'script', 'title' => 'LLL:EXT:cadabra/Resources/Private/Language/locallang_db.xlf:information.information_group.basedOn_add', 'icon' => 'add.gif', 'params' => array('table' => 'tx_cadabra_domain_model_information_group', 'pid' => '###CURRENT_PID###', 'setValue' => 'prepend'), 'module' => array('name' => 'wizard_add')))))));
		                        --palette--;;filePalette'), \TYPO3\CMS\Core\Resource\File::FILETYPE_AUDIO => array('showitem' => '
		                        --palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,
		                        --palette--;;filePalette'), \TYPO3\CMS\Core\Resource\File::FILETYPE_VIDEO => array('showitem' => '
		                        --palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,
		                        --palette--;;filePalette'), \TYPO3\CMS\Core\Resource\File::FILETYPE_APPLICATION => array('showitem' => '
		                        --palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,
		                        --palette--;;filePalette'))), $GLOBALS['TYPO3_CONF_VARS']['GFX']['imagefile_ext'])), 'mediumimage' => array('exclude' => 0, 'label' => 'LLL:EXT:go_lpb/Resources/Private/Language/locallang_db.xml:tx_goeasyslider_domain_model_slides.image', 'config' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::getFileFieldTCAConfig('mediumimage', array('maxitems' => 1, 'appearance' => array('headerThumbnail' => array('width' => '100', 'height' => '100'), 'createNewRelationLinkTitle' => 'Upload Image'), 'foreign_types' => array('0' => array('showitem' => '
		                        --palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,
		                        --palette--;;filePalette'), \TYPO3\CMS\Core\Resource\File::FILETYPE_TEXT => array('showitem' => '
		                        --palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,
		                        --palette--;;filePalette'), \TYPO3\CMS\Core\Resource\File::FILETYPE_IMAGE => array('showitem' => '
		                        --palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,
		                        --palette--;;filePalette'), \TYPO3\CMS\Core\Resource\File::FILETYPE_AUDIO => array('showitem' => '
		                        --palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,
		                        --palette--;;filePalette'), \TYPO3\CMS\Core\Resource\File::FILETYPE_VIDEO => array('showitem' => '
		                        --palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,
		                        --palette--;;filePalette'), \TYPO3\CMS\Core\Resource\File::FILETYPE_APPLICATION => array('showitem' => '
		                        --palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,
		                        --palette--;;filePalette'))), $GLOBALS['TYPO3_CONF_VARS']['GFX']['imagefile_ext'])), 'largeimage' => array('exclude' => 0, 'label' => 'LLL:EXT:go_lpb/Resources/Private/Language/locallang_db.xml:tx_goeasyslider_domain_model_slides.image', 'config' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::getFileFieldTCAConfig('largeimage', array('maxitems' => 1, 'appearance' => array('headerThumbnail' => array('width' => '100', 'height' => '100'), 'createNewRelationLinkTitle' => 'Upload Image'), 'foreign_types' => array('0' => array('showitem' => '
		                        --palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,
		                        --palette--;;filePalette'), \TYPO3\CMS\Core\Resource\File::FILETYPE_TEXT => array('showitem' => '
		                        --palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,
		                        --palette--;;filePalette'), \TYPO3\CMS\Core\Resource\File::FILETYPE_IMAGE => array('showitem' => '
		                        --palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,
		                        --palette--;;filePalette'), \TYPO3\CMS\Core\Resource\File::FILETYPE_AUDIO => array('showitem' => '
		                        --palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,
		                        --palette--;;filePalette'), \TYPO3\CMS\Core\Resource\File::FILETYPE_VIDEO => array('showitem' => '
		                        --palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,
		                        --palette--;;filePalette'), \TYPO3\CMS\Core\Resource\File::FILETYPE_APPLICATION => array('showitem' => '
		                        --palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,
		                        --palette--;;filePalette'))), $GLOBALS['TYPO3_CONF_VARS']['GFX']['imagefile_ext']))));
<?php

$slick_default_fields = array('slickdefault' => array('exclude' => 0, 'label' => 'Sick Slides', 'config' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::getFileFieldTCAConfig('slickdefault', array('collapseAll' => 1, 'maxitems' => 99, 'foreign_types' => array('0' => array('showitem' => '
    										--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,
    										--palette--;;filePalette'), \TYPO3\CMS\Core\Resource\File::FILETYPE_IMAGE => array('showitem' => '
    										--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;slickslider,
    										--palette--;;filePalette'))), $GLOBALS['TYPO3_CONF_VARS']['GFX']['imagefile_ext'])));
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTCAcolumns('tt_content', $slick_default_fields);
// ************************************************
// * Backup all default cTypes add new and resort *
// ************************************************
$backupCTypeItems = $GLOBALS['TCA']['tt_content']['columns']['CType']['config']['items'];
$GLOBALS['TCA']['tt_content']['columns']['CType']['config']['items'] = array(array('slickcarousel', '--div--'));
// Slick Basic - START
$GLOBALS['TCA']['tt_content']['types']['slickcarouselbasic'] = array('showitem' => '
        --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:palette.general;general,
		header;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:header.ALT.div_formlabel,rowDescription,
		slickdefault;LLL:EXT:slickcarousel/Resources/Private/Language/be_locallang.xlf:slides,
		--div--;LLL:EXT:slickcarousel/Resources/Private/Language/be_locallang.xlf:settings,
	--div--;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:tabs.appearance,
		--palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:palette.frames;frames,
	--div--;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:tabs.access,
		--palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:palette.visibility;visibility,
		--palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:palette.access;access,
	--div--;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:tabs.extended
	--div--;Gridelements,
	    tx_gridelements_container,
        tx_gridelements_columns,
    ');
$GLOBALS['TCA']['tt_content']['columns']['CType']['config']['items'][] = array('Slick Carousel - Basic', 'slickcarouselbasic', 'EXT:slickcarousel/ext_icon.gif');
// Slick Basic - END
Exemple #19
0
<?php

if (!defined('TYPO3_MODE')) {
    die('Access denied.');
}
$TCA['tx_nnaddress_domain_model_person'] = array('ctrl' => $TCA['tx_nnaddress_domain_model_person']['ctrl'], 'interface' => array('showRecordFieldList' => 'sys_language_uid, l10n_parent, l10n_diffsource, hidden, gender, title, first_name, second_first_name, last_name, organisation, birthday, image, website, notes, addresses, phones, mails, groups, categories, flexform'), 'types' => array('1' => array('showitem' => 'l10n_parent, l10n_diffsource, hidden;;1, gender, title, first_name, second_first_name, last_name, organisation, birthday, image, website, notes,
									--div--;LLL:EXT:nn_address/Resources/Private/Language/locallang_db.xlf:tx_nnaddress_domain_model_person.addresses, addresses, 
									--div--;LLL:EXT:nn_address/Resources/Private/Language/locallang_db.xlf:tx_nnaddress_domain_model_person.phones, phones,
									--div--;LLL:EXT:nn_address/Resources/Private/Language/locallang_db.xlf:tx_nnaddress_domain_model_person.mails, mails, 
									--div--;LLL:EXT:nn_address/Resources/Private/Language/locallang_db.xlf:tx_nnaddress_domain_model_person.assignment, groups, categories,
									--div--;LLL:EXT:nn_address/Resources/Private/Language/locallang_db.xlf:tx_nnaddress_domain_model_person.advanced, flexform,
									--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_nnaddress_domain_model_person', 'foreign_table_where' => 'AND tx_nnaddress_domain_model_person.pid=###CURRENT_PID### AND tx_nnaddress_domain_model_person.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'))))), 'gender' => array('exclude' => 1, 'label' => 'LLL:EXT:nn_address/Resources/Private/Language/locallang_db.xlf:tx_nnaddress_domain_model_person.gender', 'config' => array('type' => 'select', 'items' => array(array('LLL:EXT:nn_address/Resources/Private/Language/locallang_csh_tx_nnaddress_domain_model_person.xlf:gender.0', 0), array('LLL:EXT:nn_address/Resources/Private/Language/locallang_csh_tx_nnaddress_domain_model_person.xlf:gender.1', 1)), 'size' => 1, 'maxitems' => 1, 'eval' => '')), 'title' => array('exclude' => 1, 'label' => 'LLL:EXT:nn_address/Resources/Private/Language/locallang_db.xlf:tx_nnaddress_domain_model_person.title', 'config' => array('type' => 'input', 'size' => 30, 'eval' => 'trim')), 'first_name' => array('exclude' => 1, 'label' => 'LLL:EXT:nn_address/Resources/Private/Language/locallang_db.xlf:tx_nnaddress_domain_model_person.first_name', 'config' => array('type' => 'input', 'size' => 30, 'eval' => 'trim')), 'second_first_name' => array('exclude' => 1, 'label' => 'LLL:EXT:nn_address/Resources/Private/Language/locallang_db.xlf:tx_nnaddress_domain_model_person.second_first_name', 'config' => array('type' => 'input', 'size' => 30, 'eval' => 'trim')), 'last_name' => array('exclude' => 1, 'label' => 'LLL:EXT:nn_address/Resources/Private/Language/locallang_db.xlf:tx_nnaddress_domain_model_person.last_name', 'config' => array('type' => 'input', 'size' => 30, 'eval' => 'trim')), 'organisation' => array('exclude' => 1, 'label' => 'LLL:EXT:nn_address/Resources/Private/Language/locallang_db.xlf:tx_nnaddress_domain_model_person.organisation', 'config' => array('type' => 'input', 'size' => 30, 'eval' => 'trim')), 'birthday' => array('exclude' => 1, 'label' => 'LLL:EXT:nn_address/Resources/Private/Language/locallang_db.xlf:tx_nnaddress_domain_model_person.birthday', 'config' => array('type' => 'input', 'size' => 7, 'eval' => 'date', 'checkbox' => 1, 'default' => time())), 'image' => array('exclude' => 1, 'label' => 'LLL:EXT:nn_address/Resources/Private/Language/locallang_db.xlf:tx_nnaddress_domain_model_person.image', 'config' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::getFileFieldTCAConfig('images', array('maxitems' => 99, 'appearance' => array('createNewRelationLinkTitle' => 'LLL:EXT:cms/locallang_ttc.xlf:images.addFileReference'), 'foreign_types' => array('0' => array('showitem' => '
							--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,
							--palette--;;filePalette'), \TYPO3\CMS\Core\Resource\File::FILETYPE_TEXT => array('showitem' => '
							--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,
							--palette--;;filePalette'), \TYPO3\CMS\Core\Resource\File::FILETYPE_IMAGE => array('showitem' => '
							--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,
							--palette--;;filePalette'), \TYPO3\CMS\Core\Resource\File::FILETYPE_AUDIO => array('showitem' => '
							--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,
							--palette--;;filePalette'), \TYPO3\CMS\Core\Resource\File::FILETYPE_VIDEO => array('showitem' => '
							--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,
							--palette--;;filePalette'), \TYPO3\CMS\Core\Resource\File::FILETYPE_APPLICATION => array('showitem' => '
							--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,
							--palette--;;filePalette'))), $GLOBALS['TYPO3_CONF_VARS']['GFX']['imagefile_ext'])), 'website' => array('exclude' => 1, 'label' => 'LLL:EXT:nn_address/Resources/Private/Language/locallang_db.xlf:tx_nnaddress_domain_model_person.website', 'config' => array('type' => 'input', 'size' => 30, 'eval' => 'trim')), 'notes' => array('exclude' => 1, 'label' => 'LLL:EXT:nn_address/Resources/Private/Language/locallang_db.xlf:tx_nnaddress_domain_model_person.notes', 'config' => array('type' => 'text', 'cols' => 40, 'rows' => 15, 'eval' => 'trim'), 'defaultExtras' => 'richtext[]'), 'addresses' => array('exclude' => 1, 'label' => 'LLL:EXT:nn_address/Resources/Private/Language/locallang_db.xlf:tx_nnaddress_domain_model_person.addresses', 'config' => array('type' => 'inline', 'foreign_table' => 'tx_nnaddress_domain_model_address', 'foreign_field' => 'person', 'foreign_sortby' => 'sorting', 'maxitems' => 9999, 'appearance' => array('collapseAll' => 1, 'levelLinksPosition' => 'top', 'showSynchronizationLink' => 1, 'showPossibleLocalizationRecords' => 1, 'showAllLocalizationLink' => 1, 'useSortable' => 1))), 'phones' => array('exclude' => 1, 'label' => 'LLL:EXT:nn_address/Resources/Private/Language/locallang_db.xlf:tx_nnaddress_domain_model_person.phones', 'config' => array('type' => 'inline', 'foreign_table' => 'tx_nnaddress_domain_model_phone', 'foreign_field' => 'person', 'foreign_sortby' => 'sorting', 'maxitems' => 9999, 'appearance' => array('collapseAll' => 1, 'levelLinksPosition' => 'top', 'showSynchronizationLink' => 1, 'showPossibleLocalizationRecords' => 1, 'showAllLocalizationLink' => 1, 'useSortable' => 1))), 'mails' => array('exclude' => 1, 'label' => 'LLL:EXT:nn_address/Resources/Private/Language/locallang_db.xlf:tx_nnaddress_domain_model_person.mails', 'config' => array('type' => 'inline', 'foreign_table' => 'tx_nnaddress_domain_model_mail', 'foreign_field' => 'person', 'foreign_sortby' => 'sorting', 'maxitems' => 9999, 'appearance' => array('collapseAll' => 1, 'levelLinksPosition' => 'top', 'showSynchronizationLink' => 1, 'showPossibleLocalizationRecords' => 1, 'showAllLocalizationLink' => 1, 'useSortable' => 1))), 'groups' => array('exclude' => 1, 'label' => 'LLL:EXT:nn_address/Resources/Private/Language/locallang_db.xlf:tx_nnaddress_domain_model_person.groups', 'config' => array('type' => 'select', 'foreign_table' => 'tx_nnaddress_domain_model_group', 'foreign_table_where' => ' AND (((\'###PAGE_TSCONFIG_IDLIST###\' <> \'\' OR \'###PAGE_TSCONFIG_IDLIST###\' > 0) AND FIND_IN_SET(tx_nnaddress_domain_model_group.pid,\'###PAGE_TSCONFIG_IDLIST###\')) OR (\'###PAGE_TSCONFIG_IDLIST###\' = \'\' OR \'###PAGE_TSCONFIG_IDLIST###\' = 0)) AND tx_nnaddress_domain_model_group.sys_language_uid=###REC_FIELD_sys_language_uid### ORDER BY tx_nnaddress_domain_model_group.title ', 'MM' => 'tx_nnaddress_person_group_mm', 'size' => 10, 'autoSizeMax' => 30, 'maxitems' => 9999, 'multiple' => 0)), 'flexform' => array('exclude' => 1, 'label' => '', 'config' => array('type' => 'flex', 'ds_pointerField' => 'uid', 'ds' => array('default' => '')))));
// Add Flexform if in extManager Conf is set or remove the sheet
\NN\NnAddress\Utility\Flexform::modifyFlexSheet($TCA, 'person');
        					event_location,status,
					--div--;' . $ll . 'label.tab.price,
						price,free_of_charge,price_notice,
					--div--;' . $ll . 'label.tab.registration,
						--palette--;;paletteLessonRegistration,places,registration_remarks,
						registration_documents,external_registration_link,
					--div--;' . $ll . 'label.tab.participants,
						participants,
					--div--;Access,
					tx_extbase_type,hidden,starttime, endtime';
$GLOBALS['TCA']['tx_t3events_domain_model_performance']['types'][$extbaseType]['showitem'] = $scheduleShowItems;
$temporaryColumns = ['participants' => ['exclude' => 1, 'label' => $ll . 'tx_t3eventsreservation_domain_model_performance.participants', 'config' => ['type' => 'inline', 'foreign_table' => 'tx_t3events_domain_model_person', 'MM' => 'tx_t3eventsreservation_performance_participants_person_mm', 'appearance' => ['levelLinksPosition' => 'none', 'enabledControls' => ['info' => FALSE, 'new' => FALSE, 'dragdrop' => FALSE, 'sort' => FALSE, 'hide' => FALSE, 'delete' => FALSE, 'localize' => FALSE]]]], 'deadline' => ['exclude' => 1, 'label' => $ll . 'tx_t3eventsreservation_domain_model_performance.deadline', 'config' => ['type' => 'input', 'size' => 7, 'eval' => 'date', 'checkbox' => 1, 'default' => time()]], 'registration_begin' => ['exclude' => 1, 'label' => $ll . 'tx_t3eventsreservation_domain_model_performance.registration_begin', 'config' => ['type' => 'input', 'size' => 7, 'eval' => 'date', 'checkbox' => 1]], 'price' => ['exclude' => 0, 'label' => 'LLL:EXT:t3events/Resources/Private/Language/locallang_db.xml:tx_t3events_domain_model_ticketclass.price', 'config' => ['type' => 'input', 'size' => 30, 'eval' => 'double2']], 'places' => ['exclude' => 1, 'label' => $ll . 'tx_t3eventsreservation_domain_model_performance.places', 'config' => ['type' => 'input', 'size' => 4, 'eval' => 'int']], 'free_of_charge' => ['exclude' => 1, 'label' => $ll . 'tx_t3eventsreservation_domain_model_performance.free_of_charge', 'config' => ['type' => 'check', 'default' => '0']], 'registration_remarks' => ['exclude' => 1, 'label' => $ll . 'tx_t3eventsreservation_domain_model_performance.registration_remarks', 'config' => ['type' => 'text', 'cols' => 40, 'rows' => 5, 'eval' => 'trim']], 'external_registration_link' => ['exclude' => 1, 'label' => $ll . 'tx_t3eventsreservation_domain_model_performance.external_registration_link', 'config' => ['type' => 'input', 'size' => 30, 'eval' => 'trim']], 'registration_documents' => ['label' => $ll . 'tx_t3eventsreservation_domain_model_performance.registration_documents', 'config' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::getFileFieldTCAConfig('registration_documents', ['appearance' => ['headerThumbnail' => ['width' => '100', 'height' => '100'], 'createNewRelationLinkTitle' => $ll . 'label.addDocument'], 'foreign_types' => ['0' => ['showitem' => '
						--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,
						--palette--;;filePalette'], \TYPO3\CMS\Core\Resource\File::FILETYPE_TEXT => ['showitem' => '
						--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,
						--palette--;;filePalette'], \TYPO3\CMS\Core\Resource\File::FILETYPE_IMAGE => ['showitem' => '
						--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,
						--palette--;;filePalette'], \TYPO3\CMS\Core\Resource\File::FILETYPE_APPLICATION => ['showitem' => '
						--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,
						--palette--;;filePalette']]], 'doc,docx,pdf')]];
// add type field if missing
if (!isset($GLOBALS['TCA']['tx_t3events_domain_model_performance']['columns']['tx_extbase_type'])) {
    $temporaryColumns['tx_extbase_type'] = ['config' => ['label' => $ll . 'label.tx_extbase_type', 'type' => 'select', 'items' => [[$ll . 'label.tx_extbase_type.default', '0'], [$ll . 'label.tx_extbase_type.Tx_T3eventsReservation_Schedule', $extbaseType]]]];
    \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addToAllTCAtypes('tx_t3events_domain_model_performance', 'tx_extbase_type', '', 'before:hidden');
} else {
    // add type item
    \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTcaSelectItem('tx_t3events_domain_model_performance', 'tx_extbase_type', [$ll . 'label.tx_extbase_type.Tx_T3eventsReservation_Schedule', $extbaseType]);
}
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTCAcolumns('tx_t3events_domain_model_performance', $temporaryColumns, TRUE);
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addToAllTCAtypes('tx_t3events_domain_model_performance', 'price', '', 'before:price_notice');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addToAllTCAtypes('tx_t3events_domain_model_performance', 'tx_extbase_type', '', 'before:hidden');
<?php

defined('TYPO3_MODE') or die;
call_user_func(function ($extKey) {
    $fieldLanguageFilePrefix = 'LLL:EXT:' . $extKey . '/Resources/Private/Language/locallang_db.xlf:';
    $backendLanguageFilePrefix = 'LLL:EXT:' . $extKey . '/Resources/Private/Language/locallang_be.xlf:';
    // Define field(s)
    $additionalColumns = ['table_content' => ['label' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:field.table.bodytext', 'config' => ['type' => 'text', 'cols' => '80', 'rows' => '15', 'wizards' => ['table' => ['notNewRecords' => 1, 'type' => 'script', 'title' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:bodytext.W.table', 'icon' => 'EXT:backend/Resources/Public/Images/FormFieldWizard/wizard_table.gif', 'module' => ['name' => 'wizard_table'], 'params' => ['xmlOutput' => 0]]]]], 'header_position' => ['label' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:header_position', 'exclude' => true, 'config' => ['type' => 'select', 'renderType' => 'selectSingle', 'items' => [['LLL:EXT:lang/locallang_general.xlf:LGL.default_value', 0], ['LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:header_position.I.1', 1], ['LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:header_position.I.2', 2], ['LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:header_position.I.3', 3], [$fieldLanguageFilePrefix . 'shared.notset', 100]], 'default' => 0]], 'header_style' => ['label' => $fieldLanguageFilePrefix . 'tt_content.header_style', 'exclude' => true, 'config' => ['type' => 'select', 'renderType' => 'selectSingle', 'items' => [['LLL:EXT:lang/locallang_general.xlf:LGL.default_value', 0], [$fieldLanguageFilePrefix . 'tt_content.header_style.I.1', 1], [$fieldLanguageFilePrefix . 'tt_content.header_style.I.2', 2], [$fieldLanguageFilePrefix . 'tt_content.header_style.I.3', 3], [$fieldLanguageFilePrefix . 'tt_content.header_style.I.4', 4], [$fieldLanguageFilePrefix . 'tt_content.header_style.I.5', 5], [$fieldLanguageFilePrefix . 'tt_content.header_style.I.6', 6], [$fieldLanguageFilePrefix . 'shared.nostyle', 100]], 'default' => 0]], 'header_icon' => ['label' => $fieldLanguageFilePrefix . 'tt_content.header_icon', 'exclude' => true, 'config' => ['type' => 'input', 'size' => 12, 'eval' => '']], 'visibility' => ['exclude' => true, 'label' => $fieldLanguageFilePrefix . 'tt_content.visibility', 'config' => ['type' => 'select', 'renderType' => 'selectSingle', 'items' => [['LLL:EXT:lang/locallang_general.xlf:LGL.default_value', 0], [$fieldLanguageFilePrefix . 'tt_content.visibility.visible.xs', 1], [$fieldLanguageFilePrefix . 'tt_content.visibility.visible.sm-xs', 2], [$fieldLanguageFilePrefix . 'tt_content.visibility.visible.md-lg', 3], [$fieldLanguageFilePrefix . 'tt_content.visibility.visible.lg', 4], [$fieldLanguageFilePrefix . 'tt_content.visibility.hidden.xs', 5], [$fieldLanguageFilePrefix . 'tt_content.visibility.hidden.sm-xs', 6], [$fieldLanguageFilePrefix . 'tt_content.visibility.hidden.md-lg', 7], [$fieldLanguageFilePrefix . 'tt_content.visibility.hidden.lg', 8], [$fieldLanguageFilePrefix . 'shared.notset', 100]]]], 'image_shape' => ['exclude' => true, 'label' => $fieldLanguageFilePrefix . 'tt_content.image_shape', 'config' => ['type' => 'select', 'renderType' => 'selectSingle', 'items' => [['LLL:EXT:lang/locallang_general.xlf:LGL.default_value', 0], [$fieldLanguageFilePrefix . 'tt_content.image_shape.I.1', 1], [$fieldLanguageFilePrefix . 'tt_content.image_shape.I.2', 2], [$fieldLanguageFilePrefix . 'tt_content.image_shape.I.3', 3], [$fieldLanguageFilePrefix . 'shared.notset', 100]]]], 'image_responsive' => ['exclude' => true, 'label' => $fieldLanguageFilePrefix . 'tt_content.image_responsive', 'config' => ['type' => 'check', 'default' => 1, 'items' => [['LLL:EXT:lang/locallang_core.xml:labels.enabled', 1]]]], 'gallery_width' => ['label' => $fieldLanguageFilePrefix . 'tt_content.gallery_width', 'exclude' => true, 'config' => ['type' => 'select', 'renderType' => 'selectSingle', 'items' => [['LLL:EXT:lang/locallang_general.xlf:LGL.default_value', 0], [$fieldLanguageFilePrefix . 'tt_content.gallery_width.I.1', 1], [$fieldLanguageFilePrefix . 'tt_content.gallery_width.I.2', 2], [$fieldLanguageFilePrefix . 'tt_content.gallery_width.I.3', 3], [$fieldLanguageFilePrefix . 'tt_content.gallery_width.I.4', 4], [$fieldLanguageFilePrefix . 'tt_content.gallery_width.I.5', 5], [$fieldLanguageFilePrefix . 'tt_content.gallery_width.I.6', 6], [$fieldLanguageFilePrefix . 'tt_content.gallery_width.I.7', 7], [$fieldLanguageFilePrefix . 'tt_content.gallery_width.I.8', 8], [$fieldLanguageFilePrefix . 'tt_content.gallery_width.I.9', 9], [$fieldLanguageFilePrefix . 'tt_content.gallery_width.I.10', 10]], 'default' => 0]], 'gallery_break' => ['exclude' => true, 'label' => $fieldLanguageFilePrefix . 'tt_content.gallery_break', 'config' => ['type' => 'select', 'renderType' => 'selectSingle', 'items' => [['LLL:EXT:lang/locallang_general.xlf:LGL.default_value', 0], [$fieldLanguageFilePrefix . 'tt_content.gallery_break.I.1', 1], [$fieldLanguageFilePrefix . 'tt_content.gallery_break.I.2', 2], [$fieldLanguageFilePrefix . 'tt_content.gallery_break.I.3', 3], [$fieldLanguageFilePrefix . 'tt_content.gallery_break.I.4', 4], [$fieldLanguageFilePrefix . 'tt_content.gallery_break.I.5', 5]], 'default' => 0]], 'gallery_carousel' => ['exclude' => true, 'label' => $fieldLanguageFilePrefix . 'tt_content.gallery_carousel', 'config' => ['type' => 'select', 'renderType' => 'selectSingle', 'items' => [['LLL:EXT:lang/locallang_common.xlf:disabled', 0], [$fieldLanguageFilePrefix . 'tt_content.gallery_carousel.I.1', 1], [$fieldLanguageFilePrefix . 'tt_content.gallery_carousel.I.2', 2], [$fieldLanguageFilePrefix . 'tt_content.gallery_carousel.I.3', 3]]]], 'layout_style' => ['exclude' => true, 'displayCond' => 'FIELD:layout:>:0', 'label' => $fieldLanguageFilePrefix . 'tt_content.layout_style', 'config' => ['type' => 'select', 'renderType' => 'selectSingle', 'disableNoMatchingValueElement' => true, 'itemsProcFunc' => 'Sonority\\BootstrapComponents\\Backend\\ItemsProcFunc->layoutStyleItems']], 'wrap' => ['exclude' => true, 'label' => $fieldLanguageFilePrefix . 'tt_content.wrap', 'config' => ['type' => 'select', 'renderType' => 'selectSingle', 'items' => [['LLL:EXT:lang/locallang_general.xlf:LGL.default_value', 0], [$fieldLanguageFilePrefix . 'tt_content.wrap.I.1', 1], [$fieldLanguageFilePrefix . 'tt_content.wrap.I.2', 2], [$fieldLanguageFilePrefix . 'tt_content.wrap.I.3', 3], [$fieldLanguageFilePrefix . 'tt_content.wrap.I.4', 4], [$fieldLanguageFilePrefix . 'shared.notset', 100]], 'default' => 0]], 'container' => ['exclude' => true, 'label' => $fieldLanguageFilePrefix . 'tt_content.container', 'config' => ['type' => 'check', 'default' => 1, 'items' => [['LLL:EXT:lang/locallang_core.xml:labels.enabled', 1]]]], 'section_frame' => ['label' => $fieldLanguageFilePrefix . 'tt_content.section_frame', 'exclude' => true, 'config' => ['type' => 'select', 'renderType' => 'selectSingle', 'items' => [['LLL:EXT:lang/locallang_general.xlf:LGL.default_value', 0], [$fieldLanguageFilePrefix . 'tt_content.section_frame.I.1', 1], [$fieldLanguageFilePrefix . 'tt_content.section_frame.I.2', 2], [$fieldLanguageFilePrefix . 'tt_content.section_frame.I.3', 3], [$fieldLanguageFilePrefix . 'tt_content.section_frame.I.4', 4], [$fieldLanguageFilePrefix . 'tt_content.section_frame.I.5', 5], [$fieldLanguageFilePrefix . 'tt_content.section_frame.I.6', 6]], 'default' => 0]], 'section_frame_style' => ['exclude' => true, 'displayCond' => 'FIELD:section_frame:>:0', 'label' => $fieldLanguageFilePrefix . 'tt_content.section_frame_style', 'config' => ['type' => 'select', 'renderType' => 'selectSingle', 'disableNoMatchingValueElement' => true, 'itemsProcFunc' => 'Sonority\\BootstrapComponents\\Backend\\ItemsProcFunc->sectionFrameStyleItems']], 'template_media' => ['label' => $fieldLanguageFilePrefix . 'tt_content.template_media', 'exclude' => true, 'l10n_mode' => 'mergeIfNotBlank', 'config' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::getFileFieldTCAConfig('template_media', ['appearance' => ['createNewRelationLinkTitle' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:images.addFileReference', 'headerThumbnail' => ['width' => '25', 'height' => '25c']], 'foreign_types' => [\TYPO3\CMS\Core\Resource\File::FILETYPE_IMAGE => ['showitem' => '
                            --palette--;Einstellungen;bootstrapPalette,
                            --palette--;;filePalette']]], $GLOBALS['TYPO3_CONF_VARS']['GFX']['imagefile_ext'])]];
    $GLOBALS['TCA']['tt_content']['columns']['imageorient']['config']['selicon_cols'] = 4;
    /*
     *  Set custom flexform for tt_content CType "table"
     */
    \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue('*', 'FILE:EXT:' . $extKey . '/Configuration/FlexForms/Table.xml', 'table');
    // Add flexform-fields to CType "table"
    \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addFieldsToPalette('tt_content', 'tablelayout', '--linebreak--, pi_flexform');
    // (Re)enable RTE for field "bodytext" in CType "table"
    $GLOBALS['TCA']['tt_content']['types']['table']['columnsOverrides']['bodytext'] = ['defaultExtras' => 'richtext:rte_transform[mode=ts_css]'];
    $GLOBALS['TCA']['tt_content']['ctrl']['searchFields'] .= ',table_content';
    //$GLOBALS['TCA']['tt_content']['ctrl']['label_alt'] .= ',table_content';
    //$GLOBALS['TCA']['tt_content']['interface']['showRecordFieldList'] .= ',table_content';
    // Remove table-wizard from field "bodytext"
    unset($GLOBALS['TCA']['tt_content']['columns']['bodytext']['config']['wizards']['table']);
    // Reset title for field "bodytext"
    \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addToAllTCAtypes('tt_content', 'bodytext;LLL:EXT:lang/locallang_general.xlf:LGL.text', 'table', 'replace:bodytext');
    // Add new field for table-content
    \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addToAllTCAtypes('tt_content', '--linebreak--, table_content', 'table', 'after:bodytext');
    /*
     *  Modifications for dynamic 'layout_style'-field
     */
Exemple #22
0
<?php

defined('TYPO3_MODE') or die;
$extRelPath = \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath('cal');
$tx_cal_location = array('ctrl' => array('title' => 'LLL:EXT:cal/Resources/Private/Language/locallang_db.xml:tx_cal_location', 'label' => 'name', 'tstamp' => 'tstamp', 'crdate' => 'crdate', 'cruser_id' => 'cruser_id', 'default_sortby' => 'ORDER BY name', 'delete' => 'deleted', 'iconfile' => $extRelPath . 'Resources/Public/icons/icon_tx_cal_location.gif', 'enablecolumns' => array('disabled' => 'hidden'), 'versioningWS' => TRUE, 'origUid' => 't3_origuid', 'shadowColumnsForNewPlaceholders' => 'sys_language_uid,l18n_parent', 'transOrigPointerField' => 'l18n_parent', 'transOrigDiffSourceField' => 'l18n_diffsource', 'languageField' => 'sys_language_uid', 'searchFields' => 'name,description,street,zip,city,country_zone,country,phone,fax,email,image,imagecaption,imagealttext,imagetitletext,link,latitute,longitute'), 'feInterface' => array('fe_admin_fieldList' => 'name'), 'interface' => array('showRecordFieldList' => 'hidden, name,description,street,zip,city,country,phone,fax,email,image,link,shared_user_cnt'), 'columns' => array('hidden' => array('exclude' => 1, 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.hidden', 'config' => array('type' => 'check', 'default' => '0')), 'name' => array('exclude' => 0, 'label' => 'LLL:EXT:cal/Resources/Private/Language/locallang_db.xml:tx_cal_location.name', 'config' => array('type' => 'input', 'size' => '30', 'max' => '128')), 'description' => array('exclude' => 0, 'label' => 'LLL:EXT:cal/Resources/Private/Language/locallang_db.xml:tx_cal_location.description', 'config' => array('type' => 'text', 'cols' => '30', 'rows' => '5', 'wizards' => array('_PADDING' => 2, 'RTE' => array('notNewRecords' => 1, 'RTEonly' => 1, 'type' => 'script', 'title' => 'Full screen Rich Text Editing|Formatteret redigering i hele vinduet', 'icon' => 'wizard_rte2.gif', 'module' => array('name' => 'wizard_rte'))))), 'street' => array('exclude' => 0, 'label' => 'LLL:EXT:cal/Resources/Private/Language/locallang_db.xml:tx_cal_location.street', 'config' => array('type' => 'input', 'size' => '30', 'max' => '128')), 'zip' => array('exclude' => 0, 'label' => 'LLL:EXT:cal/Resources/Private/Language/locallang_db.xml:tx_cal_location.zip', 'config' => array('type' => 'input', 'size' => '15', 'max' => '15')), 'city' => array('exclude' => 0, 'label' => 'LLL:EXT:cal/Resources/Private/Language/locallang_db.xml:tx_cal_location.city', 'config' => array('type' => 'input', 'size' => '30', 'max' => '128')), 'country_zone' => array('exclude' => 1, 'displayCond' => 'EXT:static_info_tables:LOADED:true', 'label' => 'LLL:EXT:cal/Resources/Private/Language/locallang_db.xml:tx_cal_location.countryzone'), 'country' => array('exclude' => 1, 'displayCond' => 'EXT:static_info_tables:LOADED:true', 'label' => 'LLL:EXT:cal/Resources/Private/Language/locallang_db.xml:tx_cal_location.country'), 'phone' => array('exclude' => 0, 'label' => 'LLL:EXT:cal/Resources/Private/Language/locallang_db.xml:tx_cal_location.phone', 'config' => array('type' => 'input', 'size' => '15', 'max' => '24')), 'fax' => array('exclude' => 0, 'label' => 'LLL:EXT:cal/Resources/Private/Language/locallang_db.xml:tx_cal_location.fax', 'config' => array('type' => 'input', 'size' => '15', 'max' => '24')), 'email' => array('exclude' => 0, 'label' => 'LLL:EXT:cal/Resources/Private/Language/locallang_db.xml:tx_cal_location.email', 'config' => array('type' => 'input', 'size' => '30', 'max' => '64', 'eval' => 'lower')), 'image' => array('exclude' => 1, 'label' => 'LLL:EXT:cal/Resources/Private/Language/locallang_db.xml:tx_cal_location.image', 'config' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::getFileFieldTCAConfig('image', array('maxitems' => 5, 'foreign_types' => array('0' => array('showitem' => '
						--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,
						--palette--;;filePalette'), \TYPO3\CMS\Core\Resource\File::FILETYPE_IMAGE => array('showitem' => '
						--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,
						--palette--;;filePalette'))))), 'link' => array('exclude' => 0, 'label' => 'LLL:EXT:cal/Resources/Private/Language/locallang_db.xml:tx_cal_location.link', 'config' => array('type' => 'input', 'size' => '25', 'max' => '128', 'checkbox' => '', 'eval' => 'trim', 'wizards' => array('_PADDING' => 2, 'link' => array('type' => 'popup', 'title' => 'Link', 'icon' => 'link_popup.gif', 'module' => array('name' => 'wizard_element_browser', 'urlParameters' => array('mode' => 'wizard')), 'JSopenParams' => 'height=300,width=500,status=0,menubar=0,scrollbars=1')))), 'shared_user_cnt' => array('exclude' => 1, 'label' => 'LLL:EXT:cal/Resources/Private/Language/locallang_db.xml:tx_cal_event.shared_user', 'config' => array('type' => 'group', 'internal_type' => 'db', 'allowed' => 'fe_users,fe_groups', 'size' => 6, 'minitems' => 0, 'maxitems' => 100, 'MM' => 'tx_cal_location_shared_user_mm', 'wizards' => array('suggest' => array('type' => 'suggest')))), 'latitude' => array('exclude' => 0, 'label' => 'LLL:EXT:cal/Resources/Private/Language/locallang_db.xml:tx_cal_location.latitude', 'config' => array('type' => 'input', 'readOnly' => 1)), 'longitude' => array('exclude' => 0, 'label' => 'LLL:EXT:cal/Resources/Private/Language/locallang_db.xml:tx_cal_location.longitude', 'config' => array('type' => 'input', 'readOnly' => 1)), 'sys_language_uid' => array('exclude' => 1, 'label' => 'LLL:EXT:lang/locallang_general.php: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.php:LGL.allLanguages', -1), array('LLL:EXT:lang/locallang_general.php:LGL.default_value', 0)))), 'l18n_parent' => array('displayCond' => 'FIELD:sys_language_uid:>:0', 'exclude' => 1, 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.l18n_parent', 'config' => array('type' => 'select', 'items' => array(array('', 0)), 'foreign_table' => 'tx_cal_location', 'foreign_table_where' => 'AND tx_cal_location.sys_language_uid IN (-1,0)')), 'l18n_diffsource' => array('config' => array('type' => 'passthrough')), 't3ver_label' => array('displayCond' => 'FIELD:t3ver_label:REQ:true', 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.versionLabel', 'config' => array('type' => 'none', 'cols' => 27))), 'types' => array('0' => array('showitem' => 'name;;1;;2-2-2,description;;;richtext, street, city, country, country_zone, zip, latitude, longitude, phone, fax, email, image, link, shared_user_cnt')), 'palettes' => array('1' => array('showitem' => 'hidden,l18n_parent,sys_language_uid,t3ver_label')));
/* If wec_map is present, define the address fields */
if (\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::isLoaded('wec_map')) {
    $tx_cal_location['ctrl']['EXT']['wec_map'] = array('isMappable' => 1, 'addressFields' => array('street' => 'street', 'city' => 'city', 'state' => 'country_zone', 'zip' => 'zip', 'country' => 'country'));
    $tx_cal_location['columns']['tx_wecmap_geocode'] = array('exclude' => 1, 'label' => 'LLL:EXT:wec_map/locallang_db.xml:berecord_geocodelabel', 'config' => array('type' => 'passthrough', 'form_type' => 'user', 'userFunc' => 'tx_wecmap_backend->checkGeocodeStatus'));
    $tx_cal_location['interface']['showRecordFieldList'] .= ', tx_wecmap_geocode';
    $tx_cal_location['types']['0']['showitem'] .= ', tx_wecmap_geocode';
    $tx_cal_location['columns']['tx_wecmap_map'] = array('exclude' => 1, 'label' => 'LLL:EXT:wec_map/locallang_db.xml:berecord_maplabel', 'config' => array('type' => 'passthrough', 'form_type' => 'user', 'userFunc' => 'tx_wecmap_backend->drawMap'));
    $tx_cal_location['interface']['showRecordFieldList'] .= ', tx_wecmap_map';
    $tx_cal_location['types']['0']['showitem'] .= ', tx_wecmap_map';
}
if (\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::isLoaded('static_info_tables')) {
    $tx_cal_location['columns']['country_zone']['config'] = array('type' => 'select', 'items' => array(array('', 0)), 'foreign_table' => 'static_country_zones', 'foreign_table_where' => 'ORDER BY static_country_zones.zn_name_en', 'itemsProcFunc' => 'SJBR\\StaticInfoTables\\Hook\\Backend\\Form\\ElementRenderingHelper->translateCountryZonesSelector', 'size' => 1, 'minitems' => 0, 'maxitems' => 1, 'wizards' => array('suggest' => array('type' => 'suggest', 'default' => array('receiverClass' => 'SJBR\\StaticInfoTables\\Hook\\Backend\\Form\\SuggestReceiver'))));
    $tx_cal_location['columns']['country']['config'] = array('type' => 'select', 'items' => array(array('', 0)), 'foreign_table' => 'static_countries', 'foreign_table_where' => 'ORDER BY static_countries.cn_short_en', 'itemsProcFunc' => 'SJBR\\StaticInfoTables\\Hook\\Backend\\Form\\ElementRenderingHelper->translateCountriesSelector', 'size' => 1, 'minitems' => 0, 'maxitems' => 1, 'wizards' => array('suggest' => array('type' => 'suggest', 'default' => array('receiverClass' => 'SJBR\\StaticInfoTables\\Hook\\Backend\\Form\\SuggestReceiver'))));
}
return $tx_cal_location;
<?php

return array('ctrl' => array('title' => 'LLL:EXT:c1_linklist/Resources/Private/Language/locallang_db.xlf:tx_c1linklist_domain_model_linklist', 'label' => 'title', 'tstamp' => 'tstamp', 'crdate' => 'crdate', 'cruser_id' => 'cruser_id', 'dividers2tabs' => TRUE, 'versioningWS' => 2, 'versioning_followPages' => TRUE, 'languageField' => 'sys_language_uid', 'transOrigPointerField' => 'l10n_parent', 'transOrigDiffSourceField' => 'l10n_diffsource', 'delete' => 'deleted', 'enablecolumns' => array('disabled' => 'hidden', 'starttime' => 'starttime', 'endtime' => 'endtime'), 'searchFields' => 'title,url,image,description,categories,', 'iconfile' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath('c1_linklist') . 'Resources/Public/Icons/tx_c1linklist_domain_model_linklist.gif'), 'interface' => array('showRecordFieldList' => 'sys_language_uid, l10n_parent, l10n_diffsource, hidden, title, description, url, image, categories'), 'types' => array('1' => array('showitem' => 'sys_language_uid;;;;1-1-1, l10n_parent, l10n_diffsource, hidden;;1, title, description;;;richtext:rte_transform[mode=ts_links], url, image, categories, --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', 'renderType' => 'selectSingle', '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', 'renderType' => 'selectSingle', 'items' => array(array('', 0)), 'foreign_table' => 'tx_c1linklist_domain_model_linklist', 'foreign_table_where' => 'AND tx_c1linklist_domain_model_linklist.pid=###CURRENT_PID### AND tx_c1linklist_domain_model_linklist.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'))))), 'title' => array('exclude' => 1, 'label' => 'LLL:EXT:c1_linklist/Resources/Private/Language/locallang_db.xlf:tx_c1linklist_domain_model_linklist.title', 'config' => array('type' => 'input', 'size' => 255, 'eval' => 'trim')), 'description' => array('exclude' => 1, 'label' => 'LLL:EXT:c1_linklist/Resources/Private/Language/locallang_db.xlf:tx_c1linklist_domain_model_linklist.description', 'config' => array('type' => 'text', 'cols' => 60, 'rows' => 5), 'defaultExtras' => 'richtext[]:rte_transform[mode=ts_css]'), 'url' => array('exclude' => 1, 'label' => 'LLL:EXT:c1_linklist/Resources/Private/Language/locallang_db.xlf:tx_c1linklist_domain_model_linklist.url', 'config' => array('type' => 'input', 'size' => 255, 'eval' => 'trim', 'wizards' => array('link' => array('type' => 'popup', 'title' => 'LLL:EXT:cms/locallang_ttc.xlf:header_link_formlabel', 'icon' => 'link_popup.gif', 'module' => array('name' => 'wizard_element_browser', 'urlParameters' => array('mode' => 'wizard')), 'JSopenParams' => 'height=300,width=500,status=0,menubar=0,scrollbars=1')), 'softref' => 'typolink')), 'image' => array('exclude' => 1, 'label' => 'LLL:EXT:c1_linklist/Resources/Private/Language/locallang_db.xlf:tx_c1linklist_domain_model_linklist.image', 'config' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::getFileFieldTCAConfig('image', ['foreign_types' => $GLOBALS['TCA']['tt_content']['columns']['image']['config']['foreign_types'], 'minitems' => 0, 'maxitems' => 1], 'gif,jpg,jpeg,png,svg'))));
				tt_content,
				item_type;LLL:EXT:cms/locallang_ttc.xlf:CType_formlabel,
			', 'canNotCollapse' => 1), 'visibility' => array('showitem' => '
				hidden;LLL:EXT:bootstrap_package/Resources/Private/Language/Backend.xlf:carousel_item
			', 'canNotCollapse' => 1)), 'columns' => array('tt_content' => array('exclude' => 0, 'label' => 'LLL:EXT:bootstrap_package/Resources/Private/Language/Backend.xlf:carousel_item.tt_content', 'config' => array('type' => 'select', 'foreign_table' => 'tt_content', 'foreign_table_where' => 'AND tt_content.pid=###CURRENT_PID### AND tt_content.CType="bootstrap_package_carousel"', 'maxitems' => 1)), 'item_type' => array('label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.type', 'config' => array('type' => 'select', 'items' => array(array('LLL:EXT:bootstrap_package/Resources/Private/Language/Backend.xlf:carousel_item.item_type.header', 'header', 'i/tt_content_header.gif'), array('LLL:EXT:bootstrap_package/Resources/Private/Language/Backend.xlf:carousel_item.item_type.textandimage', 'textandimage', 'i/tt_content_textpic.gif'), array('LLL:EXT:bootstrap_package/Resources/Private/Language/Backend.xlf:carousel_item.item_type.backgroundimage', 'backgroundimage', 'i/tt_content_image.gif'), array('LLL:EXT:bootstrap_package/Resources/Private/Language/Backend.xlf:carousel_item.item_type.html', 'html', 'i/tt_content_html.gif')), 'default' => 'header', 'authMode' => $GLOBALS['TYPO3_CONF_VARS']['BE']['explicitADmode'], 'authMode_enforce' => 'strict', 'iconsInOptionTags' => 1, 'noIconsBelowSelect' => 1)), 'hidden' => array('exclude' => 1, 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.hidden', 'config' => array('type' => 'check', 'items' => array('1' => array('0' => 'LLL:EXT:cms/locallang_ttc.xlf:hidden.I.0')))), 'starttime' => array('exclude' => 1, 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.starttime', 'config' => array('type' => 'input', 'size' => '13', 'max' => '20', 'eval' => 'datetime', 'default' => '0'), 'l10n_mode' => 'exclude', 'l10n_display' => 'defaultAsReadonly'), 'endtime' => array('exclude' => 1, 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.endtime', 'config' => array('type' => 'input', 'size' => '13', 'max' => '20', 'eval' => 'datetime', 'default' => '0', 'range' => array('upper' => mktime(0, 0, 0, 12, 31, 2020))), 'l10n_mode' => 'exclude', 'l10n_display' => 'defaultAsReadonly'), '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.php:LGL.l18n_parent', 'config' => array('type' => 'select', 'items' => array(array('', 0)), 'foreign_table' => 'tx_bootstrappackage_carousel_item', 'foreign_table_where' => 'AND tx_bootstrappackage_carousel_item.uid=###REC_FIELD_l10n_parent### AND tx_bootstrappackage_carousel_item.sys_language_uid IN (-1,0)')), 'l10n_diffsource' => array('config' => array('type' => 'passthrough')), 'link' => array('exclude' => 1, 'label' => 'LLL:EXT:bootstrap_package/Resources/Private/Language/Backend.xlf:carousel_item.link', 'config' => array('eval' => 'trim', 'max' => 256, 'size' => 50, 'softref' => 'typolink', 'type' => 'input', 'wizards' => array('link' => array('icon' => 'link_popup.gif', 'JSopenParams' => 'height=300,width=500,status=0,menubar=0,scrollbars=1', 'module' => array('name' => 'wizard_element_browser', 'urlParameters' => array('mode' => 'wizard')), 'title' => 'LLL:EXT:bootstrap_package/Resources/Private/Language/Backend.xlf:carousel_item.link', 'type' => 'popup'), '_PADDING' => 2))), 'header' => array('exclude' => 0, 'label' => 'LLL:EXT:bootstrap_package/Resources/Private/Language/Backend.xlf:carousel_item.header', 'config' => array('type' => 'input', 'size' => 50, 'eval' => 'trim,required')), 'header_layout' => array('exclude' => 1, 'label' => 'LLL:EXT:bootstrap_package/Resources/Private/Language/Backend.xlf:carousel_item.header_layout', 'config' => array('type' => 'select', 'items' => array(array('H1', '1'), array('H2', '2'), array('H3', '3'), array('H4', '4')), 'default' => '1')), 'bodytext' => array('exclude' => 0, 'label' => 'LLL:EXT:bootstrap_package/Resources/Private/Language/Backend.xlf:carousel_item.bodytext', 'config' => array('type' => 'text', 'cols' => 40, 'rows' => 15, 'eval' => 'trim', 'wizards' => array('t3editor' => array('enableByTypeConfig' => 1, 'type' => 'userFunc', 'userFunc' => 'TYPO3\\CMS\\T3editor\\FormWizard->main', 'title' => 't3editor', 'icon' => 'wizard_table.gif', 'module' => array('name' => 'wizard_table'), 'params' => array('format' => 'html', 'style' => 'width:98%; height: 60%;'))))), 'image' => array('exclude' => 0, 'label' => 'LLL:EXT:bootstrap_package/Resources/Private/Language/Backend.xlf:carousel_item.image', 'config' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::getFileFieldTCAConfig('image', array('appearance' => array('createNewRelationLinkTitle' => 'LLL:EXT:cms/locallang_ttc.xlf:images.addFileReference'), 'foreign_types' => array(\TYPO3\CMS\Core\Resource\File::FILETYPE_UNKNOWN => array('showitem' => '
								--palette--;;filePalette
							'), \TYPO3\CMS\Core\Resource\File::FILETYPE_TEXT => array('showitem' => '
								--palette--;;filePalette
							'), \TYPO3\CMS\Core\Resource\File::FILETYPE_IMAGE => array('showitem' => '
								title,
								alternative,
								 --palette--;;filePalette
							'), \TYPO3\CMS\Core\Resource\File::FILETYPE_AUDIO => array('showitem' => '
								--palette--;;filePalette
							'), \TYPO3\CMS\Core\Resource\File::FILETYPE_VIDEO => array('showitem' => '
								--palette--;;filePalette
							'), \TYPO3\CMS\Core\Resource\File::FILETYPE_APPLICATION => array('showitem' => '
								--palette--;;filePalette
							')), 'minitems' => 0, 'maxitems' => 1), $GLOBALS['TYPO3_CONF_VARS']['GFX']['imagefile_ext'])), 'text_color' => array('exclude' => 0, 'label' => 'LLL:EXT:bootstrap_package/Resources/Private/Language/Backend.xlf:carousel_item.text_color', 'config' => array('type' => 'input', 'size' => 10, 'eval' => 'trim', 'default' => '#FFFFFF', 'wizards' => array('colorChoice' => array('type' => 'colorbox', 'title' => 'LLL:EXT:lang/locallang_wizards:colorpicker_title', 'module' => array('name' => 'wizard_colorpicker'), 'dim' => '20x20', 'JSopenParams' => 'height=600,width=380,status=0,menubar=0,scrollbars=1')))), 'background_color' => array('exclude' => 0, 'label' => 'LLL:EXT:bootstrap_package/Resources/Private/Language/Backend.xlf:carousel_item.background_color', 'config' => array('type' => 'input', 'size' => 10, 'eval' => 'trim', 'default' => '#333333', 'wizards' => array('colorChoice' => array('type' => 'colorbox', 'title' => 'LLL:EXT:lang/locallang_wizards:colorpicker_title', 'module' => array('name' => 'wizard_colorpicker'), 'dim' => '20x20', 'JSopenParams' => 'height=600,width=380,status=0,menubar=0,scrollbars=1')))), 'background_image' => array('exclude' => 0, 'label' => 'LLL:EXT:bootstrap_package/Resources/Private/Language/Backend.xlf:carousel_item.background_image', 'config' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::getFileFieldTCAConfig('background_image', array('appearance' => array('createNewRelationLinkTitle' => 'LLL:EXT:cms/locallang_ttc.xlf:images.addFileReference'), 'foreign_types' => array(\TYPO3\CMS\Core\Resource\File::FILETYPE_UNKNOWN => array('showitem' => '
								--palette--;;filePalette
							'), \TYPO3\CMS\Core\Resource\File::FILETYPE_TEXT => array('showitem' => '
								--palette--;;filePalette
							'), \TYPO3\CMS\Core\Resource\File::FILETYPE_IMAGE => array('showitem' => '
								--palette--;;filePalette
							'), \TYPO3\CMS\Core\Resource\File::FILETYPE_AUDIO => array('showitem' => '
								--palette--;;filePalette
							'), \TYPO3\CMS\Core\Resource\File::FILETYPE_VIDEO => array('showitem' => '
								--palette--;;filePalette
							'), \TYPO3\CMS\Core\Resource\File::FILETYPE_APPLICATION => array('showitem' => '
								--palette--;;filePalette
							')), 'minitems' => 0, 'maxitems' => 1), $GLOBALS['TYPO3_CONF_VARS']['GFX']['imagefile_ext']))));
							--palette--;;filePalette'), \TYPO3\CMS\Core\Resource\File::FILETYPE_AUDIO => array('showitem' => '
							--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,
							--palette--;;filePalette'), \TYPO3\CMS\Core\Resource\File::FILETYPE_VIDEO => array('showitem' => '
							--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,
							--palette--;;filePalette'), \TYPO3\CMS\Core\Resource\File::FILETYPE_APPLICATION => array('showitem' => '
							--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,
							--palette--;;filePalette'))), $GLOBALS['TYPO3_CONF_VARS']['GFX']['imagefile_ext'])), 'gallery_header' => array('exclude' => 1, 'label' => 'LLL:EXT:project/Resources/Private/Language/locallang_db.xlf:tx_project_domain_model_project.gallery_header', 'config' => array('type' => 'input', 'size' => 30, 'eval' => 'trim')), 'gallery_subheader' => array('exclude' => 1, 'label' => 'LLL:EXT:project/Resources/Private/Language/locallang_db.xlf:tx_project_domain_model_project.gallery_subheader', 'config' => array('type' => 'input', 'size' => 30, 'eval' => 'trim')), 'gallery_images' => array('exclude' => 1, 'label' => 'LLL:EXT:project/Resources/Private/Language/locallang_db.xlf:tx_project_domain_model_project.gallery_images', 'config' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::getFileFieldTCAConfig('galleryImages', array('maxitems' => 10, 'appearance' => array('createNewRelationLinkTitle' => 'LLL:EXT:cms/locallang_ttc.xlf:images.addFileReference'), 'foreign_types' => array('0' => array('showitem' => '
							--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,
							--palette--;;filePalette'), \TYPO3\CMS\Core\Resource\File::FILETYPE_TEXT => array('showitem' => '
							--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,
							--palette--;;filePalette'), \TYPO3\CMS\Core\Resource\File::FILETYPE_IMAGE => array('showitem' => '
							--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,
							--palette--;;filePalette'), \TYPO3\CMS\Core\Resource\File::FILETYPE_AUDIO => array('showitem' => '
							--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,
							--palette--;;filePalette'), \TYPO3\CMS\Core\Resource\File::FILETYPE_VIDEO => array('showitem' => '
							--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,
							--palette--;;filePalette'), \TYPO3\CMS\Core\Resource\File::FILETYPE_APPLICATION => array('showitem' => '
							--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,
							--palette--;;filePalette'))), $GLOBALS['TYPO3_CONF_VARS']['GFX']['imagefile_ext'])), 'gallery_link' => array('exclude' => 1, 'label' => 'LLL:EXT:project/Resources/Private/Language/locallang_db.xlf:tx_project_domain_model_project.gallery_link', 'config' => array('type' => 'input', 'size' => 30, 'eval' => 'trim', 'wizards' => array('_PADDING' => 2, 'link' => array('type' => 'popup', 'title' => 'Link', 'icon' => 'link_popup.gif', 'script' => 'browse_links.php?mode=wizard&amp;act=folder', 'params' => array('blindLinkOptions' => 'page,url,mail,spec,file'), 'JSopenParams' => 'height=300,width=500,status=0,menubar=0,scrollbars=1')))), 'contact_header' => array('exclude' => 1, 'label' => 'LLL:EXT:project/Resources/Private/Language/locallang_db.xlf:tx_project_domain_model_project.contact_header', 'config' => array('type' => 'input', 'size' => 30, 'eval' => 'trim')), 'contact_subheader' => array('exclude' => 1, 'label' => 'LLL:EXT:project/Resources/Private/Language/locallang_db.xlf:tx_project_domain_model_project.contact_subheader', 'config' => array('type' => 'input', 'size' => 30, 'eval' => 'trim')), 'contact_name' => array('exclude' => 1, 'label' => 'LLL:EXT:project/Resources/Private/Language/locallang_db.xlf:tx_project_domain_model_project.contact_name', 'config' => array('type' => 'input', 'size' => 30, 'eval' => 'trim')), 'contact_position' => array('exclude' => 1, 'label' => 'LLL:EXT:project/Resources/Private/Language/locallang_db.xlf:tx_project_domain_model_project.contact_position', 'config' => array('type' => 'input', 'size' => 30, 'eval' => 'trim')), 'contact_telephone' => array('exclude' => 1, 'label' => 'LLL:EXT:project/Resources/Private/Language/locallang_db.xlf:tx_project_domain_model_project.contact_telephone', 'config' => array('type' => 'input', 'size' => 30, 'eval' => 'trim')), 'contact_email' => array('exclude' => 1, 'label' => 'LLL:EXT:project/Resources/Private/Language/locallang_db.xlf:tx_project_domain_model_project.contact_email', 'config' => array('type' => 'input', 'size' => 30, 'eval' => 'trim')), 'contact_image' => array('exclude' => 1, 'label' => 'contact Image', 'config' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::getFileFieldTCAConfig('contactImage', array('maxitems' => 1, 'appearance' => array('createNewRelationLinkTitle' => 'LLL:EXT:cms/locallang_ttc.xlf:images.addFileReference'), 'foreign_types' => array('0' => array('showitem' => '
							--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,
							--palette--;;filePalette'), \TYPO3\CMS\Core\Resource\File::FILETYPE_TEXT => array('showitem' => '
							--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,
							--palette--;;filePalette'), \TYPO3\CMS\Core\Resource\File::FILETYPE_IMAGE => array('showitem' => '
							--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,
							--palette--;;filePalette'), \TYPO3\CMS\Core\Resource\File::FILETYPE_AUDIO => array('showitem' => '
							--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,
							--palette--;;filePalette'), \TYPO3\CMS\Core\Resource\File::FILETYPE_VIDEO => array('showitem' => '
							--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,
							--palette--;;filePalette'), \TYPO3\CMS\Core\Resource\File::FILETYPE_APPLICATION => array('showitem' => '
							--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,
							--palette--;;filePalette'))), $GLOBALS['TYPO3_CONF_VARS']['GFX']['imagefile_ext']))));
Exemple #26
0
<?php

return ['ctrl' => ['title' => 'LLL:EXT:lang/Resources/Private/Language/locallang_tca.xlf:sys_file_collection', 'label' => 'title', 'tstamp' => 'tstamp', 'crdate' => 'crdate', 'cruser_id' => 'cruser_id', 'versioningWS' => true, 'origUid' => 't3_origuid', 'languageField' => 'sys_language_uid', 'transOrigPointerField' => 'l10n_parent', 'transOrigDiffSourceField' => 'l10n_diffsource', 'default_sortby' => 'ORDER BY crdate', 'delete' => 'deleted', 'type' => 'type', 'typeicon_column' => 'type', 'typeicon_classes' => ['default' => 'apps-filetree-folder-media', 'static' => 'apps-clipboard-images', 'folder' => 'apps-filetree-folder-media'], 'requestUpdate' => 'storage', 'enablecolumns' => ['disabled' => 'hidden', 'starttime' => 'starttime', 'endtime' => 'endtime'], 'searchFields' => 'files,title'], 'interface' => ['showRecordFieldList' => 'sys_language_uid,l10n_parent,l10n_diffsource,hidden,starttime,endtime,files,title'], 'columns' => ['t3ver_label' => ['label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_general.xlf:LGL.versionLabel', 'config' => ['type' => 'input', 'size' => 30, 'max' => 30]], 'sys_language_uid' => ['exclude' => true, 'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_general.xlf:LGL.language', 'config' => ['type' => 'select', 'renderType' => 'selectSingle', 'foreign_table' => 'sys_language', 'foreign_table_where' => 'ORDER BY sys_language.title', 'items' => [['LLL:EXT:lang/Resources/Private/Language/locallang_general.xlf:LGL.allLanguages', -1], ['LLL:EXT:lang/Resources/Private/Language/locallang_general.xlf:LGL.default_value', 0]], 'default' => 0, 'showIconTable' => true]], 'l10n_parent' => ['displayCond' => 'FIELD:sys_language_uid:>:0', 'exclude' => true, 'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_general.xlf:LGL.l18n_parent', 'config' => ['type' => 'select', 'renderType' => 'selectSingle', 'items' => [['', 0]], 'foreign_table' => 'sys_file_collection', 'foreign_table_where' => 'AND sys_file_collection.pid=###CURRENT_PID### AND sys_file_collection.sys_language_uid IN (-1,0)']], 'l10n_diffsource' => ['config' => ['type' => 'passthrough', 'default' => '']], 'hidden' => ['exclude' => true, 'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_general.xlf:LGL.hidden', 'config' => ['type' => 'check', 'default' => 0]], 'starttime' => ['exclude' => true, 'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_general.xlf:LGL.starttime', 'config' => ['type' => 'input', 'size' => 8, 'max' => 20, 'eval' => 'date', 'default' => 0]], 'endtime' => ['exclude' => true, 'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_general.xlf:LGL.endtime', 'config' => ['type' => 'input', 'size' => 8, 'max' => 20, 'eval' => 'date', 'default' => 0, 'range' => ['upper' => mktime(0, 0, 0, 1, 1, 2038)]]], 'type' => ['label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_tca.xlf:sys_file_collection.type', 'config' => ['type' => 'select', 'renderType' => 'selectSingle', 'items' => [['LLL:EXT:lang/Resources/Private/Language/locallang_tca.xlf:sys_file_collection.type.0', 'static'], ['LLL:EXT:lang/Resources/Private/Language/locallang_tca.xlf:sys_file_collection.type.1', 'folder'], ['LLL:EXT:lang/Resources/Private/Language/locallang_tca.xlf:sys_file_collection.type.2', 'category']]]], 'files' => ['label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_tca.xlf:sys_file_collection.files', 'config' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::getFileFieldTCAConfig('files')], 'title' => ['label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_tca.xlf:sys_file_collection.title', 'config' => ['type' => 'input', 'size' => 30, 'eval' => 'required']], 'storage' => ['label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_tca.xlf:sys_file_collection.storage', 'config' => ['type' => 'select', 'renderType' => 'selectSingle', 'items' => [['', 0]], 'foreign_table' => 'sys_file_storage', 'foreign_table_where' => 'ORDER BY sys_file_storage.name', 'size' => 1, 'minitems' => 0, 'maxitems' => 1]], 'folder' => ['label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_tca.xlf:sys_file_collection.folder', 'config' => ['type' => 'select', 'renderType' => 'selectSingle', 'items' => [], 'itemsProcFunc' => 'TYPO3\\CMS\\Core\\Resource\\Service\\UserFileMountService->renderTceformsSelectDropdown', 'default' => '']], 'recursive' => ['label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_tca.xlf:sys_file_collection.recursive', 'config' => ['type' => 'check', 'default' => 0]], 'category' => ['label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_tca.xlf:sys_file_collection.category', 'config' => ['minitems' => 0, 'maxitems' => 1, 'type' => 'select', 'renderType' => 'selectTree', 'foreign_table' => 'sys_category', 'foreign_table_where' => ' AND sys_category.sys_language_uid IN (-1,0) ORDER BY sys_category.sorting ASC', 'treeConfig' => ['parentField' => 'parent', 'appearance' => ['expandAll' => true, 'showHeader' => true]]]]], 'types' => ['0' => ['showitem' => '
                --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:general,
                    type,title,files,
                --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:language,
                    --palette--;;language,
                --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:access,
                    --palette--;;timeRestriction,
                --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:extended,
            '], 'static' => ['showitem' => '
                --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:general,
                    type,title,files,
                --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:language,
                    --palette--;;language,
                --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:access,
                    --palette--;;timeRestriction,
                --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:extended,
            '], 'folder' => ['showitem' => '
                --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:general,
                    type,title,storage, folder, recursive,
                --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:language,
                    --palette--;;language,
                --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:access,
                    --palette--;;timeRestriction,
                --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:extended,
            '], 'category' => ['showitem' => '
                --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:general,
                    type,title,category,
                --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:language,
                    --palette--;;language,
							--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,
							--palette--;;filePalette'), \TYPO3\CMS\Core\Resource\File::FILETYPE_IMAGE => array('showitem' => '
							--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,
							--palette--;;filePalette'), \TYPO3\CMS\Core\Resource\File::FILETYPE_AUDIO => array('showitem' => '
							--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,
							--palette--;;filePalette'), \TYPO3\CMS\Core\Resource\File::FILETYPE_VIDEO => array('showitem' => '
							--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,
							--palette--;;filePalette'), \TYPO3\CMS\Core\Resource\File::FILETYPE_APPLICATION => array('showitem' => '
							--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,
							--palette--;;filePalette'))), $GLOBALS['TYPO3_CONF_VARS']['GFX']['imagefile_ext'])), 'media' => array('exclude' => 0, 'label' => 'LLL:EXT:store_finder/Resources/Private/Language/locallang_db.xml:tx_storefinder_domain_model_location.media', 'config' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::getFileFieldTCAConfig('media', array('appearance' => array('headerThumbnail' => array('width' => '100', 'height' => '100c'), 'createNewRelationLinkTitle' => 'LLL:EXT:cms/locallang_ttc.xlf:images.addFileReference'), 'foreign_types' => array('0' => array('showitem' => '
							--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,
							--palette--;;filePalette'), \TYPO3\CMS\Core\Resource\File::FILETYPE_TEXT => array('showitem' => '
							--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,
							--palette--;;filePalette'), \TYPO3\CMS\Core\Resource\File::FILETYPE_IMAGE => array('showitem' => '
							--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,
							--palette--;;filePalette'), \TYPO3\CMS\Core\Resource\File::FILETYPE_AUDIO => array('showitem' => '
							--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,
							--palette--;;filePalette'), \TYPO3\CMS\Core\Resource\File::FILETYPE_VIDEO => array('showitem' => '
							--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,
							--palette--;;filePalette'), \TYPO3\CMS\Core\Resource\File::FILETYPE_APPLICATION => array('showitem' => '
							--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,
							--palette--;;filePalette'))), $GLOBALS['TYPO3_CONF_VARS']['GFX']['imagefile_ext'])), 'content' => array('exclude' => 1, 'label' => 'LLL:EXT:store_finder/Resources/Private/Language/locallang_db.xml:tx_storefinder_domain_model_location.content', 'config' => array('type' => 'inline', 'allowed' => 'tt_content', 'foreign_table' => 'tt_content', 'minitems' => 0, 'maxitems' => 10, 'appearance' => array('collapseAll' => 1, 'expandSingle' => 1, 'levelLinksPosition' => 'bottom', 'useSortable' => 1, 'showPossibleLocalizationRecords' => 1, 'showRemovedLocalizationRecords' => 1, 'showAllLocalizationLink' => 1, 'showSynchronizationLink' => 1, 'enabledControls' => array('info' => FALSE))))), 'types' => array('0' => array('showitem' => '
			--div--;LLL:EXT:store_finder/Resources/Private/Language/locallang_db.xml:div-address,
				name, storeid, address, additionaladdress, zipcode, city, state, country,
			--div--;LLL:EXT:store_finder/Resources/Private/Language/locallang_db.xml:div-contact,
				person, phone, mobile, fax, email, hours,
			--div--;LLL:EXT:store_finder/Resources/Private/Language/locallang_db.xml:div-relations,
				related, categories, attributes, icon,
				--palette--;LLL:EXT:store_finder/Resources/Private/Language/locallang_db.xml:palette-coordinates;coordinates,
			--div--;LLL:EXT:store_finder/Resources/Private/Language/locallang_db.xml:div-informations,
				products, notes;;;richtext:rte_transform[flag=rte_enabled|mode=ts_css], url,
<?php

return array('ctrl' => array('title' => 'LLL:EXT:sf_event_mgt/Resources/Private/Language/locallang_db.xlf:tx_sfeventmgt_domain_model_organisator', 'label' => 'name', 'tstamp' => 'tstamp', 'crdate' => 'crdate', 'cruser_id' => 'cruser_id', 'dividers2tabs' => TRUE, 'sortby' => 'sorting', 'versioningWS' => 2, 'versioning_followPages' => TRUE, 'languageField' => 'sys_language_uid', 'transOrigPointerField' => 'l10n_parent', 'transOrigDiffSourceField' => 'l10n_diffsource', 'delete' => 'deleted', 'enablecolumns' => array('disabled' => 'hidden'), 'searchFields' => 'name, email, phone,', 'iconfile' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath('sf_event_mgt') . 'Resources/Public/Icons/tx_sfeventmgt_domain_model_organisator.png'), 'interface' => array('showRecordFieldList' => 'sys_language_uid, l10n_parent, l10n_diffsource, hidden, name, email, phone, image'), 'types' => array('1' => array('showitem' => 'sys_language_uid;;;;1-1-1, l10n_parent, l10n_diffsource, hidden;;1, name, email, phone, image')), '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_sfeventmgt_domain_model_organisator', 'foreign_table_where' => 'AND tx_sfeventmgt_domain_model_organisator.pid=###CURRENT_PID### AND tx_sfeventmgt_domain_model_organisator.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)), 'name' => array('exclude' => 1, 'label' => 'LLL:EXT:sf_event_mgt/Resources/Private/Language/locallang_db.xlf:tx_sfeventmgt_domain_model_organisator.name', 'config' => array('type' => 'input', 'size' => 30, 'eval' => 'trim')), 'email' => array('exclude' => 1, 'l10n_mode' => 'mergeIfNotBlank', 'label' => 'LLL:EXT:sf_event_mgt/Resources/Private/Language/locallang_db.xlf:tx_sfeventmgt_domain_model_organisator.email', 'config' => array('type' => 'input', 'size' => 30, 'eval' => 'trim')), 'phone' => array('exclude' => 1, 'label' => 'LLL:EXT:sf_event_mgt/Resources/Private/Language/locallang_db.xlf:tx_sfeventmgt_domain_model_organisator.phone', 'config' => array('type' => 'input', 'size' => 30, 'eval' => 'trim')), 'image' => array('exclude' => 1, 'label' => 'LLL:EXT:sf_event_mgt/Resources/Private/Language/locallang_db.xlf:tx_sfeventmgt_domain_model_organisator.image', 'config' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::getFileFieldTCAConfig('image', array('appearance' => array('createNewRelationLinkTitle' => 'LLL:EXT:cms/locallang_ttc.xlf:images.addFileReference'), 'minitems' => 0, 'maxitems' => 1), $GLOBALS['TYPO3_CONF_VARS']['GFX']['imagefile_ext']))));
Exemple #29
0
 /**
  * Generates the TCA for fields
  *
  * @param array $tca
  * @return string
  * @todo Delete Empty TCA-Values recursive
  */
 public function generateFieldsTca($tca)
 {
     $columns = array();
     if ($tca) {
         foreach ($tca as $tcakey => $tcavalue) {
             if ($tcavalue) {
                 foreach ($tcavalue as $fieldkey => $fieldvalue) {
                     // Add File-Config for file-field
                     if ($fieldkey == "options" && $fieldvalue == "file") {
                         $fieldName = $tcakey;
                         $customSettingOverride = array('foreign_types' => array('0' => array('showitem' => '--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette, --palette--;;filePalette'), '1' => array('showitem' => '--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette, --palette--;;filePalette'), '2' => array('showitem' => '--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette, --palette--;;filePalette'), '3' => array('showitem' => '--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette, --palette--;;filePalette'), '4' => array('showitem' => '--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette, --palette--;;filePalette'), '5' => array('showitem' => '--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette, --palette--;;filePalette')));
                         $allowedFileExtensions = $GLOBALS['TYPO3_CONF_VARS']['GFX']['imagefile_ext'];
                         $columns[$tcakey]["config"] = \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::getFileFieldTCAConfig($fieldName, $customSettingOverride, $allowedFileExtensions);
                     }
                     // Fill missing tablename in TCA-Config for inline-fields
                     if ($fieldkey == "config" && $tcavalue[$fieldkey]["foreign_table"] == "--inlinetable--") {
                         $tcavalue[$fieldkey]["foreign_table"] = $tcakey;
                     }
                     // merge user inputs with file array
                     if (!is_array($columns[$tcakey])) {
                         $columns[$tcakey] = array();
                     } else {
                         \TYPO3\CMS\Core\Utility\ArrayUtility::mergeRecursiveWithOverrule($columns[$tcakey], $tcavalue);
                     }
                     // Unset some values that are not needed in TCA
                     unset($columns[$tcakey]["options"]);
                     unset($columns[$tcakey]["key"]);
                     unset($columns[$tcakey]["rte"]);
                     unset($columns[$tcakey]["inlineParent"]);
                     $columns[$tcakey] = $this->removeBlankOptions($columns[$tcakey]);
                     $columns[$tcakey] = $this->replaceKey($columns[$tcakey], $tcakey);
                 }
             }
         }
     }
     return $columns;
 }
<?php

return array('ctrl' => array('title' => 'LLL:EXT:blb_blog/Resources/Private/Language/locallang_db.xlf:tx_blbblog_domain_model_post', 'label' => 'title', 'tstamp' => 'tstamp', 'crdate' => 'crdate', 'cruser_id' => 'cruser_id', 'dividers2tabs' => TRUE, 'delete' => 'deleted', 'enablecolumns' => array('disabled' => 'hidden', 'starttime' => 'starttime', 'endtime' => 'endtime'), 'searchFields' => 'title,summary,content,publication_date,image,comments,authors,tags,categories,', 'iconfile' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath('blb_blog') . 'Resources/Public/Icons/tx_blbblog_domain_model_post.gif'), 'interface' => array('showRecordFieldList' => 'hidden, title, summary, content, publication_date, image, comments, authors, tags, categories'), 'types' => array('1' => array('showitem' => 'hidden;;1, title, summary;;;richtext:rte_transform[mode=ts_links], content;;;richtext:rte_transform[mode=ts_links], publication_date, image, comments, authors, tags, categories, --div--;LLL:EXT:cms/locallang_ttc.xlf:tabs.access, starttime, endtime')), 'palettes' => array('1' => array('showitem' => '')), 'columns' => array('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'))))), 'title' => array('exclude' => 1, 'label' => 'LLL:EXT:blb_blog/Resources/Private/Language/locallang_db.xlf:tx_blbblog_domain_model_post.title', 'config' => array('type' => 'input', 'size' => 30, 'eval' => 'trim,required')), 'summary' => array('exclude' => 1, 'label' => 'LLL:EXT:blb_blog/Resources/Private/Language/locallang_db.xlf:tx_blbblog_domain_model_post.summary', 'config' => array('type' => 'text', 'cols' => 40, 'rows' => 15, 'eval' => 'trim,required', 'wizards' => array('RTE' => array('icon' => 'wizard_rte2.gif', 'notNewRecords' => 1, 'RTEonly' => 1, 'module' => array('name' => 'wizard_rich_text_editor', 'urlParameters' => array('mode' => 'wizard', 'act' => 'wizard_rte.php')), 'title' => 'LLL:EXT:cms/locallang_ttc.xlf:bodytext.W.RTE', 'type' => 'script')))), 'content' => array('exclude' => 1, 'label' => 'LLL:EXT:blb_blog/Resources/Private/Language/locallang_db.xlf:tx_blbblog_domain_model_post.content', 'config' => array('type' => 'text', 'cols' => 40, 'rows' => 15, 'eval' => 'trim,required', 'wizards' => array('RTE' => array('icon' => 'wizard_rte2.gif', 'notNewRecords' => 1, 'RTEonly' => 1, 'module' => array('name' => 'wizard_rich_text_editor', 'urlParameters' => array('mode' => 'wizard', 'act' => 'wizard_rte.php')), 'title' => 'LLL:EXT:cms/locallang_ttc.xlf:bodytext.W.RTE', 'type' => 'script')))), 'publication_date' => array('exclude' => 1, 'label' => 'LLL:EXT:blb_blog/Resources/Private/Language/locallang_db.xlf:tx_blbblog_domain_model_post.publication_date', 'config' => array('dbType' => 'date', 'type' => 'input', 'size' => 7, 'eval' => 'date,required', 'checkbox' => 0, 'default' => '0000-00-00')), 'image' => array('exclude' => 1, 'label' => 'LLL:EXT:blb_blog/Resources/Private/Language/locallang_db.xlf:tx_blbblog_domain_model_post.image', 'config' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::getFileFieldTCAConfig('image', array('appearance' => array('createNewRelationLinkTitle' => 'LLL:EXT:cms/locallang_ttc.xlf:images.addFileReference'), 'foreign_types' => array('0' => array('showitem' => '
							--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,
							--palette--;;filePalette'), \TYPO3\CMS\Core\Resource\File::FILETYPE_TEXT => array('showitem' => '
							--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,
							--palette--;;filePalette'), \TYPO3\CMS\Core\Resource\File::FILETYPE_IMAGE => array('showitem' => '
							--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,
							--palette--;;filePalette'), \TYPO3\CMS\Core\Resource\File::FILETYPE_AUDIO => array('showitem' => '
							--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,
							--palette--;;filePalette'), \TYPO3\CMS\Core\Resource\File::FILETYPE_VIDEO => array('showitem' => '
							--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,
							--palette--;;filePalette'), \TYPO3\CMS\Core\Resource\File::FILETYPE_APPLICATION => array('showitem' => '
							--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,
							--palette--;;filePalette')), 'maxitems' => 1), $GLOBALS['TYPO3_CONF_VARS']['GFX']['imagefile_ext'])), 'comments' => array('exclude' => 1, 'label' => 'LLL:EXT:blb_blog/Resources/Private/Language/locallang_db.xlf:tx_blbblog_domain_model_post.comments', 'config' => array('type' => 'inline', 'foreign_table' => 'tx_blbblog_domain_model_comment', 'foreign_field' => 'post', 'maxitems' => 9999, 'appearance' => array('collapseAll' => 0, 'levelLinksPosition' => 'top', 'showSynchronizationLink' => 1, 'showPossibleLocalizationRecords' => 1, 'showAllLocalizationLink' => 1))), 'authors' => array('exclude' => 1, 'label' => 'LLL:EXT:blb_blog/Resources/Private/Language/locallang_db.xlf:tx_blbblog_domain_model_post.authors', 'config' => array('type' => 'select', 'renderType' => 'selectMultipleSideBySide', 'foreign_table' => 'tx_blbblog_domain_model_author', 'MM' => 'tx_blbblog_post_author_mm', 'size' => 10, 'autoSizeMax' => 30, 'maxitems' => 9999, 'multiple' => 0, 'wizards' => array('_PADDING' => 1, '_VERTICAL' => 1, 'edit' => array('module' => array('name' => 'wizard_edit'), 'type' => 'popup', 'title' => 'Edit', 'icon' => 'edit2.gif', 'popup_onlyOpenIfSelected' => 1, 'JSopenParams' => 'height=350,width=580,status=0,menubar=0,scrollbars=1'), 'add' => array('module' => array('name' => 'wizard_add'), 'type' => 'script', 'title' => 'Create new', 'icon' => 'add.gif', 'params' => array('table' => 'tx_blbblog_domain_model_author', 'pid' => '###CURRENT_PID###', 'setValue' => 'prepend'))))), 'tags' => array('exclude' => 1, 'label' => 'LLL:EXT:blb_blog/Resources/Private/Language/locallang_db.xlf:tx_blbblog_domain_model_post.tags', 'config' => array('type' => 'select', 'renderType' => 'selectMultipleSideBySide', 'foreign_table' => 'tx_blbblog_domain_model_tag', 'MM' => 'tx_blbblog_post_tag_mm', 'size' => 10, 'autoSizeMax' => 30, 'maxitems' => 9999, 'multiple' => 0, 'wizards' => array('_PADDING' => 1, '_VERTICAL' => 1, 'edit' => array('module' => array('name' => 'wizard_edit'), 'type' => 'popup', 'title' => 'Edit', 'icon' => 'edit2.gif', 'popup_onlyOpenIfSelected' => 1, 'JSopenParams' => 'height=350,width=580,status=0,menubar=0,scrollbars=1'), 'add' => array('module' => array('name' => 'wizard_add'), 'type' => 'script', 'title' => 'Create new', 'icon' => 'add.gif', 'params' => array('table' => 'tx_blbblog_domain_model_tag', 'pid' => '###CURRENT_PID###', 'setValue' => 'prepend'))))), 'categories' => array('exclude' => 1, 'label' => 'LLL:EXT:blb_blog/Resources/Private/Language/locallang_db.xlf:tx_blbblog_domain_model_post.categories', 'config' => array('type' => 'select', 'renderType' => 'selectMultipleSideBySide', 'foreign_table' => 'tx_blbblog_domain_model_category', 'MM' => 'tx_blbblog_post_category_mm', 'size' => 10, 'autoSizeMax' => 30, 'maxitems' => 9999, 'multiple' => 0, 'wizards' => array('_PADDING' => 1, '_VERTICAL' => 1, 'edit' => array('module' => array('name' => 'wizard_edit'), 'type' => 'popup', 'title' => 'Edit', 'icon' => 'edit2.gif', 'popup_onlyOpenIfSelected' => 1, 'JSopenParams' => 'height=350,width=580,status=0,menubar=0,scrollbars=1'), 'add' => array('module' => array('name' => 'wizard_add'), 'type' => 'script', 'title' => 'Create new', 'icon' => 'add.gif', 'params' => array('table' => 'tx_blbblog_domain_model_category', 'pid' => '###CURRENT_PID###', 'setValue' => 'prepend')))))));