<txp:if_first_article /> container tag, 0 attributes

if_first_article

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

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

The tag will execute the contained statements if the displayed article is the first in the currently displayed list. It will display in both single article and article list modes. Should be used in an article form.

<txp:if_first_article /> 1 examples

Add a linked section by title

<h3><txp:permlink><txp:title /></txp:permlink> · <txp:posted /> by <txp:author />
<txp:if_first_article>
· Section: <txp:section link="1" title="1" />
</txp:if_first_article></h3>
<txp:body />
<txp:comments_invite wraptag="p" />

What this does…
Displays a link to the header of the first article in an article list.

Other tags used: permlink, title, author, posted, section, body, comments_invite