Portal Web Template to render KB articles in FAQ format.
{% fetchxml KB_Query %} | |
<fetch version="1.0" mapping="logical"> | |
<entity name="knowledgearticle"> | |
<attribute name="knowledgearticleid" /> | |
<attribute name="title" /> | |
<attribute name="content" /> | |
<order attribute="title" descending="false" /> | |
<filter type="and"> | |
<condition attribute="isrootarticle" operator="eq" value="0" /> | |
</filter> | |
</entity> | |
</fetch> | |
{% endfetchxml %} | |
{% for item in KB_Query.results.entities %} | |
<h3>{{ item.title }}</h3> | |
<p>{{ item.content }}</p> | |
{% unless forloop.last %}{% endunless %} | |
{% endfor -%} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment