ZenphotoCMS Forum
Don't want PageNav in albums. How? - Printable Version

+- ZenphotoCMS Forum (https://forum.zenphoto.org)
+-- Forum: Support (https://forum.zenphoto.org/forum-1.html)
+--- Forum: General support (https://forum.zenphoto.org/forum-4.html)
+--- Thread: Don't want PageNav in albums. How? (/thread-3158.html)



Don't want PageNav in albums. How? - corinne - 2008-06-25

Hello,

I'm preparing a gallery which has a very particular display.
I'm wanting my main categories to only contain subcategories (and not images).
Actually, it works, see : http://207.45.186.114/~ceruleum/galerie/ateliers

My problem is that the PageNav appears anyway in the album page... and that if I comment it out, it doesn't appear anymore in the sub-album, where the images lie.

Is there any ready function that could allow me to show it only where there are actually images(subcategories)? i.e. http://207.45.186.114/~ceruleum/galerie/ateliers/gravure/

Many thanks in advance for your help,
Corinne




Don't want PageNav in albums. How? - acrylian - 2008-06-25

Sure, use this with an if/else to check if there are any images: http://www.zenphoto.org/documentation-official/zenphoto/_template-functions.php.html#functiongetNumImages




Don't want PageNav in albums. How? - sbillard - 2008-06-25

You can also set your CSS to make the inactive links not visible.