Page 1 of 1

suppress News Category in publication

Posted: Tue Jul 01, 2008 2:24 pm
by hesaa
Hi,

I was wondering if anyone might know if it is possible to suppress the display of the "News" category when a News article is in publication.  One of my co-workers has requested that it should not say "Category: General" on our published web page, and that no category should be listed at all.  So far, I have found no way to eliminate this from public display.

Thank you,
John

Re: suppress News Category in publication

Posted: Tue Jul 01, 2008 3:46 pm
by kermit
hesaa wrote: I was wondering if anyone might know if it is possible to suppress the display of the "News" category when a News article is in publication.  One of my co-workers has requested that it should not say "Category: General" on our published web page, and that no category should be listed at all.  So far, I have found no way to eliminate this from public display.
simply remove that portion from the news template(s) you're using...

in the Sample (and used by default if you don't specify a template otherwise) templates.. the code to remove is...

summary template:

Code: Select all

<div class="NewsSummaryCategory">
	{$category_label} {$entry->category}
</div>
detail template:

Code: Select all

{if $entry->category}
	<div id="NewsPostDetailCategory">
		{$category_label} {$entry->category}
	</div>
{/if}