Page 1 of 1

News Module - Browse Category Doesn't Work

Posted: Fri Nov 07, 2008 5:27 pm
by ja
Hi,

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>
Could this be related to php safe mode? Our current hosting provider has safe mode enabled. We will be moving to another host in the near future because of this.

Thanks in advance

ja

Re: News Module - Browse Category Doesn't Work

Posted: Sat Nov 08, 2008 10:12 am
by danel
add to pages {news category="category"}

for example news about health > {news category="health"} ( that category has to be made in news module )

Re: News Module - Browse Category Doesn't Work

Posted: Sat Nov 08, 2008 7:54 pm
by mel
It doesn't work also for me (post). Ja, do you have a normal version CMSMS or MLE?

Re: News Module - Browse Category Doesn't Work

Posted: Thu Nov 20, 2008 1:08 am
by ja
Hi Mel,

sorry about the delayed response - some other stuff took me over for a bit.
I'm using the normal version of cmsms.
It seems strange that such a common feature wouldn't work, unless we're doing something majorly wrong....

ja

Re: News Module - Browse Category Doesn't Work

Posted: Thu Nov 20, 2008 4:12 am
by mel
yeah, it's strange. But I asked you, because I tested it in both versions, and only MLE did'nt work. It was fine on regular CMSMS 1.4

Re: News Module - Browse Category Doesn't Work

Posted: Thu Nov 20, 2008 1:04 pm
by ja
could you paste in the code you used so i can have a look?
thanks in advance.

ja

Re: News Module - Browse Category Doesn't Work

Posted: Sun Nov 23, 2008 10:28 am
by psy
For the record, I am having the same problem after upgrading to v1.4.1, ie it displays the categories but when you click on a category link, it displays all the item summaries, not just for the selected category.  It worked fine with v1.4 and only seems to have broken after upgrading 1.4.1.

Regards
psy