Member
Member
jackdaw   2008-06-08, 11:56
#1

This looks like this topic: http://www.zenphoto.org/support/topic.php?id=2833, but I guess it's a bit different...

I would like to add album descriptions that are only visible on the first page of a multi-paged album with images. So when I enter an album, above is the description, beneath the thumbs. When I go to page two I don't want to see the description anymore.

What I did now was adding 'printAlbumDesc(true);' before the 'while (next_album())' code inside album.php, but this doesn't work. It shows up, but on all the pages...

Also I would like to know (if the above is possible) how to check IF a description is added, so that the css-styling I added is not printed (I enclosed the above code in a 'div').

Administrator
Administrator
acrylian   2008-06-08, 12:26
#2

getCurrentPage()gets the current page number and if getAlbumDesc() is empty there is apparently no description.
http://www.zenphoto.org/documentation-official/zenphoto/_template-functions.php.html
Use and if/else construct to check that.

Member
Member
jackdaw   2008-06-08, 15:14
#3

Thanks for the tips. I could have come up with the same ideas, but I didn't ...

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