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!
Category list in news module
Re: Category list in news module
Just place the news code for each news category into your page where you want each category to display:
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".
Code: Select all
{cms_module module="news" category="categoryname" number='3'}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
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"}
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"}


