diff --git a/bin/types/list.css b/bin/types/list.css new file mode 100644 index 0000000000000000000000000000000000000000..460f1e7a7b95e92d013681cb925415576728c959 --- /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 f3a8c2675b53060d90284fc43bcf52eae73adca1..3eca8a7b5ccee30717ef49029642b2fc023fba65 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}