In my gallery every detail viewed picture at the same time is a link to the next image in the folder.
So it so easy to view all pictures to the end of the folder simply by clicking to the image.
I have change my details.html:
<div align="center">
{image}
{if admin_links}<br />
{admin_links}<br />
{endif admin_links}<br />
{lightbox_button} {postcard_button} {download_button} {download_zip_button}
</div>
to this:
<div align="center">
{if next_image_name}
<a href="{next_image_url}" alt="{image_name}" title="{image_name}">
{endif next_image_name}
{image}
{if admin_links}<br />
{admin_links}<br />
{endif admin_links}<br />
{lightbox_button} {postcard_button} {download_button} {download_zip_button}
</div>
When last image in folder is reached - nothing is happen because next_image_name is false. But I want in this case change href to {cat_url}.
How can I use if...else...endif structure here?
Or how can I use logical negation? Something like this... {if !next_image_name} ?
Could someone help me?