Skip to content

Commit

Permalink
Keep tt_content CType group
Browse files Browse the repository at this point in the history
It will only be shown if there is any entry.
This allows installations to add custom elements to that group, or use
their own.
  • Loading branch information
d-s-codappix committed Nov 26, 2024
1 parent 0eedec8 commit e3c306e
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
15 changes: 15 additions & 0 deletions Configuration/TCA/Overrides/tt_content.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?php

declare(strict_types=1);

use TYPO3\CMS\Core\Utility\ExtensionManagementUtility;
use WerkraumMedia\ThueCat\Extension;

ExtensionManagementUtility::addTcaSelectItemGroup(
'tt_content',
'CType',
Extension::TCA_SELECT_GROUP_IDENTIFIER,
Extension::getLanguagePath() . 'locallang_tca.xlf:tt_content.group',
'bottom',
);

4 changes: 4 additions & 0 deletions Resources/Private/Language/locallang_tca.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,10 @@
<source>Created</source>
</trans-unit>

<trans-unit id="tt_content.group" xml:space="preserve">
<source>ThüCAT</source>
</trans-unit>

<trans-unit id="pages.group" xml:space="preserve">
<source>ThüCAT</source>
</trans-unit>
Expand Down

0 comments on commit e3c306e

Please sign in to comment.