mirror of https://github.com/FriendsOfTYPO3/tea.git synced 2024-11-14 05:56:14 +01:00
tea/Configuration/TCA/TeaBeverage.php

168 lines
6.3 KiB
PHP
Raw Normal View History

<?php
2014-12-14 15:26:17 +01:00
defined('TYPO3_MODE') or die('Access denied.');
2016-05-07 21:56:27 +02:00
$GLOBALS['TCA']['tx_tea_domain_model_teabeverage'] = [
2016-05-07 21:43:25 +02:00
'ctrl' => $GLOBALS['TCA']['tx_tea_domain_model_teabeverage']['ctrl'],
2016-05-07 21:56:27 +02:00
'interface' => [
2016-05-07 21:43:25 +02:00
'showRecordFieldList' => 'sys_language_uid, l10n_parent, l10n_diffsource, hidden, size, type, additions, testimonials',
2016-05-07 21:56:27 +02:00
],
'types' => [
'1' => ['showitem' => 'sys_language_uid;;;;1-1-1, l10n_parent, l10n_diffsource, hidden;;1, size, type, additions, testimonials,--div--;LLL:EXT:cms/locallang_ttc.xlf:tabs.access,starttime, endtime'],
],
'palettes' => [
'1' => ['showitem' => ''],
],
'columns' => [
'sys_language_uid' => [
2016-05-07 21:43:25 +02:00
'exclude' => 1,
'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.language',
2016-05-07 21:56:27 +02:00
'config' => [
2016-05-07 21:43:25 +02:00
'type' => 'select',
'foreign_table' => 'sys_language',
'foreign_table_where' => 'ORDER BY sys_language.title',
2016-05-07 21:56:27 +02:00
'items' => [
['LLL:EXT:lang/locallang_general.xlf:LGL.allLanguages', -1],
['LLL:EXT:lang/locallang_general.xlf:LGL.default_value', 0],
],
],
],
'l10n_parent' => [
2016-05-07 21:43:25 +02:00
'displayCond' => 'FIELD:sys_language_uid:>:0',
'exclude' => 1,
'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.l18n_parent',
2016-05-07 21:56:27 +02:00
'config' => [
2016-05-07 21:43:25 +02:00
'type' => 'select',
2016-05-07 21:56:27 +02:00
'items' => [
['', 0],
],
2016-05-07 21:43:25 +02:00
'foreign_table' => 'tx_tea_domain_model_teabeverage',
'foreign_table_where' => 'AND tx_tea_domain_model_teabeverage.pid=###CURRENT_PID### AND tx_tea_domain_model_teabeverage.sys_language_uid IN (-1,0)',
2016-05-07 21:56:27 +02:00
],
],
'l10n_diffsource' => [
'config' => [
2016-05-07 21:43:25 +02:00
'type' => 'passthrough',
2016-05-07 21:56:27 +02:00
],
],
't3ver_label' => [
2016-05-07 21:43:25 +02:00
'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.versionLabel',
2016-05-07 21:56:27 +02:00
'config' => [
2016-05-07 21:43:25 +02:00
'type' => 'input',
'size' => 30,
'max' => 255,
2016-05-07 21:56:27 +02:00
]
],
'hidden' => [
2016-05-07 21:43:25 +02:00
'exclude' => 1,
'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.hidden',
2016-05-07 21:56:27 +02:00
'config' => [
2016-05-07 21:43:25 +02:00
'type' => 'check',
2016-05-07 21:56:27 +02:00
],
],
'starttime' => [
2016-05-07 21:43:25 +02:00
'exclude' => 1,
'l10n_mode' => 'mergeIfNotBlank',
'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.starttime',
2016-05-07 21:56:27 +02:00
'config' => [
2016-05-07 21:43:25 +02:00
'type' => 'input',
'size' => 13,
'max' => 20,
'eval' => 'datetime',
'checkbox' => 0,
'default' => 0,
2016-05-07 21:56:27 +02:00
'range' => [
2016-05-07 21:43:25 +02:00
'lower' => mktime(0, 0, 0, date('m'), date('d'), date('Y')),
2016-05-07 21:56:27 +02:00
],
],
],
'endtime' => [
2016-05-07 21:43:25 +02:00
'exclude' => 1,
'l10n_mode' => 'mergeIfNotBlank',
'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.endtime',
2016-05-07 21:56:27 +02:00
'config' => [
2016-05-07 21:43:25 +02:00
'type' => 'input',
'size' => 13,
'max' => 20,
'eval' => 'datetime',
'checkbox' => 0,
'default' => 0,
2016-05-07 21:56:27 +02:00
'range' => [
2016-05-07 21:43:25 +02:00
'lower' => mktime(0, 0, 0, date('m'), date('d'), date('Y')),
2016-05-07 21:56:27 +02:00
],
],
],
'size' => [
2016-05-07 21:43:25 +02:00
'exclude' => 0,
'label' => 'LLL:EXT:tea/Resources/Private/Language/locallang_db.xlf:tx_tea_domain_model_teabeverage.size',
2016-05-07 21:56:27 +02:00
'config' => [
2016-05-07 21:43:25 +02:00
'type' => 'input',
'size' => 30,
'eval' => 'double2',
2016-05-07 21:56:27 +02:00
],
],
'type' => [
2016-05-07 21:43:25 +02:00
'exclude' => 0,
'label' => 'LLL:EXT:tea/Resources/Private/Language/locallang_db.xlf:tx_tea_domain_model_teabeverage.type',
2016-05-07 21:56:27 +02:00
'config' => [
2016-05-07 21:43:25 +02:00
'type' => 'select',
'foreign_table' => 'tx_tea_domain_model_teatype',
'minitems' => 0,
'maxitems' => 1,
2016-05-07 21:56:27 +02:00
],
],
'additions' => [
2016-05-07 21:43:25 +02:00
'exclude' => 0,
'label' => 'LLL:EXT:tea/Resources/Private/Language/locallang_db.xlf:tx_tea_domain_model_teabeverage.additions',
2016-05-07 21:56:27 +02:00
'config' => [
2016-05-07 21:43:25 +02:00
'type' => 'select',
'foreign_table' => 'tx_tea_domain_model_addition',
'MM' => 'tx_tea_teabeverage_addition_mm',
'size' => 10,
'autoSizeMax' => 30,
'maxitems' => 9999,
'multiple' => 0,
2016-05-07 21:56:27 +02:00
'wizards' => [
2016-05-07 21:43:25 +02:00
'_PADDING' => 1,
'_VERTICAL' => 1,
2016-05-07 21:56:27 +02:00
'edit' => [
2016-05-07 21:43:25 +02:00
'type' => 'popup',
'title' => 'Edit',
'script' => 'wizard_edit.php',
'icon' => 'edit2.gif',
'popup_onlyOpenIfSelected' => 1,
'JSopenParams' => 'height=350,width=580,status=0,menubar=0,scrollbars=1',
2016-05-07 21:56:27 +02:00
],
'add' => [
2016-05-07 21:43:25 +02:00
'type' => 'script',
'title' => 'Create new',
'icon' => 'add.gif',
2016-05-07 21:56:27 +02:00
'params' => [
2016-05-07 21:43:25 +02:00
'table' => 'tx_tea_domain_model_addition',
'pid' => '###CURRENT_PID###',
'setValue' => 'prepend'
2016-05-07 21:56:27 +02:00
],
2016-05-07 21:43:25 +02:00
'script' => 'wizard_add.php',
2016-05-07 21:56:27 +02:00
],
],
],
],
'testimonials' => [
2016-05-07 21:43:25 +02:00
'exclude' => 0,
'label' => 'LLL:EXT:tea/Resources/Private/Language/locallang_db.xlf:tx_tea_domain_model_teabeverage.testimonials',
2016-05-07 21:56:27 +02:00
'config' => [
2016-05-07 21:43:25 +02:00
'type' => 'inline',
'foreign_table' => 'tx_tea_domain_model_testimonial',
'foreign_field' => 'teabeverage',
'maxitems' => 9999,
2016-05-07 21:56:27 +02:00
'appearance' => [
2016-05-07 21:43:25 +02:00
'collapseAll' => 0,
'levelLinksPosition' => 'top',
'showSynchronizationLink' => 1,
'showPossibleLocalizationRecords' => 1,
'showAllLocalizationLink' => 1,
2016-05-07 21:56:27 +02:00
],
],
],
],
];