the customer workflow in mind: the customer fills one XLSX per sub-market, an importer builds the page). - Frontend layout 21 'Sub-Market Page' in the existing BackendLayoutDataProvider: six zones, one per Figma section, emitted as colPos110..colPos160 - the JSON groups plus appearance.layout are the front-end contract (spec clause 7.17). A first attempt via page-TSconfig BackendLayouts was the wrong mechanism next to the provider and was removed again - New Content Blocks vitec_markethero, vitec_marketintro, vitec_marketinsights (field bags, serialized unprefixed under data); the workflow section reuses intro-paragraph + vitec_card flip cards - Stories gained quote/quote_person/quote_role (Testimonial tab), maintained once per story, emitted on every story card; usecaselist gained the layout value 'testimonials' - New plugin vitec_productfeature: one referenced product as a full product card, serialisation shared with the product list (cObj made protected for the subclass) - vitec_productlist gained hand-picked product selection: exactly the chosen products in the editor's order, category filter ignored, visibility filters kept - closes the long-standing single-select gap - New CLI vitec:generate-submarket-workbooks: one protected customer XLSX per sub-market (9 main markets, 25 sub-markets from the Market category tree) - dropdowns filled live from the database, named ranges as the importer contract, hidden Meta sheet pinning submarket/group/ record uid, soft character-limit warnings, asset URL fields Verified end to end on Broadcast & Media: layout-21 payload with colPos110 carrying the hero element and its subline. Spec raised to v1.20.
43 lines
2.1 KiB
PHP
Executable File
43 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'],
|
|
];
|
|
$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';
|
|
})();
|