Member
Member
vtroia   2009-08-18, 21:32
#1

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

Member
Member
sbillard   2009-08-18, 23:27
#2

album=>get('show') will return a '1' if the album is published and a '0' if not.

Member
Member
vtroia   2009-08-19, 19:00
#3

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.
In case anyone wants the answer, my final solution was:

echo $_zp_current_album->get('show');

Member
Member
sbillard   2009-08-20, 02:25
#4

Strange that the getShow() method failed for you since its implementation is exactly the same as the above code. Returns the same database field.

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.