diff --git a/CHANGELOG.md b/CHANGELOG.md
index 25794336..382f009f 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -6,6 +6,7 @@ This project adheres to [Semantic Versioning](https://semver.org/).
## x.y.z
### Added
+- Make records timeable and hideable (#989)
- Add support for PHP 8.3 (#965)
- Add an FE editor (#864, #872, #874, #876)
- Add automerging of green Dependabot PRs (#756)
diff --git a/Configuration/TCA/tx_tea_domain_model_product_tea.php b/Configuration/TCA/tx_tea_domain_model_product_tea.php
index 49b4ac2a..781270e5 100644
--- a/Configuration/TCA/tx_tea_domain_model_product_tea.php
+++ b/Configuration/TCA/tx_tea_domain_model_product_tea.php
@@ -12,6 +12,9 @@
'searchFields' => 'title, description',
'enablecolumns' => [
'fe_group' => 'fe_group',
+ 'disabled' => 'hidden',
+ 'starttime' => 'starttime',
+ 'endtime' => 'endtime',
],
'transOrigPointerField' => 'l18n_parent',
'transOrigDiffSourceField' => 'l18n_diffsource',
@@ -24,16 +27,67 @@
'--div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:general,
title, description, image, owner,
--div--;LLL:EXT:tea/Resources/Private/Language/locallang_db.xlf:tx_tea_domain_model_product_tea.tabs.access,
+ --palette--;;hidden,
--palette--;;access,',
],
],
'palettes' => [
+ 'hidden' => [
+ 'showitem' => '
+ hidden;LLL:EXT:tea/Resources/Private/Language/locallang_db.xlf:tx_tea_domain_model_product_tea.hidden
+ ',
+ ],
'access' => [
'label' => 'LLL:EXT:tea/Resources/Private/Language/locallang_db.xlf:tx_tea_domain_model_product_tea.palettes.access',
- 'showitem' => 'fe_group',
+ 'showitem' => '
+ starttime;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:starttime_formlabel,
+ endtime;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:endtime_formlabel,
+ --linebreak--,
+ fe_group;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:fe_group_formlabel,
+ ',
],
],
'columns' => [
+ 'hidden' => [
+ 'exclude' => true,
+ 'label' => 'LLL:EXT:tea/Resources/Private/Language/locallang_db.xlf:tx_tea_domain_model_product_tea.hidden',
+ 'config' => [
+ 'type' => 'check',
+ 'renderType' => 'checkboxToggle',
+ 'items' => [
+ [
+ 'label' => '',
+ 'invertStateDisplay' => true,
+ ],
+ ],
+ ],
+ ],
+ 'starttime' => [
+ 'exclude' => true,
+ 'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.starttime',
+ 'config' => [
+ 'type' => 'datetime',
+ 'default' => 0,
+ 'range' => [
+ 'upper' => mktime(0, 0, 0, 1, 1, 2038),
+ ],
+ ],
+ 'l10n_mode' => 'exclude',
+ 'l10n_display' => 'defaultAsReadonly',
+ ],
+ 'endtime' => [
+ 'exclude' => true,
+ 'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.endtime',
+ 'config' => [
+ 'type' => 'datetime',
+ 'default' => 0,
+ 'range' => [
+ 'upper' => mktime(0, 0, 0, 1, 1, 2038),
+ ],
+ ],
+ 'l10n_mode' => 'exclude',
+ 'l10n_display' => 'defaultAsReadonly',
+ ],
'sys_language_uid' => [
'exclude' => true,
'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.language',
@@ -192,6 +246,28 @@
]
),
];
+ $tca['columns']['hidden']['config'] = [
+ 'type' => 'check',
+ 'label' => 'LLL:EXT:tea/Resources/Private/Language/locallang_db.xlf:tx_tea_domain_model_product_tea.hidden',
+ 'items' => [
+ [
+ 0 => '',
+ 'invertStateDisplay' => true,
+ ],
+ ],
+ ];
+ $tca['columns']['starttime']['config'] = [
+ 'type' => 'input',
+ 'renderType' => 'inputDateTime',
+ 'eval' => 'datetime,int',
+ 'default' => 0,
+ ];
+ $tca['columns']['endtime']['config'] = [
+ 'type' => 'input',
+ 'renderType' => 'inputDateTime',
+ 'eval' => 'datetime,int',
+ 'default' => 0,
+ ];
$tca['columns']['fe_group']['config']['items'] = [
[
0 => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.hide_at_login',
diff --git a/Resources/Private/Language/de.locallang_db.xlf b/Resources/Private/Language/de.locallang_db.xlf
index 0750c98e..939220c9 100644
--- a/Resources/Private/Language/de.locallang_db.xlf
+++ b/Resources/Private/Language/de.locallang_db.xlf
@@ -31,6 +31,10 @@
Zugriffsrechte für Benutzergruppen
+
+
+ Sichtbar
+