News module category display

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
René
Forum Members
Forum Members
Posts: 28
Joined: Tue Jun 28, 2011 7:59 am

News module category display

Post 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é
User avatar
pixelita
Power Poster
Power Poster
Posts: 388
Joined: Sun Sep 16, 2007 3:07 am

Re: News module category display

Post by pixelita »

I can't visualize what you mean. Can I get a link?
Submit your site to the We Love CMSMS showcase
René
Forum Members
Forum Members
Posts: 28
Joined: Tue Jun 28, 2011 7:59 am

Re: News module category display

Post 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 :)
User avatar
pixelita
Power Poster
Power Poster
Posts: 388
Joined: Sun Sep 16, 2007 3:07 am

Re: News module category display

Post by pixelita »

Screen dump might help.
Submit your site to the We Love CMSMS showcase
Post Reply

Return to “CMSMS Core”