![]() |
|
Unpublished Album Text or Notification - 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: Unpublished Album Text or Notification (/thread-5700.html) |
Unpublished Album Text or Notification - vtroia - 2009-08-18 Is there any way to display a line of text (or an image) that would indicate an album's published status? Essentially, if an album is unpublished, i would like the text 'private' or 'unpublished' to appear next to the description. If there is a tag i can use, i can add it to the template. thanks Unpublished Album Text or Notification - sbillard - 2009-08-18 album=>get('show') will return a '1' if the album is published and a '0' if not. Unpublished Album Text or Notification - vtroia - 2009-08-19 thanks. for clarification if anyone else runs into this problem, there is also a method called getShow(), which I assumed would return the necessary value as long as it was within the album's while loop. Unfortunately, this didn't work. echo $_zp_current_album->get('show'); Unpublished Album Text or Notification - sbillard - 2009-08-20 Strange that the getShow() method failed for you since its implementation is exactly the same as the above code. Returns the same database field. |