Is it possible to hide previous link when first image in the gallery is shown, and hide next link when last image is shown?
Something similar to weblog pagination:
{if previous_page}
<a href="http://{auto_path}">Previous Page</a>
{/if}
{if next_page}
<a href="http://{auto_path}">Next Page</a>
{/if}
This tags don’t seem to work for image gallery pages.
Found this in documentation: http://expressionengine.com/docs/modules/gallery/next_prev_entries.html
Note: If you are viewing the most recent entry in your gallery, then the “next_entry” tag’s contents will not be shown (since there is no “next entry”). Likewise, when you are viewing the oldest/first entry in the gallery the “previous_entry” content will not be shown.
Doesn’t seem to work as noted. Is this a bug?
This just came up and is a documentation error.
The docs have been corrected internally and should filter down to the live ones soon.
Jamie
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.