Page 1 of 1
Category list in news module
Posted: Tue Jun 27, 2006 11:53 am
by rcp
Hi!
I have a page that display several categories of news. I'm looking for a way to display all the categories names even those from categories w/o any articles. Anyone knows how to do this?
Thanks in advance!
Re: Category list in news module
Posted: Wed Jun 28, 2006 2:52 pm
by slloyd
Just place the news code for each news category into your page where you want each category to display:
Code: Select all
{cms_module module="news" category="categoryname" number='3'}
You can add the number of news items you want displayed to it, too.
As far as displaying categories with no news items, I'm not sure how to do that except to plug in some text like, "No news items".
Re: Category list in news module
Posted: Thu Jun 29, 2006 4:01 am
by Dr.CSS
make a new template with just the...
this is just for styling, the line below is the 'call'
{$entry->category}
and what ever other info you want to display, if you look at the default templates for News you will see a lot of these 'calls' just put the ones you want in the template...
{cms_module module="news"summarytemplate="thenameofyourtemplate.tpl"}