Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
If no articles are present then display a message?
Hello. I am posting events in a simple fashion by dating them in the future on the day of the event. It works well without implementing an event plugin. However, If no event or article is present I would like to display a message like “No Events Posted”.
Any idea how to achivieve that. Here is my current code
<code>
<h2>Upcoming Events</h2>
<ul class=“listerfive”>
<txp:article_custom section=“events” limit=“5” time=“future” sortdir=“asc” form=“event_list” />
</ul>
</code>
Art Rogue – Fine Art Photography
Offline
Re: If no articles are present then display a message?
A plugin manage the problem : chh_if_data
Good luck
Offline
Re: If no articles are present then display a message?
There’s also the pm_if_no_articles plugin. I’m not sure if it’s been updated for v4.0.4, though.
Offline