mirror of
https://github.com/FriendsOfTYPO3/tea.git
synced 2024-11-21 22:56:12 +01:00
parent
18588bf502
commit
fbb6367abb
3 changed files with 70 additions and 1 deletions
|
@ -10,9 +10,23 @@ $tca = [
|
|||
'default_sortby' => 'title',
|
||||
'iconfile' => 'EXT:tea/Resources/Public/Icons/Record.svg',
|
||||
'searchFields' => 'title, description',
|
||||
'enablecolumns' => [
|
||||
'fe_group' => 'fe_group',
|
||||
],
|
||||
],
|
||||
'types' => [
|
||||
'1' => ['showitem' => 'title, description, image'],
|
||||
'1' => ['showitem' => '
|
||||
--div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:general,
|
||||
title, description, image,
|
||||
--div--;LLL:EXT:tea/Resources/Private/Language/locallang_db.xlf:tx_tea_domain_model_product_tea.tabs.access,
|
||||
--palette--;;access,
|
||||
'],
|
||||
],
|
||||
'palettes' => [
|
||||
'access' => [
|
||||
'label' => 'LLL:EXT:tea/Resources/Private/Language/locallang_db.xlf:tx_tea_domain_model_product_tea.palettes.access',
|
||||
'showitem' => 'fe_group',
|
||||
],
|
||||
],
|
||||
'columns' => [
|
||||
'title' => [
|
||||
|
@ -51,6 +65,33 @@ $tca = [
|
|||
'allowed' => 'common-image-types',
|
||||
],
|
||||
],
|
||||
'fe_group' => [
|
||||
'exclude' => true,
|
||||
'l10n_mode' => 'exclude',
|
||||
'label' => 'LLL:EXT:tea/Resources/Private/Language/locallang_db.xlf:tx_tea_domain_model_product_tea.fe_group',
|
||||
'config' => [
|
||||
'type' => 'select',
|
||||
'renderType' => 'selectMultipleSideBySide',
|
||||
'size' => 7,
|
||||
'maxitems' => 20,
|
||||
'items' => [
|
||||
[
|
||||
'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.hide_at_login',
|
||||
'value' => -1,
|
||||
],
|
||||
[
|
||||
'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.any_login',
|
||||
'value' => -2,
|
||||
],
|
||||
[
|
||||
'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.usergroups',
|
||||
'value' => '--div--',
|
||||
],
|
||||
],
|
||||
'exclusiveKeys' => '-1,-2',
|
||||
'foreign_table' => 'fe_groups',
|
||||
],
|
||||
],
|
||||
],
|
||||
];
|
||||
$typo3Version = new \TYPO3\CMS\Core\Information\Typo3Version();
|
||||
|
@ -87,6 +128,20 @@ if ($typo3Version->getMajorVersion() < 12) {
|
|||
]
|
||||
),
|
||||
];
|
||||
$tca['columns']['fe_group']['config']['items'] = [
|
||||
[
|
||||
0 => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.hide_at_login',
|
||||
1 => -1,
|
||||
],
|
||||
[
|
||||
0 => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.any_login',
|
||||
1 => -2,
|
||||
],
|
||||
[
|
||||
0 => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.usergroups',
|
||||
1 => '--div--',
|
||||
],
|
||||
];
|
||||
}
|
||||
|
||||
return $tca;
|
||||
|
|
|
@ -7,6 +7,10 @@
|
|||
<source>Tea</source>
|
||||
<target>Tee</target>
|
||||
</trans-unit>
|
||||
<trans-unit id="tx_tea_domain_model_product_tea.tabs.access">
|
||||
<source>Access</source>
|
||||
<target>Zugriff</target>
|
||||
</trans-unit>
|
||||
<trans-unit id="tx_tea_domain_model_product_tea.title">
|
||||
<source>Title</source>
|
||||
<target>Titel</target>
|
||||
|
@ -19,6 +23,10 @@
|
|||
<source>Image</source>
|
||||
<target>Bild</target>
|
||||
</trans-unit>
|
||||
<trans-unit id="tx_tea_domain_model_product_tea.fe_group">
|
||||
<source>Usergroup Access Rights</source>
|
||||
<target>Zugriffsrechte für Benutzergruppen</target>
|
||||
</trans-unit>
|
||||
</body>
|
||||
</file>
|
||||
</xliff>
|
||||
|
|
|
@ -6,6 +6,9 @@
|
|||
<trans-unit id="tx_tea_domain_model_product_tea">
|
||||
<source>Tea</source>
|
||||
</trans-unit>
|
||||
<trans-unit id="tx_tea_domain_model_product_tea.tabs.access">
|
||||
<source>Access</source>
|
||||
</trans-unit>
|
||||
<trans-unit id="tx_tea_domain_model_product_tea.title">
|
||||
<source>Title</source>
|
||||
</trans-unit>
|
||||
|
@ -15,6 +18,9 @@
|
|||
<trans-unit id="tx_tea_domain_model_product_tea.image">
|
||||
<source>Image</source>
|
||||
</trans-unit>
|
||||
<trans-unit id="tx_tea_domain_model_product_tea.fe_group">
|
||||
<source>Usergroup Access Rights</source>
|
||||
</trans-unit>
|
||||
</body>
|
||||
</file>
|
||||
</xliff>
|
||||
|
|
Loading…
Reference in a new issue