mirror of https://github.com/FriendsOfTYPO3/tea.git synced 2024-11-23 01:36:13 +01:00
tea/Configuration/TCA/tx_tea_domain_model_testimonial.php

157 lines
5.5 KiB
PHP
Raw Normal View History

<?php
2017-12-09 17:55:12 +01:00
defined('TYPO3_MODE') or die();
2016-05-07 21:56:27 +02:00
$GLOBALS['TCA']['tx_tea_domain_model_testimonial'] = [
2017-12-09 17:55:12 +01:00
'ctrl' => [
'title' => 'LLL:EXT:tea/Resources/Private/Language/locallang_db.xlf:tx_tea_domain_model_testimonial',
'label' => 'date_of_posting',
'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',
],
'searchFields' => 'date_of_posting,number_of_consumed_cups,text,',
'iconfile' => 'EXT:tea/Resources/Public/Icons/tx_tea_domain_model_testimonial.gif',
],
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, date_of_posting, number_of_consumed_cups, text',
2016-05-07 21:56:27 +02:00
],
'types' => [
'1' => ['showitem' => 'sys_language_uid, l10n_parent, l10n_diffsource, hidden, date_of_posting, number_of_consumed_cups, text, --div--;LLL:EXT:cms/locallang_ttc.xlf:tabs.access, starttime, endtime'],
2016-05-07 21:56:27 +02:00
],
'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',
'renderType' => 'selectSingle',
2016-05-07 21:43:25 +02:00
'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',
'renderType' => 'selectSingle',
2016-05-07 21:56:27 +02:00
'items' => [
['', 0],
],
2016-05-07 21:43:25 +02:00
'foreign_table' => 'tx_tea_domain_model_testimonial',
'foreign_table_where' => 'AND tx_tea_domain_model_testimonial.pid=###CURRENT_PID### AND tx_tea_domain_model_testimonial.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,
2017-04-24 17:46:48 +02:00
],
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
],
],
],
'date_of_posting' => [
2016-05-07 21:43:25 +02:00
'exclude' => 0,
'label' => 'LLL:EXT:tea/Resources/Private/Language/locallang_db.xlf:tx_tea_domain_model_testimonial.date_of_posting',
2016-05-07 21:56:27 +02:00
'config' => [
2016-05-07 21:43:25 +02:00
'type' => 'input',
'size' => 12,
'eval' => 'datetime',
2017-12-09 17:59:26 +01:00
'checkbox' => '0',
'default' => '0',
2016-05-07 21:56:27 +02:00
],
],
'number_of_consumed_cups' => [
2016-05-07 21:43:25 +02:00
'exclude' => 0,
'label' => 'LLL:EXT:tea/Resources/Private/Language/locallang_db.xlf:tx_tea_domain_model_testimonial.number_of_consumed_cups',
2016-05-07 21:56:27 +02:00
'config' => [
2016-05-07 21:43:25 +02:00
'type' => 'input',
'size' => 4,
'eval' => 'int',
2016-05-07 21:56:27 +02:00
],
],
'text' => [
2016-05-07 21:43:25 +02:00
'exclude' => 0,
'label' => 'LLL:EXT:tea/Resources/Private/Language/locallang_db.xlf:tx_tea_domain_model_testimonial.text',
2016-05-07 21:56:27 +02:00
'config' => [
2016-05-07 21:43:25 +02:00
'type' => 'text',
'cols' => 40,
'rows' => 15,
'eval' => 'trim',
2016-05-07 21:56:27 +02:00
],
],
'teabeverage' => [
'config' => [
2016-05-07 21:43:25 +02:00
'type' => 'passthrough',
2016-05-07 21:56:27 +02:00
],
],
],
];