Backend of the sub-market template (spec agreed section by section with
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.
This commit is contained in:
1 parent
f0b0694842
commit
90ae6803a4
31 files changed
+493
-7
No files matched your search
@@ -0,0 +1,27 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
Featured product card - sub-market template section 5.
|
||||
One product reference, all copy comes from the record.
|
||||
-->
|
||||
<T3DataStructure>
|
||||
<sheets>
|
||||
<sDEF>
|
||||
<ROOT>
|
||||
<sheetTitle>Featured Product</sheetTitle>
|
||||
<type>array</type>
|
||||
<el>
|
||||
<settings.product>
|
||||
<label>Product</label>
|
||||
<description>The product shown as the big featured card. Image, title and teaser come from the record.</description>
|
||||
<config>
|
||||
<type>group</type>
|
||||
<allowed>tx_vitec_domain_model_product</allowed>
|
||||
<size>1</size>
|
||||
<maxitems>1</maxitems>
|
||||
</config>
|
||||
</settings.product>
|
||||
</el>
|
||||
</ROOT>
|
||||
</sDEF>
|
||||
</sheets>
|
||||
</T3DataStructure>
|
||||
@@ -30,6 +30,16 @@
|
||||
</items>
|
||||
</config>
|
||||
</settings.debug>
|
||||
<settings.selectedproducts>
|
||||
<label>Hand-picked products</label>
|
||||
<description>When set, the list shows EXACTLY these products in this order - the category selection below is ignored. Hidden/legacy products stay suppressed. Used e.g. by the sub-market template's Products section.</description>
|
||||
<config>
|
||||
<type>group</type>
|
||||
<allowed>tx_vitec_domain_model_product</allowed>
|
||||
<size>6</size>
|
||||
<maxitems>50</maxitems>
|
||||
</config>
|
||||
</settings.selectedproducts>
|
||||
<settings.categories>
|
||||
<label>Select Category</label>
|
||||
<description>
|
||||
|
||||
@@ -29,6 +29,10 @@
|
||||
<label>50 / 50</label>
|
||||
<value>50-50</value>
|
||||
</numIndex>
|
||||
<numIndex index="4">
|
||||
<label>Testimonials (quote carousel, sub-market template)</label>
|
||||
<value>testimonials</value>
|
||||
</numIndex>
|
||||
</items>
|
||||
<default>grid</default>
|
||||
</config>
|
||||
|
||||
@@ -67,6 +67,21 @@ tt_content {
|
||||
}
|
||||
}
|
||||
|
||||
# Featured product card (sub-market template section 5): one referenced
|
||||
# product as a full product card under `productfeature` - same shape as
|
||||
# the list items, serialization shared with ProductListJsonRenderer.
|
||||
vitec_productfeature < lib.contentElementWithHeader
|
||||
vitec_productfeature {
|
||||
fields {
|
||||
content {
|
||||
fields {
|
||||
productfeature = USER
|
||||
productfeature.userFunc = Evomedien\Vitec\UserFunc\ProductFeatureJsonRenderer->render
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
# Product Finder - only the category hierarchy for the filter selects.
|
||||
# Placed once above the product lists; the front end filters the products
|
||||
# those lists already delivered, client side, via ?cat= and ?subcat=.
|
||||
|
||||
@@ -31,6 +31,7 @@ defined('TYPO3') or die();
|
||||
['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';
|
||||
|
||||
|
||||
@@ -26,6 +26,7 @@ use TYPO3\CMS\Extbase\Utility\ExtensionUtility;
|
||||
|
||||
$registerPluginWithFlexForm('Productlist', 'Show Products by Category', 'FILE:EXT:vitec/Configuration/FlexForms/Productlist.xml', 'vitec-plugin-productlist');
|
||||
$registerPluginWithFlexForm('Productfinder', 'Product Finder (filter data)', 'FILE:EXT:vitec/Configuration/FlexForms/Productfinder.xml', 'vitec-plugin-productlist');
|
||||
$registerPluginWithFlexForm('Productfeature', 'Featured Product Card', 'FILE:EXT:vitec/Configuration/FlexForms/Productfeature.xml', 'vitec-plugin-productlist');
|
||||
$registerPluginWithFlexForm('Simplecard', 'Simple Card', 'FILE:EXT:vitec/Configuration/FlexForms/Simplecard.xml', 'vitec-plugin-simplecard');
|
||||
$registerPluginWithFlexForm('Productshow', 'Show Single Product', 'FILE:EXT:vitec/Configuration/FlexForms/Productshow.xml', 'vitec-plugin-productshow');
|
||||
$registerPluginWithFlexForm('Usecaseshow', 'Single Success Story', 'FILE:EXT:vitec/Configuration/FlexForms/Usecase.xml', 'vitec-plugin-usecaseshow');
|
||||
|
||||
@@ -29,6 +29,8 @@ return [
|
||||
title, slug, detail_page, subtitle,
|
||||
--div--;List view,
|
||||
card_image, customer_logo, teaser,
|
||||
--div--;Testimonial,
|
||||
quote, quote_person, quote_role,
|
||||
--div--;Detail · Hero,
|
||||
hero_bgimage, hero_small_image, hero_video, hero_overlay_color, hero_overlay_opacity,
|
||||
--div--;Detail · Content,
|
||||
@@ -153,6 +155,26 @@ return [
|
||||
'config' => ['type' => 'text', 'cols' => 40, 'rows' => 4, 'eval' => 'trim'],
|
||||
],
|
||||
|
||||
// ------------------------------------------------------- Testimonial
|
||||
// One quote per story, maintained editorially and reused wherever the
|
||||
// story appears as a testimonial card (first consumer: the sub-market
|
||||
// template, decision Olli 2026-10-01 - the customer's XLS only picks
|
||||
// the story, never carries quote text).
|
||||
'quote' => [
|
||||
'label' => 'Quote',
|
||||
'description' => 'Shown on testimonial cards wherever this story is referenced. Plain text, no quotation marks - the front end adds them.',
|
||||
'config' => ['type' => 'text', 'cols' => 40, 'rows' => 4, 'eval' => 'trim'],
|
||||
],
|
||||
'quote_person' => [
|
||||
'label' => 'Quote: person',
|
||||
'config' => ['type' => 'input', 'size' => 30, 'max' => 255, 'eval' => 'trim'],
|
||||
],
|
||||
'quote_role' => [
|
||||
'label' => 'Quote: role / title',
|
||||
'description' => 'E.g. "Vice President of Technology, KCR" - shown below the name.',
|
||||
'config' => ['type' => 'input', 'size' => 30, 'max' => 255, 'eval' => 'trim'],
|
||||
],
|
||||
|
||||
// ------------------------------------------------------ Detail · Hero
|
||||
'hero_bgimage' => [
|
||||
'label' => 'Background Image',
|
||||
|
||||
@@ -16,6 +16,14 @@ mod {
|
||||
CType = vitec_productlist
|
||||
}
|
||||
}
|
||||
productfeature {
|
||||
iconIdentifier = vitec-plugin-productlist
|
||||
title = Featured Product Card
|
||||
description = One product as the big featured card (sub-market template). All copy comes from the record.
|
||||
tt_content_defValues {
|
||||
CType = vitec_productfeature
|
||||
}
|
||||
}
|
||||
productfinder {
|
||||
iconIdentifier = vitec-plugin-productlist
|
||||
title = Product Finder (filter data)
|
||||
|
||||
Reference in new issue
Block a user