![]() |
|
Display list on album page only if it has sub albums - 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: Display list on album page only if it has sub albums (/thread-9595.html) |
Display list on album page only if it has sub albums - Casvanderhoven - 2012-02-07 Basically what the title said. I need to display a sub album nav list on album pages, but only if the specific album contains sub albums. I cannot figure out the correct if statement. I think there's a way of getting the number of sub albums, but I'm not sure how to use it in this case. Thanks in advance! Display list on album page only if it has sub albums - fretzl - 2012-02-07 Activate the Then you could use something like this: Also have look in Display list on album page only if it has sub albums - acrylian - 2012-02-07 You can even look online on our documentation: Display list on album page only if it has sub albums - Casvanderhoven - 2012-02-07 Thanks for the fast response guys. I wasn't being entirely clear in my opening post. I know how to make the list, but I also wanted to include a heading above the list (e.g. "categories, or something like that), which at this point is displayed on every album page, also those without sub albums. [b]But I changed plans a bit, so I've got a follow up question.[/b] On my album page, I want to display all images out of both the actual album and its sub albums. The sub album menu is then used to 'filter' these images. What would be perfect, is to have a list of checkboxes that correspond to the sub albums, and to omit the pictures from a specific sub album if the checkbox is unchecked. Am I thinking about something unrealistic here? I don't know if this is only possible by doing something with dynamic albums, or if there's an 'easier' way. Cheers! Display list on album page only if it has sub albums - acrylian - 2012-02-07 Well, "unrealistic" depends on your abilities as you would have to create such a solution yourself as we have nothing similar. |