We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Disable prev/next loop for single-entry image gallery page

Development and Programming

Taiga's avatar
Taiga
7 posts
17 years ago
Taiga's avatar Taiga

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?

       
44sunsets's avatar
44sunsets
42 posts
17 years ago
44sunsets's avatar 44sunsets

I noticed this as well, and it’s really bugging me since the regular weblog next/prev does not behave the same way. Can someone please clarify? It certainly seems like a bug to me.

       
Jamie Poitra's avatar
Jamie Poitra
409 posts
17 years ago
Jamie Poitra's avatar Jamie Poitra

This just came up and is a documentation error.

Previous Thread

The docs have been corrected internally and should filter down to the live ones soon.

Jamie

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.