feat: products can have their own text in the subsite popup
The popup that announces the switch to another site (e.g. from a teaser on ep-reisen.de to semesterende-skireisen.de) showed the text of the product's concept for every product. A product now has an optional popup text (new "Popup" tab) that replaces the concept's; empty, the concept's text stays. Title, image and button remain the concept's, and whether a popup appears at all is still up to the concept. Teasers pass the product to the popup request. Pages cached before the deploy request it without one and get the concept's text, as before. The new column tx_epproducts_domain_model_product.popup_text is the only pending schema change; the deploy's extension:setup adds it. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
1 parent
170e14dae5
commit
903292d84c
6 files changed
+42
-4
No files matched your search
@@ -71,7 +71,7 @@
|
||||
<div class="flex-1 flex flex-col space-y-1 px-2 py-4 md:p-4">
|
||||
<a href="{targetUrl}" class="peer"
|
||||
<f:if condition="{concept.popupText} && {settings.globalConceptCode} != {concept.code}">
|
||||
hx-get="{ep:uri.ajax(action: 'concept', controller: 'AjaxTeaserPopup', arguments: '{concept: concept.uid, targetUrl: targetUrl}', format: 'html', pageUid: settings.defaultAjaxUid)}"
|
||||
hx-get="{ep:uri.ajax(action: 'concept', controller: 'AjaxTeaserPopup', arguments: '{concept: concept.uid, product: product.uid, targetUrl: targetUrl}', format: 'html', pageUid: settings.defaultAjaxUid)}"
|
||||
hx-target="body"
|
||||
hx-swap="beforeend"
|
||||
</f:if>
|
||||
|
||||
@@ -28,7 +28,7 @@
|
||||
<h3>
|
||||
{concept.name}
|
||||
</h3>
|
||||
{concept.popupText -> f:format.html()}
|
||||
{popupText -> f:format.html()}
|
||||
<a href="{targetUrl}" target="_blank" class="button bg-button">
|
||||
{concept.popupButtonLabel}
|
||||
</a>
|
||||
|
||||
Reference in new issue
Block a user