diff --git a/packages/vitec/Classes/UserFunc/ProductShowJsonRenderer.php b/packages/vitec/Classes/UserFunc/ProductShowJsonRenderer.php index 9eec805..6c20c58 100755 --- a/packages/vitec/Classes/UserFunc/ProductShowJsonRenderer.php +++ b/packages/vitec/Classes/UserFunc/ProductShowJsonRenderer.php @@ -255,12 +255,7 @@ class ProductShowJsonRenderer 'solutions' => $this->getProductSolutions($uid), // Detail-only like heroimage: resource cards are detail-page // furniture a list never shows. - 'resources' => array_merge( - $this->getProductResources($uid), - // Section layout (customer CR 2026-10-26): how the front end - // arranges the Technical Highlights / Resources band. - ['sectionLayout' => (string)(($product['resources_layout'] ?? '') ?: '50-50')] - ), + 'resources' => $this->resourcesBand($uid, (string)(($product['resources_layout'] ?? '') ?: '50-50')), ]; // schema.org JSON-LD (Product + optional VideoObject) as a ready-to-emit @@ -792,6 +787,25 @@ class ProductShowJsonRenderer * whose link is empty or unresolvable is dropped (decision 2026-09-24). * List envelope: `layout` switches to `carousel` above three cards. */ + /** + * The Technical Highlights / Resources band: resource cards plus the + * section layout (customer CR 2026-10-26) that tells the front end how to + * arrange the band. Layout `hardware` (2026-11-02) spreads the highlights + * over two columns WITHOUT resources - the cards are not emitted at all + * (same envelope, empty items), while the maintained records stay in the + * product for a switch back. + * + * @return array{layout:string,items:array>,sectionLayout:string} + */ + protected function resourcesBand(int $productUid, string $sectionLayout): array + { + $band = $sectionLayout === 'hardware' + ? ['layout' => 'grid', 'items' => []] + : $this->getProductResources($productUid); + $band['sectionLayout'] = $sectionLayout; + return $band; + } + protected function getProductResources(int $productUid): array { $queryBuilder = GeneralUtility::makeInstance(\TYPO3\CMS\Core\Database\ConnectionPool::class) diff --git a/packages/vitec/Configuration/TCA/tx_vitec_domain_model_product.php b/packages/vitec/Configuration/TCA/tx_vitec_domain_model_product.php index 74a8c03..37dd45f 100755 --- a/packages/vitec/Configuration/TCA/tx_vitec_domain_model_product.php +++ b/packages/vitec/Configuration/TCA/tx_vitec_domain_model_product.php @@ -471,7 +471,7 @@ return [ 'resources_layout' => [ 'exclude' => true, 'label' => 'Resources Section Layout', - 'description' => 'How the detail page arranges the Technical Highlights / Resources band. Layout 1 (default): Technical Highlights on the left, resource cards on the right (50/50). Layout 2: Technical Highlights spread over two columns, resource cards in the third (33/33/33).', + 'description' => 'How the detail page arranges the Technical Highlights / Resources band. Layout 1 (default): Technical Highlights on the left, resource cards on the right (50/50). Layout 2: Technical Highlights spread over two columns, resource cards in the third (33/33/33). Layout 3 - Hardware option: Technical Highlights spread over two columns, NO resource cards (maintained cards are kept but not shown).', 'config' => [ 'type' => 'select', 'renderType' => 'selectSingle', @@ -479,6 +479,8 @@ return [ 'items' => [ ['label' => 'Layout 1 - 50/50 (Technical Highlights left, Resources right)', 'value' => '50-50'], ['label' => 'Layout 2 - 33/33/33 (Technical Highlights in two columns, Resources in the third)', 'value' => '33-33-33'], + // customer request 2026-11-02: hardware products have no resource cards + ['label' => 'Layout 3 - Hardware option (Technical Highlights in two columns, no Resources)', 'value' => 'hardware'], ], ], ], diff --git a/packages/vitec/Documentation/Headless-JSON-Architecture.md b/packages/vitec/Documentation/Headless-JSON-Architecture.md index 0dad53c..cb031a3 100755 --- a/packages/vitec/Documentation/Headless-JSON-Architecture.md +++ b/packages/vitec/Documentation/Headless-JSON-Architecture.md @@ -39,6 +39,7 @@ | 1.24 | 2026‑10‑23 | **Interface change (additive).** New frontend layout **22 Solution Group Page** for the eight solution group hero pages (zones hero = `colPos1`, main = `colPos0`). Element order: `vitec_markethero` + `vitec_introparagraph` in the hero zone; `vitec_marketintro` 2, `vitec_introparagraph` + 4 `text_only` cards (challenges), `vitec_introparagraph` + 4 alternating `horizontal`/`horizontal_reverse` cards (capabilities, bullets as `