If last image

On this page:



The if_last_image 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 image is the last in the currently displayed images list. The tag supports else.


This tag has no attributes.


Example 1: Identify last image in an image list

<txp:images break="" wraptag="ul" sort="date desc">
        <li class="earliest">
            <txp:image /> (Earliest photo)
    <txp:else />
            <txp:image />

Other tags used: else, image, images.


Version 4.6.0

Tag support added.

See something wrong in this document? Outdated info, a broken link, faulty code example, or whatever? Please open an issue and we’ll investigate.