Skip to content

Instantly share code, notes, and snippets.


dhinag/FAQ Template

Last active Dec 16, 2018
What would you like to do?
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" />
{% 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