![]() |
|
Album Description in Subalbum - Printable Version +- ZenphotoCMS Forum (https://forum.zenphoto.org) +-- Forum: Support (https://forum.zenphoto.org/forum-1.html) +--- Forum: Themes (https://forum.zenphoto.org/forum-5.html) +--- Thread: Album Description in Subalbum (/thread-3280.html) |
Album Description in Subalbum - Connie - 15-07-2008 Hi! Festival 2008 The subalbum "1st day" shows all bands, there I want to show only (Sub-)AlbumName and CustomData in the subalbum "1st day/group 1" I want to show (Sub-)AlbumName + (Sub-)AlbumDescription but as I understand, the album.php does not differ between Album and Subalbum... is there a chance to add this in some way to the default-theme / album.php? I cannot show any URL as I customize locally, but I use the latest build 1954... Album Description in Subalbum - acrylian - 15-07-2008 Yes, it is..:-) Place something like this within the
This prints the direct subalbums of the current album with title and description. You find all info what else you can use with the album object here: http://www.zenphoto.org/documentation/zenphoto/Album.html. Also you could look at the function printAlbumStatisticItem() of the image_album_statistics plugin for a direct example. Album Description in Subalbum - Connie - 15-07-2008 Either I didn't get it or you didn't understand me: Album 1 has 5 subalbums, so: Album 1 should list Title and Custom-Data of each subalbum, the subalbum then should print album title + album description in http://www.jazzbuero-hamburg.de/diesunddas/zen/index.php?album=jazzopen-hamburg-2008 in I want title, descriptions and images, let's name it like this:
so I do not know how to do that Album Description in Subalbum - sbillard - 15-07-2008 If I understand correctly you want what is displayed to be based somehow on the album (maybe its level in the hierarchy, its name or its contents.) To do this you would need to establish the type of album in code before the next_album() loop and then in the loop, based on this determination, execute the appropriate code. So, if what you want is based on the album being a root album (Album 1) the test would be: Testing for subalbums is as follows: Album Description in Subalbum - Connie - 15-07-2008 yeah, the last example gets it! If ($hassubalbums == 0) print album descripton Now I have orientation, thanks a lot! Album Description in Subalbum - acrylian - 15-07-2008 Ok, I indeed got you wrong then..:-) Album Description in Subalbum - Connie - 15-07-2008 No problem, I got it! ;=) Album Description in Subalbum - macalter - 15-07-2008 http://www.zenphoto.org/documentation/zenphoto/Album.html >>> takes me to the testimonial page, not information about the topic :( Have had this problem with other URLs you've quoted. Album Description in Subalbum - acrylian - 15-07-2008 Strange, I get to the right page... Album Description in Subalbum - sbillard - 15-07-2008 Technically all you need is Album Description in Subalbum - Connie - 15-07-2008 yes,
Album Description in Subalbum - macalter - 17-07-2008 Your URL took me to Testimonials, plus it's possible to period as sentance end interffered. My URL worked okay. Will see next time what happens. Album Description in Subalbum - acrylian - 17-07-2008 @macalter, yep there got a period inbetween my link above. |