News module - show message if no articles

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
Hollywood
Forum Members
Forum Members
Posts: 10
Joined: Thu May 17, 2007 3:58 am

News module - show message if no articles

Post by Hollywood »

I'm using the news module to display jobs so I can time their start and end.  I want to insert a message in my summary template if there are no articles (jobs in this case) that are active/shown.  In other words, if there are active job listings, they should appear, else I want a message that says "There are no current jobs."  How do I do this?
Hollywood
Forum Members
Forum Members
Posts: 10
Joined: Thu May 17, 2007 3:58 am

Re: News module - show message if no articles

Post by Hollywood »

Hi all,

I haven't heard back on this issue and wanted to see if anyone could help.  The original message can be found below.
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm
Location: Fernie British Columbia, Canada

Re: News module - show message if no articles

Post by calguy1000 »

{foreach from=$entries item='entry'}
      ....
{foreachelse}
  There was nothing to display
{/foreach}
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Hollywood
Forum Members
Forum Members
Posts: 10
Joined: Thu May 17, 2007 3:58 am

Re: News module - show message if no articles

Post by Hollywood »

Thanks so much.  I will give this a try.  Much thanks!
Post Reply

Return to “CMSMS Core”