Jump to Content

Objective HTML

Photo Frame

exp:photo_frame:first_photo

This method allows you to fetch the first photo in the returned results.

Parameters

This method accepts all the parameters of the exp:photo_frame:photos.

limit=

By default, the limit is set to 1.

offset=

If you define an offset, it will offset the first photo returned. So if you offset by 1, it would return the second photo. The default offset is 0.


Variables

All the global variables are supported.


Examples


{exp:photo_frame:first_photo}
	
	{photo:url}
	{photo:file}
	
{/exp:photo_frame:first_photo}

{exp:photo_frame:first_photo field_name="your_field"}
	
	{photo:url}
	{photo:file}
	
{/exp:photo_frame:first_photo}

{exp:photo_frame:first_photo entry_id="1"}
	
	{photo:url}
	{photo:file}
	
{/exp:photo_frame:first_photo}

{exp:photo_frame:first_photo entry_id="1" field_name="your_field"}
	
	{photo:url}
	{photo:file}
	
{/exp:photo_frame:first_photo}