Page 1 of 1
News module - show message if no articles
Posted: Wed Apr 30, 2008 3:33 am
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?
Re: News module - show message if no articles
Posted: Thu May 08, 2008 2:11 am
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.
Re: News module - show message if no articles
Posted: Thu May 08, 2008 2:19 am
by calguy1000
{foreach from=$entries item='entry'}
....
{foreachelse}
There was nothing to display
{/foreach}
Re: News module - show message if no articles
Posted: Thu May 08, 2008 2:21 am
by Hollywood
Thanks so much. I will give this a try. Much thanks!