Author: Webvanta
One of the primary pages of the Knowledgebase system. Summarizes all the information in the database that is assigned to a specific category, or any of its subcategories.
This design provides the following elements:
<div class='kb'>
<w:kb:category>
<!-- Breadcrumbs -->
<div class='crumbs'>
<w:each relative='reversed-parents'>
<a href='<w:path />'><w:name /></a> >
</w:each>
</div>
<!-- Category name and description -->
<div style='float:right'><w:snippet name='addthis' /></div>
<h1><w:name /></h1>
<div class='category_description'>
<w:description />
</div>
<!-- Internal articles -->
<w:if_items category="current" type='articles'>
<div class='category_articles'>
<h2>Our Articles About <w:name /></h2>
<w:kb:item>
<w:kb:edit>
<w:each by='date' type='articles' category='current' >
<w:snippet name='kb_article_listing_short' />
</w:each>
</w:kb:edit>
</w:kb:item>
</div>
</w:if_items>
<!-- Resources -->
<w:if_items type='-articles,-posts' category='current'>
<div class='category_resources'>
<h2>Resources</h2>
<w:kb:resourcetype:each type='-articles,-posts'>
<w:if_items type='current' category='current'>
<h3><a href="<w:path category='current' />"><w:name /></a></h3>
<w:kb:item:each category='current' type='current'>
<w:kb:if_item type='Books' >
<w:snippet name='kb_book_listing_short' />
</w:kb:if_item>
<w:kb:if_item type='Events'>
<w:snippet name='kb_event_listing_short' />
</w:kb:if_item>
<w:kb:if_item type='-Books, -Events, -Articles'>
<w:snippet name='kb_default_listing_short' />
</w:kb:if_item>
</w:kb:item:each>
</w:if_items>
</w:kb:resourcetype:each>
</div>
</w:if_items>
</w:kb:category>
</div>