Go to main content

If last link




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

    …conditional statement…

The tag will execute the contained statements if the displayed link is the last in the currently displayed linklist. The tag supports else.


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


<txp:linklist break="" wraptag="ul" sort="date desc">
        <li class="earliest">
            <txp:link /> (My first link)
    <txp:else />
            <txp:link />

Other tags used: else, link, linklist.


Version 4.6.0

Tag support added.

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