Go to main content

If expired

On this page:

Syntax

<txp:if_expired>

The if_expired tag is a conditional tag and always used as an opening and closing pair, like this…

<txp:if_expired>
    …conditional statement…
</txp:if_expired>

The tag will execute the contained statements, if a particular article is expired. Should be used in an ‘article’ type form.

Attributes

This tag has no attributes.

Examples

Example 1: Show when article has (or will) expire

<txp:if_expired>
    This article is already expired. It expired <txp:expires />.
<txp:else />
    <txp:if_expires>
        This page isn't expired. It expires <txp:expires />.
    <txp:else />
        This page doesn't expire.
    </txp:if_expires>
</txp:if_expired>

Other tags used: else, expires, if_expires.

Genealogy

Version 4.0.7

Tag support added.

If you notice any kind of problem with this page’s construction or content (outdated information, typos, broken links, or whatever), open an issue to have it sorted. Or have a go at it yourself. :)