Hide future articles from News browsecat?

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
User avatar
tophers
Forum Members
Forum Members
Posts: 218
Joined: Thu Jun 07, 2007 7:25 pm
Location: Calgary, Alberta, Canada

Hide future articles from News browsecat?

Post by tophers »

I have a series of articles loaded into News, under a subcategory (Category 1 > Subcategory 2). They have a Post and Start date in the future (a few days from now). When I use the browescat feature (browsecat='1'), this future category shows up with an article count, but returns a null result when clicked.

Is there a way to hide these as-yet-to-be-posted articles, and their entire category, from the browsecat function? I found an old post referring to this, but it looks like the module has undergone significant changes since then:
http://forum.cmsmadesimple.org/viewtopi ... cat+future

I'm using CMSMS 1.11.9 and News 2.14.1 (a few custom modules have kept me from upgrading to 1.11.13 yet).
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Location: The Netherlands
Contact:

Re: Hide future articles from News browsecat?

Post by Rolf »

You probably need to use some Smarty magic. If number of articles equals 0 don't show category or something...
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
User avatar
velden
Dev Team Member
Dev Team Member
Posts: 3483
Joined: Mon Nov 28, 2011 9:29 am
Location: The Netherlands

Re: Hide future articles from News browsecat?

Post by velden »

Having a quick look in the news module that comes with 1.11.13 I don't see the use of the start date in the sql query.

As we are in Geekmoot right now I could ask about it directly to the developer (used IRC though :) ).

Thinks it is a bug so I filed a bug report:
http://dev.cmsmadesimple.org/bug/view/10452
User avatar
velden
Dev Team Member
Dev Team Member
Posts: 3483
Joined: Mon Nov 28, 2011 9:29 am
Location: The Netherlands

Re: Hide future articles from News browsecat?

Post by velden »

Bug is fixed in SVN so with next release of News module it would behave as expected

http://dev.cmsmadesimple.org/bug/view/10452
Post Reply

Return to “Modules/Add-Ons”