suppress News Category in publication

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
hesaa
New Member
New Member
Posts: 9
Joined: Mon Jun 09, 2008 7:55 pm

suppress News Category in publication

Post 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
User avatar
kermit
Power Poster
Power Poster
Posts: 693
Joined: Thu Jan 26, 2006 11:46 am

Re: suppress News Category in publication

Post 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}
eternity (n); 1. infinite time, 2. a seemingly long or endless time, 3. the length of time it takes a frozen pizza to cook when you're starving.
4,930,000,000 (n); 1. a very large number, 2. the approximate world population in 1986 when Microsoft Corp issued its IPO. 3. Microsoft's net profit (USD) for the quarter (3 months) ending 31 March 2007.
CMSMS migration and setup services | Hosting with CMSMS installed and ready to go | PM me for Info
Post Reply

Return to “CMSMS Core”