If excerpt

On this page:

Syntax

<txp:if_excerpt>

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

<txp:if_excerpt>
    ...conditional statement...
</txp:if_excerpt>

The tag will execute the contained statements if an excerpt is associated with the article being displayed.

Attributes

This tag has no attributes.

Examples

Example 1: Display the excerpt if it exists

<txp:if_excerpt>
    <txp:excerpt />
</txp:if_excerpt>

Other tags used: excerpt.

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.