News Links from Browsecat
Posted: Thu Feb 21, 2008 8:18 pm
I have a problem with the News module and links from the browsecat page to subcategories.
My news categories are like this:
Category - Family
Subcategory - Birthdays
Subcategory - Anniversaries
Category - Friends
Subcategory - Birthdays
Subcategory - Anniversaries
My browse category template is:
I call it like this:
The Browse Category page shows 2 listings, side-by-side, of the number of articles in each subcategory. When I click on the "Birthdays" link under "Family", the Summary page shows the Birthdays from both "Family" and "Friends". The link that is generated is:
It doesn't seem to differentiate between the main categories. It looks to me that the category in the link should be "Family | Birthdays", not just "Birthdays".
CMS version 1.2.3
News version 2.6.1
Nullig
UPDATE
If I manually change category parameter of the link in my address bar to category=Family%20|%20Birthdays it works.
How can I get browsecat to create the proper link?
My news categories are like this:
Category - Family
Subcategory - Birthdays
Subcategory - Anniversaries
Category - Friends
Subcategory - Birthdays
Subcategory - Anniversaries
My browse category template is:
Code: Select all
{if $count > 0}
<ul id="List1">
{foreach from=$cats item=node}
{if $node.depth > $node.prevdepth}
{repeat string="<ul class='List2'>" 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}"><strong>{$node.news_category_name}</strong></a> ({$node.count})
{else}
<span><strong>{$node.news_category_name}</strong></span>
{/if}
{/foreach}
{repeat string="</li></ul>" times=$node.depth-1}</li>
</ul>
{/if}
Code: Select all
<div id="NewsLeft1">
<p>
{news category='Family*' browsecat='1' browsecattemplate='default' summarytemplate='default' detailtemplate='default' detailpage='news-detail'}
</p>
</div>
<div id="NewsRight1">
<p>
{news category='Friends*' browsecat='1' browsecattemplate='default' summarytemplate='default' detailtemplate='default' detailpage='news-detail'}
</p>
</div>
Code: Select all
http://www.mysite.com/index.php?mact=News,cntnt01,default,0&cntnt01category=Birthdays&cntnt01browsecattemplate=default&cntnt01summarytemplate=default&cntnt01detailtemplate=default&cntnt01detailpage=20&cntnt01returnid=20
CMS version 1.2.3
News version 2.6.1
Nullig
UPDATE
If I manually change category parameter of the link in my address bar to category=Family%20|%20Birthdays it works.
How can I get browsecat to create the proper link?