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!
Comments
Then you could use something like this:
`printAlbumMenuList("list-sub",NULL,"","menu-active","submenu","menu-active",$allalbums,false,false);`
Also have look in `print_album_menu.php` (zp-core/zp-extensions/print_album_menu.php). The functions are well commented.
http://www.zenphoto.org/documentation/plugins/_zp-extensions---print_album_menu.php.html#functionprintAlbumMenu
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!