News module - show message if no articles
News module - show message if no articles
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
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.
I haven't heard back on this issue and wanted to see if anyone could help. The original message can be found below.
-
- 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
{foreach from=$entries item='entry'}
....
{foreachelse}
There was nothing to display
{/foreach}
....
{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.
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.
Re: News module - show message if no articles
Thanks so much. I will give this a try. Much thanks!