I'm using cmsms 1.4.1, and have been having trouble getting the browse category feature of the news module (2.8.2) to work. Although the Browse Category section displays the number of posts in each category properly, when a category is clicked, the articles are not filtered at all, and all articles from every category are displayed. My browse category template is:
Code: Select all
<div id="browsecat">
{if $count > 0}
<ul class="list1">
{foreach from=$cats item=node}
{if $node.depth > $node.prevdepth}
{repeat string="<ul>" times=$node.depth-$node.prevdepth}
{elseif $node.depth < $node.prevdepth}
{repeat string="</li></ul>" times=$node.prevdepth-$node.depth}
</li>
{elseif $node.index > 0}</li>
{/if}
<li class="newscategory">
{if $node.count > 0}
<a href="{$node.url}">{$node.news_category_name}</a> ({$node.count}){else}<span>{$node.news_category_name} (0)</span>{/if}
{/foreach}
{repeat string="</li></ul>" times=$node.depth-1}</li>
</ul>
{/if}
</div>
Thanks in advance
ja