Textpattern CMS Template Tags

<txp:if_expired /> container tag, 0 attributes

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 form.

notes

genealogy

Version 4.0.7

  • tag added
<txp:if_expired /> 1 examples

Show when article has (or will) expire

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

Other tags used: expires