Files
VITEC-website/packages/vitec/Configuration/TCA/Overrides/pages.php
T
orascheandClaude Fable 5 3e2ebf3823 Solution group pages: layout 22 + Template-06 workbook import
- new frontend layout 22 "Solution Group Page" (provider LAYOUT_MAP,
  TCA layout item, locallang_pages.xlf; zones hero=colPos1, main=colPos0
  like layout 5 so the front end reuses its components)
- new pipeline Import\SolutionGroupPageImporter +
  vitec:import-solution-group-workbooks (inbox
  migrations/solutiongroups_xlsx_in/, gitignored): reads the agency
  "Template 06" group workbooks by column-A label scan, resolves the
  group via "Hero H1" -> is_group record -> detail_page (pages must
  exist), cursor-based slotNext() allows repeated CTypes per column
- element plan per page: markethero (+#capabilities CTA anchor) + hero
  intro paragraph; intro + supporting 50/50; challenges header + 4
  text_only cards; capabilities header + 4 alternating horizontal cards
  (bullets as <ul>); usecaselist shipped HIDDEN (an empty selection
  would list ALL stories - editors pick, then unhide); marketinsights;
  prefooter ctabanner. Page properties as on the sub-solution pages,
  8 curated keyword sets
- 56 numbered grey placeholders for pages 459-466 (7 slots per page)
- applied to all 8 group pages, live-verified on 459/465; the solutions
  branch is now content-complete (groups + 39 details)
- spec v1.24 (revision row, head/footer)

Found on the way: the "Engagament" typo lives in page 465's title AND
slug; the record is spelled correctly. Fix needs coordination with the
sub-solution workbook metas - own task, not done here.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-10-23 12:19:05 +02:00

44 lines
2.1 KiB
PHP
Executable File

<?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'],
['label' => $l . 'layout.21', 'value' => '21'],
['label' => $l . 'layout.22', 'value' => '22'],
];
$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';
})();