News Module - Browse Category Doesn't Work

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
ja
New Member
New Member
Posts: 5
Joined: Fri Nov 07, 2008 5:13 pm

News Module - Browse Category Doesn't Work

Post 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
danel
Forum Members
Forum Members
Posts: 12
Joined: Mon Jul 07, 2008 8:06 pm

Re: News Module - Browse Category Doesn't Work

Post 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 )
mel
Forum Members
Forum Members
Posts: 147
Joined: Mon Dec 11, 2006 11:53 pm

Re: News Module - Browse Category Doesn't Work

Post by mel »

It doesn't work also for me (post). Ja, do you have a normal version CMSMS or MLE?
Version 1.6-MLE
ja
New Member
New Member
Posts: 5
Joined: Fri Nov 07, 2008 5:13 pm

Re: News Module - Browse Category Doesn't Work

Post 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
mel
Forum Members
Forum Members
Posts: 147
Joined: Mon Dec 11, 2006 11:53 pm

Re: News Module - Browse Category Doesn't Work

Post 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
Version 1.6-MLE
ja
New Member
New Member
Posts: 5
Joined: Fri Nov 07, 2008 5:13 pm

Re: News Module - Browse Category Doesn't Work

Post by ja »

could you paste in the code you used so i can have a look?
thanks in advance.

ja
psy
Power Poster
Power Poster
Posts: 463
Joined: Sat Jan 22, 2005 11:19 am

Re: News Module - Browse Category Doesn't Work

Post 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
Post Reply

Return to “Modules/Add-Ons”