Problems, need help? Have a tip or advice? Post it here.
3 posts Page 1 of 1
Is there a way to link to specific categories for the blog part?

Like underneath the title where your categories are generated. In the tutorial is a link, but it doesn't say how to get there.

What is the code/link to only show a certain category. If you click under the category under the title of the post?
In a page-view (or from within 'pages' tag) k_page_folderlink is the variable that contains the link to the page's folder.

In the tutorial, you can change the following lines in blog.php -
<cms:if k_page_foldertitle >
<cms:set my_category=k_page_foldertitle />
<cms:else />
<cms:set my_category='Uncategorised' />
</cms:if>
<p class="sub"><a href="#"><cms:show my_category /></a>

to
<cms:if k_page_foldertitle >
<cms:set my_category=k_page_foldertitle />
<cms:set my_category_link=k_page_folderlink />
<cms:else />
<cms:set my_category='Uncategorised' />
<cms:set my_category_link='#' />
</cms:if>
<p class="sub"><a href="<cms:show my_category_link />"><cms:show my_category /></a>

This link actually leads to the 'folder-view', which is a sub-set of the 'list-view'.
In the tutorial, the blog_list.html already handles the list-view so no changes required to show the folder-view.

Hope this helps.
Worked like a charm. Fantastic!
3 posts Page 1 of 1