Files
VITEC-website/packages/vitec/Configuration/TCA/Overrides/pages.php
o-rasche bb7c03235d Checkpoint: headless JSON architecture documented + cleanup (Stufe 1+2)
Restore point before Stufe 3 (central resolver-service refactoring).

Includes this session's work:
- Success Story (usecase) rebuild: new fields/tabs, UsecaseSerializer,
  thin List/Show renderers, MM relations, inline content elements.
- vitec_columns content block (two-column layout with per-item content)
  incl. unified header section; special-cased JSON resolution.
- Container per-column flex (items[].config align/justify) + gap on parent.
- Unified header section across CEs/plugins/containers; header fields in JSON.
- ISO-style architecture spec: Documentation/Headless-JSON-Architecture.md.
- Cleanup: removed local scratch + verified .bak backups.
- Fixes: B-6 (undefined thumbnail variable in Downloadcardcollection image
  resolver), B-7 (unsatisfiable legacy CType OR branch in Downloadcard/Datasheets).

Rollback: git reset --hard snapshot-2026-07-09-pre-stufe3

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-09 10:01:56 +02:00

42 lines
2.0 KiB
PHP

<?php
declare(strict_types=1);
defined('TYPO3') or die();
(static function (): void {
$l = 'LLL:EXT:vitec/Resources/Private/Language/locallang_pages.xlf:';
// Replace the default "Frontend Layout" dropdown on the page record
// (Page Properties → Appearance → Frontend Layout) with the VITEC layouts.
// Values are integer strings (DB column is INT).
$GLOBALS['TCA']['pages']['columns']['layout']['config']['items'] = [
['label' => $l . 'layout.0', 'value' => '0'],
['label' => $l . 'layout.1', 'value' => '1'],
['label' => $l . 'layout.2', 'value' => '2'],
['label' => $l . 'layout.3', 'value' => '3'],
['label' => $l . 'layout.4', 'value' => '4'],
['label' => $l . 'layout.5', 'value' => '5'],
['label' => $l . 'layout.6', 'value' => '6'],
['label' => $l . 'layout.7', 'value' => '7'],
['label' => $l . 'layout.8', 'value' => '8'],
['label' => $l . 'layout.9', 'value' => '9'],
['label' => $l . 'layout.10', 'value' => '10'],
['label' => $l . 'layout.11', 'value' => '11'],
['label' => $l . 'layout.12', 'value' => '12'],
['label' => $l . 'layout.13', 'value' => '13'],
['label' => $l . 'layout.14', 'value' => '14'],
['label' => $l . 'layout.15', 'value' => '15'],
['label' => $l . 'layout.16', 'value' => '16'],
['label' => $l . 'layout.17', 'value' => '17'],
['label' => $l . 'layout.18', 'value' => '18'],
['label' => $l . 'layout.19', 'value' => '19'],
['label' => $l . 'layout.20', 'value' => '20'],
];
$GLOBALS['TCA']['pages']['columns']['layout']['config']['default'] = '0';
// Hide the backend_layout / backend_layout_next_level fields from the editor —
// they are auto-synced from the frontend layout via SyncBackendLayoutHook.
$GLOBALS['TCA']['pages']['columns']['backend_layout']['displayCond'] = 'HIDE_FOR_NON_ADMINS';
$GLOBALS['TCA']['pages']['columns']['backend_layout_next_level']['displayCond'] = 'HIDE_FOR_NON_ADMINS';
})();