/typo3/sysext/frontend/Configuration/TCA/sys_template.php
https://github.com/TYPO3/TYPO3.CMS · PHP · 204 lines · 202 code · 1 blank · 1 comment · 0 complexity · d97635320b4e2f1f6a1448245f8fd5c6 MD5 · raw file
- <?php
- return [
- 'ctrl' => [
- 'label' => 'title',
- 'descriptionColumn' => 'description',
- 'tstamp' => 'tstamp',
- 'sortby' => 'sorting',
- 'prependAtCopy' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.prependAtCopy',
- 'title' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:sys_template',
- 'versioningWS' => true,
- 'groupName' => 'system',
- 'origUid' => 't3_origuid',
- 'crdate' => 'crdate',
- 'cruser_id' => 'cruser_id',
- 'delete' => 'deleted',
- // Only admin, if any
- 'adminOnly' => true,
- 'enablecolumns' => [
- 'disabled' => 'hidden',
- 'starttime' => 'starttime',
- 'endtime' => 'endtime',
- ],
- 'typeicon_column' => 'root',
- 'typeicon_classes' => [
- 'default' => 'mimetypes-x-content-template-extension',
- '1' => 'mimetypes-x-content-template',
- ],
- 'searchFields' => 'title,constants,config',
- ],
- 'columns' => [
- 'title' => [
- 'label' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:sys_template.title',
- 'config' => [
- 'type' => 'input',
- 'size' => 25,
- 'max' => 255,
- 'required' => true,
- ],
- ],
- 'hidden' => [
- 'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.enabled',
- 'exclude' => true,
- 'config' => [
- 'type' => 'check',
- 'renderType' => 'checkboxToggle',
- 'default' => 0,
- 'items' => [
- [
- 0 => '',
- 'invertStateDisplay' => true,
- ],
- ],
- ],
- ],
- 'starttime' => [
- 'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.starttime',
- 'exclude' => true,
- 'config' => [
- 'type' => 'datetime',
- 'default' => 0,
- ],
- ],
- 'endtime' => [
- 'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.endtime',
- 'exclude' => true,
- 'config' => [
- 'type' => 'datetime',
- 'default' => 0,
- 'range' => [
- 'upper' => mktime(0, 0, 0, 1, 1, 2038),
- ],
- ],
- ],
- 'root' => [
- 'label' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:sys_template.root',
- 'config' => [
- 'type' => 'check',
- 'renderType' => 'checkboxToggle',
- 'default' => 0,
- ],
- ],
- 'clear' => [
- 'label' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:sys_template.clear',
- 'config' => [
- 'type' => 'check',
- 'items' => [
- ['Constants'],
- ['Setup'],
- ],
- 'cols' => 2,
- ],
- ],
- 'constants' => [
- 'label' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:sys_template.constants',
- 'config' => [
- 'type' => 'text',
- 'cols' => 48,
- 'rows' => 15,
- 'wrap' => 'off',
- 'enableTabulator' => true,
- 'fixedFont' => true,
- 'softref' => 'email[subst],url[subst]',
- ],
- ],
- 'include_static_file' => [
- 'label' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:sys_template.include_static_file',
- 'config' => [
- 'type' => 'select',
- 'renderType' => 'selectMultipleSideBySide',
- 'size' => 10,
- 'maxitems' => 100,
- 'items' => [],
- 'softref' => 'ext_fileref',
- ],
- ],
- 'basedOn' => [
- 'label' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:sys_template.basedOn',
- 'config' => [
- 'type' => 'group',
- 'allowed' => 'sys_template',
- 'maxitems' => 50,
- 'autoSizeMax' => 10,
- 'default' => '',
- 'fieldControl' => [
- 'editPopup' => [
- 'disabled' => false,
- 'options' => [
- 'title' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:sys_template.basedOn_edit',
- ],
- ],
- 'addRecord' => [
- 'disabled' => false,
- 'options' => [
- 'title' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:sys_template.basedOn_add',
- 'setValue' => 'prepend',
- ],
- ],
- ],
- ],
- ],
- 'includeStaticAfterBasedOn' => [
- 'label' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:sys_template.includeStaticAfterBasedOn',
- 'exclude' => true,
- 'config' => [
- 'type' => 'check',
- 'renderType' => 'checkboxToggle',
- 'default' => 0,
- ],
- ],
- 'config' => [
- 'label' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:sys_template.config',
- 'config' => [
- 'type' => 'text',
- 'rows' => 15,
- 'cols' => 48,
- 'wrap' => 'off',
- 'enableTabulator' => true,
- 'fixedFont' => true,
- 'softref' => 'email[subst],url[subst]',
- ],
- ],
- 'description' => [
- 'label' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:sys_template.description',
- 'config' => [
- 'type' => 'text',
- 'rows' => 5,
- 'cols' => 48,
- ],
- ],
- 'static_file_mode' => [
- 'label' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:sys_template.static_file_mode',
- 'config' => [
- 'type' => 'select',
- 'renderType' => 'selectSingle',
- 'items' => [
- ['LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:sys_template.static_file_mode.0', '0'],
- ['LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:sys_template.static_file_mode.1', '1'],
- ['LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:sys_template.static_file_mode.2', '2'],
- ['LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:sys_template.static_file_mode.3', '3'],
- ],
- 'default' => 0,
- ],
- ],
- ],
- 'types' => [
- '1' => ['showitem' => '
- --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:general,
- title, constants, config,
- --div--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:sys_template.tabs.options,
- clear, root,
- --div--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:sys_template.tabs.include,
- includeStaticAfterBasedOn, include_static_file, basedOn, static_file_mode,
- --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:access,
- hidden,--palette--;;timeRestriction,
- --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:notes,
- description,
- --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:extended,
- '],
- ],
- 'palettes' => [
- 'timeRestriction' => ['showitem' => 'starttime, endtime'],
- ],
- ];