diff --git a/class/faq.php b/class/faq.php index 4993ae3..109e727 100644 --- a/class/faq.php +++ b/class/faq.php @@ -252,6 +252,7 @@ class Faq $AVE_Template->assign($faq); $AVE_Template->assign('questions', $questions); + $AVE_Template->assign('faq_id', (int)$id); } /** diff --git a/templates/show_faq.tpl b/templates/show_faq.tpl index e1328f8..1e3cf0e 100644 --- a/templates/show_faq.tpl +++ b/templates/show_faq.tpl @@ -1,15 +1,22 @@

{$faq_title}

{if $questions} -
+
{foreach from=$questions item=question name=faq}
-

-

-
+
{$question->faq_answer}
@@ -19,4 +26,4 @@
{else}
{#FAQ_NO_QUESTIONS#}
-{/if} +{/if} \ No newline at end of file