本文整理汇总了PHP中TYPO3\CMS\Core\Extension\ExtensionManager::getFileFieldTCAConfig方法的典型用法代码示例。如果您正苦于以下问题:PHP ExtensionManager::getFileFieldTCAConfig方法的具体用法?PHP ExtensionManager::getFileFieldTCAConfig怎么用?PHP ExtensionManager::getFileFieldTCAConfig使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类TYPO3\CMS\Core\Extension\ExtensionManager
的用法示例。
在下文中一共展示了ExtensionManager::getFileFieldTCAConfig方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: die
<?php
if (!defined('TYPO3_MODE')) {
die('Access denied.');
}
$TCA['sys_file_collection'] = array('ctrl' => $TCA['sys_file_collection']['ctrl'], 'interface' => array('showRecordFieldList' => 'sys_language_uid,l10n_parent,l10n_diffsource,hidden,starttime,endtime,files,title'), 'feInterface' => $TCA['sys_file_collection']['feInterface'], 'columns' => array('t3ver_label' => array('label' => 'LLL:EXT:lang/locallang_general.xml:LGL.versionLabel', 'config' => array('type' => 'input', 'size' => '30', 'max' => '30')), 'sys_language_uid' => array('exclude' => 1, 'label' => 'LLL:EXT:lang/locallang_general.xml: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.xml:LGL.allLanguages', -1), array('LLL:EXT:lang/locallang_general.xml:LGL.default_value', 0)))), 'l10n_parent' => array('displayCond' => 'FIELD:sys_language_uid:>:0', 'exclude' => 1, 'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.l18n_parent', 'config' => array('type' => 'select', 'items' => array(array('', 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' => array('config' => array('type' => 'passthrough')), 'hidden' => array('exclude' => 1, 'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.hidden', 'config' => array('type' => 'check', 'default' => '0')), 'starttime' => array('exclude' => 1, 'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.starttime', 'config' => array('type' => 'input', 'size' => '8', 'max' => '20', 'eval' => 'date', 'default' => '0', 'checkbox' => '0')), 'endtime' => array('exclude' => 1, 'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.endtime', 'config' => array('type' => 'input', 'size' => '8', 'max' => '20', 'eval' => 'date', 'checkbox' => '0', 'default' => '0', 'range' => array('upper' => mktime(3, 14, 7, 1, 19, 2038), 'lower' => mktime(0, 0, 0, date('m') - 1, date('d'), date('Y'))))), 'type' => array('exclude' => 0, 'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file_collection.type', 'config' => array('type' => 'select', 'items' => array(array('Static selection of files', 'static'), array('Folder from Storage', 'folder')))), 'files' => array('exclude' => 0, 'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file_collection.files', 'config' => \TYPO3\CMS\Core\Extension\ExtensionManager::getFileFieldTCAConfig('files')), 'title' => array('exclude' => 0, 'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file_collection.title', 'config' => array('type' => 'input', 'size' => '30', 'eval' => 'required')), 'storage' => array('exclude' => 0, 'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file_collection.storage', 'config' => array('type' => 'select', 'items' => array(array('', 0)), 'foreign_table' => 'sys_file_storage', 'foreign_table_where' => 'ORDER BY sys_file_storage.name', 'size' => 1, 'minitems' => 0, 'maxitems' => 1)), 'folder' => array('exclude' => 0, 'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file_collection.folder', 'config' => array('type' => 'select', 'items' => array(), 'itemsProcFunc' => 'typo3/sysext/core/Classes/Resource/Service/UserFileMountService.php:TYPO3\\CMS\\Core\\Resource\\Service\\UserFileMountService->renderTceformsSelectDropdown'))), 'types' => array('0' => array('showitem' => 'sys_language_uid;;;;1-1-1, l10n_parent, l10n_diffsource, title;;1, type, files'), 'static' => array('showitem' => 'sys_language_uid;;;;1-1-1, l10n_parent, l10n_diffsource, title;;1, type, files'), 'folder' => array('showitem' => 'sys_language_uid;;;;1-1-1, l10n_parent, l10n_diffsource, title;;1, type, storage, folder')), 'palettes' => array('1' => array('showitem' => 'hidden, starttime, endtime')));
示例2: array
--div--;LLL:EXT:cms/locallang_tca.xml:fe_users.tabs.options, lockToDomain;;;;1-1-1, TSconfig;;;;2-2-2,
--div--;LLL:EXT:cms/locallang_tca.xml:fe_users.tabs.access, starttime, endtime,
--div--;LLL:EXT:cms/locallang_tca.xml:fe_users.tabs.extended
')), 'palettes' => array('1' => array('showitem' => 'title'), '2' => array('showitem' => 'first_name,--linebreak--,middle_name,--linebreak--,last_name')));
// fe_groups
// FrontEnd usergroups - Membership of these determines access to elements
$TCA['fe_groups'] = array('ctrl' => $TCA['fe_groups']['ctrl'], 'interface' => array('showRecordFieldList' => 'title,hidden,subgroup,lockToDomain,description'), 'columns' => array('hidden' => array('label' => 'LLL:EXT:lang/locallang_general.xml:LGL.disable', 'exclude' => 1, 'config' => array('type' => 'check', 'default' => '0')), 'title' => array('label' => 'LLL:EXT:cms/locallang_tca.xml:fe_groups.title', 'config' => array('type' => 'input', 'size' => '20', 'max' => '50', 'eval' => 'trim,required')), 'subgroup' => array('exclude' => 1, 'label' => 'LLL:EXT:cms/locallang_tca.xml:fe_groups.subgroup', 'config' => array('type' => 'select', 'foreign_table' => 'fe_groups', 'foreign_table_where' => 'AND NOT(fe_groups.uid = ###THIS_UID###) AND fe_groups.hidden=0 ORDER BY fe_groups.title', 'size' => 6, 'autoSizeMax' => 10, 'minitems' => 0, 'maxitems' => 20)), 'lockToDomain' => array('exclude' => 1, 'label' => 'LLL:EXT:cms/locallang_tca.xml:fe_groups.lockToDomain', 'config' => array('type' => 'input', 'size' => '20', 'eval' => 'trim', 'max' => '50')), 'description' => array('label' => 'LLL:EXT:lang/locallang_general.xml:LGL.description', 'config' => array('type' => 'text', 'rows' => 5, 'cols' => 48)), 'TSconfig' => array('exclude' => 1, 'label' => 'TSconfig:', 'config' => array('type' => 'text', 'cols' => '40', 'rows' => '10', 'wizards' => array('_PADDING' => 4, '0' => array('title' => 'TSconfig QuickReference', 'script' => 'wizard_tsconfig.php?mode=fe_users', 'icon' => 'wizard_tsconfig.gif', 'JSopenParams' => 'height=500,width=780,status=0,menubar=0,scrollbars=1')), 'softref' => 'TSconfig'), 'defaultExtras' => 'fixed-font : enable-tab')), 'types' => array('0' => array('showitem' => '
hidden;;;;1-1-1,title;;;;2-2-2,description,subgroup;;;;3-3-3,
--div--;LLL:EXT:cms/locallang_tca.xml:fe_groups.tabs.options, lockToDomain;;;;1-1-1, TSconfig;;;;2-2-2,
--div--;LLL:EXT:cms/locallang_tca.xml:fe_groups.tabs.extended
')));
// sys_domain
$TCA['sys_domain'] = array('ctrl' => $TCA['sys_domain']['ctrl'], 'interface' => array('showRecordFieldList' => 'hidden,domainName,redirectTo'), 'columns' => array('domainName' => array('label' => 'LLL:EXT:cms/locallang_tca.xml:sys_domain.domainName', 'config' => array('type' => 'input', 'size' => '35', 'max' => '80', 'eval' => 'required,unique,lower,trim,domainname', 'softref' => 'substitute')), 'redirectTo' => array('label' => 'LLL:EXT:cms/locallang_tca.xml:sys_domain.redirectTo', 'config' => array('type' => 'input', 'size' => '35', 'max' => '255', 'default' => '', 'eval' => 'trim', 'softref' => 'substitute')), 'redirectHttpStatusCode' => array('exclude' => 1, 'label' => 'LLL:EXT:cms/locallang_tca.xml:sys_domain.redirectHttpStatusCode', 'config' => array('type' => 'select', 'items' => array(array('LLL:EXT:cms/locallang_tca.xml:sys_domain.redirectHttpStatusCode.301', '301'), array('LLL:EXT:cms/locallang_tca.xml:sys_domain.redirectHttpStatusCode.302', '302'), array('LLL:EXT:cms/locallang_tca.xml:sys_domain.redirectHttpStatusCode.303', '303'), array('LLL:EXT:cms/locallang_tca.xml:sys_domain.redirectHttpStatusCode.307', '307')), 'size' => 1, 'maxitems' => 1)), 'hidden' => array('label' => 'LLL:EXT:lang/locallang_general.xml:LGL.disable', 'exclude' => 1, 'config' => array('type' => 'check', 'default' => '0')), 'prepend_params' => array('label' => 'LLL:EXT:cms/locallang_tca.xml:sys_domain.prepend_params', 'exclude' => 1, 'config' => array('type' => 'check', 'default' => '0')), 'forced' => array('label' => 'LLL:EXT:cms/locallang_tca.xml:sys_domain.forced', 'exclude' => 1, 'config' => array('type' => 'check', 'default' => '1'))), 'types' => array('1' => array('showitem' => 'hidden;;;;1-1-1,domainName;;1;;3-3-3,prepend_params,forced;;;;4-4-4')), 'palettes' => array('1' => array('showitem' => 'redirectTo, redirectHttpStatusCode')));
// pages_language_overlay
$TCA['pages_language_overlay'] = array('ctrl' => $TCA['pages_language_overlay']['ctrl'], 'interface' => array('showRecordFieldList' => 'title,hidden,starttime,endtime,keywords,description,abstract'), 'columns' => array('doktype' => $TCA['pages']['columns']['doktype'], 'hidden' => array('exclude' => 1, 'label' => 'LLL:EXT:cms/locallang_tca.xml:pages.hidden', 'config' => array('type' => 'check', 'default' => '0', 'items' => array('1' => array('0' => 'LLL:EXT:cms/locallang_tca.xml:pages.hidden_checkbox_1_formlabel')))), 'starttime' => array('exclude' => 1, 'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.starttime', 'config' => array('type' => 'input', 'size' => '13', 'max' => '20', 'eval' => 'datetime', 'default' => '0')), 'endtime' => array('exclude' => 1, 'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.endtime', 'config' => array('type' => 'input', 'size' => '13', 'max' => '20', 'eval' => 'datetime', 'default' => '0', 'range' => array('upper' => mktime(0, 0, 0, 12, 31, 2020)))), 'title' => array('l10n_mode' => 'prefixLangTitle', 'label' => $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' => $TCA['pages']['columns']['subtitle']['label'], 'config' => array('type' => 'input', 'size' => '50', 'max' => '255', 'eval' => 'trim')), 'nav_title' => array('exclude' => 1, 'l10n_cat' => 'text', 'label' => $TCA['pages']['columns']['nav_title']['label'], 'config' => array('type' => 'input', 'size' => '50', 'max' => '255', 'eval' => 'trim')), 'keywords' => array('exclude' => 1, 'label' => $TCA['pages']['columns']['keywords']['label'], 'config' => array('type' => 'text', 'cols' => '40', 'rows' => '3')), 'description' => array('exclude' => 1, 'label' => $TCA['pages']['columns']['description']['label'], 'config' => array('type' => 'text', 'cols' => '40', 'rows' => '3')), 'abstract' => array('exclude' => 1, 'label' => $TCA['pages']['columns']['abstract']['label'], 'config' => array('type' => 'text', 'cols' => '40', 'rows' => '3')), 'author' => array('exclude' => 1, 'label' => $TCA['pages']['columns']['author']['label'], 'config' => array('type' => 'input', 'size' => '23', 'eval' => 'trim', 'max' => '80')), 'author_email' => array('exclude' => 1, 'label' => $TCA['pages']['columns']['author_email']['label'], 'config' => array('type' => 'input', 'size' => '23', 'eval' => 'trim', 'max' => '80', 'softref' => 'email[subst]')), 'media' => array('exclude' => 1, 'label' => $TCA['pages']['columns']['media']['label'], 'config' => \TYPO3\CMS\Core\Extension\ExtensionManager::getFileFieldTCAConfig('media')), 'url' => array('exclude' => 1, 'label' => 'LLL:EXT:cms/locallang_tca.xml:pages.url', 'config' => array('type' => 'input', 'size' => '23', 'max' => '255', 'eval' => 'trim', 'softref' => 'url')), 'urltype' => array('exclude' => 1, 'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.type', 'config' => array('type' => 'select', 'items' => $TCA['pages']['columns']['urltype']['config']['items'], 'default' => '1')), 'shortcut' => array('label' => 'LLL:EXT:lang/locallang_general.xml: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:cms/locallang_tca.xml:pages.shortcut_mode', 'config' => array('type' => 'select', 'items' => $TCA['pages']['columns']['shortcut_mode']['config']['items'], 'default' => '0')), 'sys_language_uid' => array('label' => 'LLL:EXT:lang/locallang_general.xml: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.xml:LGL.default_value', 0)))), 'tx_impexp_origuid' => array('config' => array('type' => 'passthrough')), 'l18n_diffsource' => array('config' => array('type' => 'passthrough')), 't3ver_label' => array('label' => 'LLL:EXT:lang/locallang_general.xml: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:cms/locallang_tca.xml:pages.palettes.standard;standard,
--palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.title;title,
--div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.access,
--palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.visibility;hiddenonly,
--palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.access;access,
--div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.metadata,
--palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.abstract;abstract,
--palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.metatags;metatags,
--palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.editorial;editorial,
--div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.resources,
--palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.media;media,
--div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.extended,
'), (string) \TYPO3\CMS\Frontend\Page\PageRepository::DOKTYPE_LINK => array('showitem' => '--palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.external;external,
--palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.title;title,
--div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.access,
--palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.visibility;hiddenonly,