Go to main content

If comments preview

Contents

Syntax

<txp:if_comments_preview>

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

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

The tag will execute the contained statements if a comment is being previewed.

Attributes

This tag has no attributes of its own. It accepts only the global attributes .

Examples

Example 1: Display text prompt when comment is previewed

<txp:if_comments_preview>
    <p>
        <strong>Please review your comment before submitting.</strong>
    </p>
</txp:if_comments_preview>

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. :)