If expired

On this page:



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

    ...conditional statement...

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


This tag has no attributes.


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

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

Other tags used: else, expires, if_expires.


Version 4.0.7

Tag support added.

See something wrong in this document? Outdated info, a broken link, faulty code example, or whatever? Please write an issue and we’ll fix it.