Jump to Content

Objective HTML

Photo Frame

{your_field:last_photo}

This method allows you to return the last photo(s) in the set.

Parameters

alt=

This parameter will add an alt attribute to the photo. This parameter is only valid if the single variable format is used.

{your_field:last_photo alt="Some Alt"}

class=

This parameter will add an class attribute to the photo. This parameter is only valid if the single variable format is used.

{your_field:last_photo class="some-class"}

height=

This parameter will add a height attribute to the photo. This parameter is only valid if the single variable format is used.

id=

This parameter will add an if attribute to the photo. This parameter is only valid if the single variable format is used.

{your_field:last_photo id="some-id"}

limit=

This parameter will limit the number of photos returned.

offset=

If you define an offset, it will offset the last photo that is returned. So if you offset of 1, then it would return the second to last photo. The default offset is 0.

title=

This parameter will add an title attribute to the photo. This parameter is only valid if the single variable format is used.

{your_field:last_photo title="Some Title"}

width=

This parameter will add a width attribute to the photo. This parameter is only valid if the single variable format is used.


Example


{your_field:last_photo alt="Some Alt" class="Some Class"}

{your_field:last_photo limit="1" offset="2"} // Returns the second photo