Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2007-02-11 03:58:14

mattmikulla
Member
From: Nashville Tennessee
Registered: 2004-08-25
Posts: 281
Website

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

#2 2007-02-11 10:16:30

Dragondz
Moderator
From: Algérie
Registered: 2005-06-12
Posts: 1,538
Website GitHub Twitter

Re: If no articles are present then display a message?

A plugin manage the problem : chh_if_data

Good luck

Offline

#3 2007-02-11 15:00:12

Elenita
Member
From: Falls Church, VA
Registered: 2004-05-16
Posts: 407
Website

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

Board footer

Powered by FluxBB