ZenphotoCMS Forum
PrintAlbumMenu doesn't show subalbums - 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: PrintAlbumMenu doesn't show subalbums (/thread-3005.html)



PrintAlbumMenu doesn't show subalbums - Miem - 2008-06-04

I have the nighly build zenphoto-2008-06-02-trunk and I try to show the album list. I use this to print the list:
<?php printAlbumMenu("list","count","album_menu","album_menu_active","album_menu_sub","album_menu_sub_active"); ?>

I can only see the top level albums.

An other thing is, in the output HTML i get this:

`<ul id='album_menu'>

[*]Foto Albums

<li id='album_menu_active'>Familie weekend 2007

<li id='album_menu_active'>Feest Anja 2008 (154)`

As you see there is two times made use of the same id, this will nit validate.


PrintAlbumMenu doesn't show subalbums - acrylian - 2008-06-04

1) Yes, that is supposed behaviour. The menu is context sensitive and shows subalbum only if you selected a top level album that has some or in one of the subalbums (the next levels also context sensitive). This was implemente by user request to save space.
http://www.zenphoto.org/documentation/zenphoto/_plugins---print_album_menu.php.html

2) Thanks for that! You really make me feel ashamed, that error must have been there for a long time but I didn't notice it. Of course that has to be a css class.... I will correct that soon!


PrintAlbumMenu doesn't show subalbums - Miem - 2008-06-04

Thanks for your quick answer. Glad to help even if it is this small thing. ;-)

I will try and find a way to expand the list with all the submenu's visible.


PrintAlbumMenu doesn't show subalbums - acrylian - 2008-06-04

:-)

I will see if it's easy to make this an option. If you need that fast take a look at the plugin's printAlbumMenuJump() function in the nightly, you could easily make a custom function out of that (see the theming guide for info about that) and turn that into a list.


PrintAlbumMenu doesn't show subalbums - Miem - 2008-06-04

Thanks again. I notice the jumpmenu showing the subalbums. I will look in to it later. First I have to make my own theme work the way I want it. :-)


PrintAlbumMenu doesn't show subalbums - acrylian - 2008-06-04

Anyway, thanks to your bug find I found another one, the html nested lists are not correctly (well, never change a running function...:-)) Will take some more time I guess... But when I got that right again the list will have an option to always show the subalbums.


PrintAlbumMenu doesn't show subalbums - Miem - 2008-06-04

Jippieeeeeeeeee, you are great.