Jump to Content

Objective HTML

Photo Frame

{your_field:first_photo}

This method allows you to return the first 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:first_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:first_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:first_photo id="some-id"}

limit=

This parameter will limit the number of photos returned.

offset=

This parameter will offset the number of photo returned.

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:first_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:first_photo alt="Some Alt" class="Some Class"}

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