Page 1 of 1

News module category display

Posted: Fri Sep 02, 2011 9:47 am
by René
Hello all,
A small question regarding the default templates that come with the news module. I'm using version 1.9.4.2
In the summary template it says that if you remove this:

Code: Select all

{* This section shows a clickable list of your News categories. *}
[size=85][size=50][/size][/size]<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{if $node.index == 0} class="firstnewscat"{/if}>
{if $node.count > 0}
	<a href="{$node.url}">{$node.news_category_name}</a>{else}<span>{$node.news_category_name} </span>{/if}
{/foreach}
{repeat string="</li></ul>" times=$node.depth-1}</li>
</ul>

{* this displays the category name if you're browsing by category *}
{if $category_name}
<h1>{$category_name}</h1>
{/if}
Then categories are not shown in the news summary.
Okay so I did remove those lines and thought to copy them to the detail template because I do want readers of a news item to be able to select a category upon reading a message. So far so good.
Categories are now not shown anymore in the summary and correctly displayed on the detail page of a news message.

But now when I click on a category, it shows all messages in that category (which is what I want) but without the categories themselves again and the fat title. These seem to be dependent on the summary template (where I deliberately removed them). ???
So basically I want to have the categories display exactly as it was when still in the summary template but now from the detail page. I first thought the browse category template was the obvious solution but changes there don't reflect anywhere.

cheers

René

Re: News module category display

Posted: Mon Sep 12, 2011 4:33 am
by pixelita
I can't visualize what you mean. Can I get a link?

Re: News module category display

Posted: Tue Sep 20, 2011 8:14 am
by René
I suppose it's indeed hard to visualize. Unfortunately I cannot show it since it's on a local server. Thanks for your time anyway :)

Re: News module category display

Posted: Tue Sep 20, 2011 2:20 pm
by pixelita
Screen dump might help.