fix: don't show popup unless configured

This commit is contained in:
Björn Fromme
2024-12-17 11:15:08 +01:00
parent f3f1093699
commit 48e7ef8273
@@ -79,7 +79,7 @@
<f:section name="TeaserContent"> <f:section name="TeaserContent">
{f:variable(name: 'including', value: '{f:render(section: \'Including\', arguments: \'{_all}\') -> v:format.trim()}')} {f:variable(name: 'including', value: '{f:render(section: \'Including\', arguments: \'{_all}\') -> v:format.trim()}')}
<a href="{targetUrl}" <a href="{targetUrl}"
<f:if condition="{concept.popupText} && {globalConceptCode} != {concept.code}"> <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, targetUrl: targetUrl}', format: 'html', pageUid: settings.defaultAjaxUid)}"
hx-target="body" hx-target="body"
hx-swap="beforeend" hx-swap="beforeend"