If first link
Contents
Syntax
<txp:if_first_link>
The if_first_link tag is a conditional tag and always used as an opening and closing pair, like this…
<txp:if_first_link>
…conditional statement…
</txp:if_first_link>
The tag will execute the contained statements if the displayed link is the first in the currently displayed linklist. The tag supports else.
Attributes
This tag has no attributes of its own. It accepts only the global attributes .
Examples
Example 1: Identify first link in an link list
<txp:linklist break="" wraptag="ul" sort="date desc">
<txp:if_first_link>
<li class="latest">
<txp:link /> (Latest link)
</li>
<txp:else />
<li>
<txp:link />
</li>
</txp:if_first_link>
</txp:linklist>
Other tags used: else, link, linklist.
Genealogy
Version 4.6.0
Tag support added.