exclude news category?

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
admsh
Forum Members
Forum Members
Posts: 93
Joined: Tue Aug 19, 2008 6:30 pm

exclude news category?

Post by admsh »

i'm looking for a way to exclude a news category from showing. if i only include the categories i want to show (by listing all but the one i want to hide, with commas), news items are shown in that order (the order in which i've listed the categories i want to show).

i want items to be shown normally, by posting date, but excluding one category. is that possible?
Wishbone
Power Poster
Power Poster
Posts: 1368
Joined: Tue Dec 23, 2008 8:39 pm

Re: exclude news category?

Post by Wishbone »

You can using smarty logic in your summary template to reject a category, though it will mess with your 'number' parameter if you're using it. If you're using 'number=5' and four of them are the wrong category, you'll only get one news article. :)

You mentioned that if you specify the categories, it gives you the articles in category order? I use this all the time and have never seen this behavior. The sortby field is supposed to default to "news_date" regardless of category order.
RonnyK
Support Guru
Support Guru
Posts: 4962
Joined: Wed Oct 25, 2006 8:29 pm

Re: exclude news category?

Post by RonnyK »

on what version of CMSMS are you?

Ronny
Post Reply

Return to “CMSMS Core”