mirror of https://github.com/FriendsOfTYPO3/tea.git synced 2024-11-25 22:36:12 +01:00
tea/ext_tables.php

135 lines
6 KiB
PHP
Raw Normal View History

<?php
2014-12-14 15:26:17 +01:00
defined('TYPO3_MODE') or die('Access denied.');
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin(
2016-05-07 21:43:25 +02:00
'OliverKlee.' . $_EXTKEY,
'Tea',
'Tea'
);
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile($_EXTKEY, 'Configuration/TypoScript', 'Tea example');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('tx_tea_domain_model_teabeverage', 'EXT:tea/Resources/Private/Language/locallang_csh_tx_tea_domain_model_teabeverage.xlf');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::allowTableOnStandardPages('tx_tea_domain_model_teabeverage');
2016-05-07 21:56:27 +02:00
$GLOBALS['TCA']['tx_tea_domain_model_teabeverage'] = [
'ctrl' => [
2016-05-07 21:43:25 +02:00
'title' => 'LLL:EXT:tea/Resources/Private/Language/locallang_db.xlf:tx_tea_domain_model_teabeverage',
'label' => 'size',
'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',
2016-05-07 21:56:27 +02:00
'enablecolumns' => [
2016-05-07 21:43:25 +02:00
'disabled' => 'hidden',
'starttime' => 'starttime',
'endtime' => 'endtime',
2016-05-07 21:56:27 +02:00
],
2016-05-07 21:43:25 +02:00
'searchFields' => 'size,type,additions,testimonials,',
'dynamicConfigFile' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY) . 'Configuration/TCA/TeaBeverage.php',
2017-04-24 17:46:48 +02:00
'iconfile' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath($_EXTKEY) . 'Resources/Public/Icons/tx_tea_domain_model_teabeverage.gif',
2016-05-07 21:56:27 +02:00
],
];
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('tx_tea_domain_model_teatype', 'EXT:tea/Resources/Private/Language/locallang_csh_tx_tea_domain_model_teatype.xlf');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::allowTableOnStandardPages('tx_tea_domain_model_teatype');
2016-05-07 21:56:27 +02:00
$GLOBALS['TCA']['tx_tea_domain_model_teatype'] = [
'ctrl' => [
2016-05-07 21:43:25 +02:00
'title' => 'LLL:EXT:tea/Resources/Private/Language/locallang_db.xlf:tx_tea_domain_model_teatype',
'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',
2016-05-07 21:56:27 +02:00
'enablecolumns' => [
2016-05-07 21:43:25 +02:00
'disabled' => 'hidden',
'starttime' => 'starttime',
'endtime' => 'endtime',
2016-05-07 21:56:27 +02:00
],
2016-05-07 21:43:25 +02:00
'searchFields' => 'title,caffeinated,',
'dynamicConfigFile' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY) . 'Configuration/TCA/TeaType.php',
2017-04-24 17:46:48 +02:00
'iconfile' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath($_EXTKEY) . 'Resources/Public/Icons/tx_tea_domain_model_teatype.gif',
2016-05-07 21:56:27 +02:00
],
];
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('tx_tea_domain_model_addition', 'EXT:tea/Resources/Private/Language/locallang_csh_tx_tea_domain_model_addition.xlf');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::allowTableOnStandardPages('tx_tea_domain_model_addition');
2016-05-07 21:56:27 +02:00
$GLOBALS['TCA']['tx_tea_domain_model_addition'] = [
'ctrl' => [
2016-05-07 21:43:25 +02:00
'title' => 'LLL:EXT:tea/Resources/Private/Language/locallang_db.xlf:tx_tea_domain_model_addition',
'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',
2016-05-07 21:56:27 +02:00
'enablecolumns' => [
2016-05-07 21:43:25 +02:00
'disabled' => 'hidden',
'starttime' => 'starttime',
'endtime' => 'endtime',
2016-05-07 21:56:27 +02:00
],
2016-05-07 21:43:25 +02:00
'searchFields' => 'title,',
'dynamicConfigFile' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY) . 'Configuration/TCA/Addition.php',
2017-04-24 17:46:48 +02:00
'iconfile' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath($_EXTKEY) . 'Resources/Public/Icons/tx_tea_domain_model_addition.gif',
2016-05-07 21:56:27 +02:00
],
];
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('tx_tea_domain_model_testimonial', 'EXT:tea/Resources/Private/Language/locallang_csh_tx_tea_domain_model_testimonial.xlf');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::allowTableOnStandardPages('tx_tea_domain_model_testimonial');
2016-05-07 21:56:27 +02:00
$GLOBALS['TCA']['tx_tea_domain_model_testimonial'] = [
'ctrl' => [
2016-05-07 21:43:25 +02:00
'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',
2016-05-07 21:56:27 +02:00
'enablecolumns' => [
2016-05-07 21:43:25 +02:00
'disabled' => 'hidden',
'starttime' => 'starttime',
'endtime' => 'endtime',
2016-05-07 21:56:27 +02:00
],
2016-05-07 21:43:25 +02:00
'searchFields' => 'date_of_posting,number_of_consumed_cups,text,',
'dynamicConfigFile' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY) . 'Configuration/TCA/Testimonial.php',
2017-04-24 17:46:48 +02:00
'iconfile' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath($_EXTKEY) . 'Resources/Public/Icons/tx_tea_domain_model_testimonial.gif',
2016-05-07 21:56:27 +02:00
],
];