Member
Member
Casvanderhoven   07-02-2012, 10:48
#1

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!

Administrator
Administrator
fretzl   07-02-2012, 11:13
#2

Activate the print_album_menu plugin.

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 ([i]zp-core/zp-extensions/print_album_menu.php[/i]). The functions are well commented.

Administrator
Administrator
acrylian   07-02-2012, 11:29
#3

You can even look online on our documentation:
http://www.zenphoto.org/documentation/plugins/_zp-extensions---print_album_menu.php.html#functionprintAlbumMenu

Member
Member
Casvanderhoven   07-02-2012, 18:13
#4

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!

Administrator
Administrator
acrylian   07-02-2012, 18:18
#5

Well, "unrealistic" depends on your abilities as you would have to create such a solution yourself as we have nothing similar.

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