Problems, need help? Have a tip or advice? Post it here.
2 posts Page 1 of 1
I recently followed the tutorial on the couchcms, but I seem to be stucked on the categories in the sidebar.

The coding I currently have is:
Code: Select all
<cms:set current_folder_name = k_folder_name />
<ul>
<cms:folders masterpage='blog.php' orderby='title' >
    <li class="<cms:if current_folder_name=k_folder_name>active</cms:if>"><a href="<cms:show k_folder_link />">
    <span> <cms:show k_folder_title /></span></a></li>
</cms:folders>
</ul>


It does display all my different category folders, but when I click on one of those folders I'm getting the following text:

Back Uncategorised >>
18th Jul, 15


comments


Instead of displaying the posts in that folder category. All my posts are connected with categories, so I don't know what I am doing wrong?
Hi,

From what you posted, it appears that it is the page-view (instead of the list-view/folder-view) that is being invoked.
Code: Select all
<cms:if k_is_page>
    .. is invoking this ..
<cms:else />
    .. should invoke this ..
</cms:if>

Please make sure you have put in the condition checks properly.
Feel free to attach the template and snippet (please zip them first) here if you want us to take a look at the code.

Thanks.
2 posts Page 1 of 1
cron