ZenphotoCMS Forum
Hiding Albums without Pics in - 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: Hiding Albums without Pics in (/thread-10717.html)



Hiding Albums without Pics in - mstratford - 2013-01-07

Is there a function or plugin that can hide albums until they have pictures in?




Hiding Albums without Pics in - fretzl - 2013-01-07

This works for me.
Change the [i]next_album()[/i] loop.

`

...

...

`




Hiding Albums without Pics in - acrylian - 2013-01-07

That will work but of course confuse any pagination.

You could use the object model to write a small function to check and change the publish state.




Hiding Albums without Pics in - sbillard - 2013-01-07

And if you are the one putting the images in the album you could just unpublish the album until you are ready to show the images.




Hiding Albums without Pics in - mstratford - 2013-01-20

Acrylian, do you have any code to do this?




Hiding Albums without Pics in - acrylian - 2013-01-20

See the object model tutorial for the basics and then review the methods available on the documentation.




Hiding Albums without Pics in - mstratford - 2013-01-20

I would love someone to help me with that




Hiding Albums without Pics in - mstratford - 2013-01-20

I have just realised, when I un publish something, it doesn't hide???




Hiding Albums without Pics in - fretzl - 2013-01-21

Maybe you are logged in? You will also see unpublished items then.




Hiding Albums without Pics in - mstratford - 2013-01-21

Ahh! Thanks