feat: lineup element on TYPO3 13

Restored from a46918d, TCA ported to TYPO3 13; markup matches TYPO3 10.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
frommeandClaude Opus 5.5 committed 2026-10-24 12:29:07 +02:00
1 parent a042eff41d
commit ad4089ae16
4 files changed
+357

No files matched your search

@@ -0,0 +1,52 @@
<?php
use TYPO3\CMS\Core\Utility\ExtensionManagementUtility;
defined('TYPO3') or die();
call_user_func(function() {
$frontendLanguageFilePrefix = 'LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:';
ExtensionManagementUtility::addTcaSelectItem(
'tt_content',
'CType',
[
'label' => 'Lineup',
'value' => 'lineup',
'icon' => 'content-image'
],
'gmap',
'after'
);
$GLOBALS['TCA']['tt_content']['columns']['tx_eptheme_lineup'] = [
'exclude' => 0,
'label' => 'LLL:EXT:ep_theme/Resources/Private/Language/locallang_db.xlf:tx_eptheme_domain_model_lineup.items',
'config' => [
'type' => 'inline',
'foreign_table' => 'tx_eptheme_domain_model_lineup',
'foreign_field' => 'tt_content',
'foreign_sortby' => 'sorting',
'maxitems' => 99,
'appearance' => [
'useSortable' => 1,
'collapseAll' => 1,
'levelLinksPosition' => 'top',
'showSynchronizationLink' => 0,
'showPossibleLocalizationRecords' => 0,
'showAllLocalizationLink' => 0
],
],
];
$GLOBALS['TCA']['tt_content']['types']['lineup'] = [
'showitem' => '
--palette--;' . $frontendLanguageFilePrefix . 'palette.general;general,
tx_eptheme_lineup,
--div--;' . $frontendLanguageFilePrefix . 'tabs.access,
hidden;' . $frontendLanguageFilePrefix . 'field.default.hidden,
--div--;' . $frontendLanguageFilePrefix . 'tabs.extended
',
];
});