prev_photo.url
Previous  Top  Next

A string variable containing the URL of the photo in the current category that comes chronologically before this one. This is empty if there is no such photo.

It can also be used as a boolean variable; it is true if it contains a value.


Example
The example below displays the phrase "Previous photo" if one exists. "Previous photo" is linked to that photo.

{{if prev_photo.url}}  
<a href="{{prev_photo.url}}">Previous photo</a>  
{{/if}}