From 2f0a2a661244b4f762005c73a1ef10795c8055eb Mon Sep 17 00:00:00 2001 From: Andy <60820173+iamadlx@users.noreply.github.com> Date: Mon, 9 Feb 2026 21:54:06 +0100 Subject: [PATCH 1/2] Implement FAQ structured data in default.tpl Added JSON-LD structured data for FAQ rich snippets. --- views/templates/blocks/faq/default.tpl | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/views/templates/blocks/faq/default.tpl b/views/templates/blocks/faq/default.tpl index 717b5e04..182dd58c 100644 --- a/views/templates/blocks/faq/default.tpl +++ b/views/templates/blocks/faq/default.tpl @@ -19,6 +19,29 @@ {/foreach} + +{* FAQ Rich Snippet - JSON-LD Structured Data *} +{if $block.states|count > 0} + +{/if} From 82b5e1fdfcdd06829f0d0ae22d0df95ec688523a Mon Sep 17 00:00:00 2001 From: Andy <60820173+iamadlx@users.noreply.github.com> Date: Mon, 9 Feb 2026 22:34:28 +0100 Subject: [PATCH 2/2] Update FAQ template for JSON-LD structured data --- views/templates/blocks/faq/default.tpl | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/views/templates/blocks/faq/default.tpl b/views/templates/blocks/faq/default.tpl index 182dd58c..0eb37d6f 100644 --- a/views/templates/blocks/faq/default.tpl +++ b/views/templates/blocks/faq/default.tpl @@ -19,6 +19,9 @@ {/foreach} + + + {* FAQ Rich Snippet - JSON-LD Structured Data *} {if $block.states|count > 0} @@ -30,10 +33,10 @@ {foreach from=$block.states item='faq' name='faqloop'} {literal}{{/literal} "@type": "Question", - "name": "{$faq.question|strip_tags|escape:'htmlall':'UTF-8'}", + "name": "{$faq.question|strip_tags|trim|escape:'javascript'}", "acceptedAnswer": {literal}{{/literal} "@type": "Answer", - "text": "{$faq.answer|strip_tags|escape:'htmlall':'UTF-8'}" + "text": "{$faq.answer|strip_tags|trim|escape:'javascript'}" {literal}}{/literal} {literal}}{/literal}{if !$smarty.foreach.faqloop.last},{/if} @@ -42,9 +45,3 @@ {literal}}{/literal} {/if} - - - - - -