From 6f1ba21cd5edba58de9e28d1437bf4510b707235 Mon Sep 17 00:00:00 2001
From: Henning Leutz <leutz@pcsg.de>
Date: Tue, 10 Nov 2015 17:58:30 +0100
Subject: [PATCH] Issue #5

---
 bin/types/list.css | 7 +++++++
 types/list.html    | 6 +++++-
 2 files changed, 12 insertions(+), 1 deletion(-)
 create mode 100644 bin/types/list.css

diff --git a/bin/types/list.css b/bin/types/list.css
new file mode 100644
index 0000000..460f1e7
--- /dev/null
+++ b/bin/types/list.css
@@ -0,0 +1,7 @@
+.content-template-faq-list-category {
+    margin-bottom: 40px;
+}
+
+.content-template-faq-list-category .content-short {
+    margin-bottom: 10px;
+}
\ No newline at end of file
diff --git a/types/list.html b/types/list.html
index f3a8c26..3eca8a7 100644
--- a/types/list.html
+++ b/types/list.html
@@ -43,7 +43,11 @@
                 {assign var=position value=1}
                 {foreach $faqList as $Faq}
                 <li itemscope itemprop="itemListElement" itemtype="http://schema.org/ListItem">
-                    <a itemprop="url" href="{url site=$Category}#faq{$Faq->getId()}">
+                    {if $Faq->getAttribute('type') == 'quiqqer/faq:types/entry'}
+                        <a itemprop="url" href="{url site=$Category}#faq{$Faq->getId()}">
+                    {else}
+                        <a itemprop="url" href="{url site=$Faq}">
+                    {/if}
                         <span itemprop="name">{$Faq->getAttribute('title')}</span>
                         <meta itemprop="position" content="{$position}" />
                         {assign var=position value=$position+1}
-- 
GitLab