![]() |
|
Printing an album menu from a specific subdirectory - 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: Printing an album menu from a specific subdirectory (/thread-11282.html) |
Printing an album menu from a specific subdirectory - tosca - 2013-08-20 I'm using the I don't want it be context sensitive (visitors should have access to the whole gallery from anywhere they are) but I would like to restrict it to one branch of the
I've searched for some kind of parameter to instruct Could you give me some advice on the matter? Printing an album menu from a specific subdirectory - acrylian - 2013-08-20 I am not sure I understood. There is an option to display only the sub albums for an album and omit the top level. So if you have two top level albums "album1" and "album2" it would just display the sub level of those if within those albums and their childs. If you need more specific menus or behaviour you need to either use the menu manager plugin with several menu sets or create a custom function. Printing an album menu from a specific subdirectory - tosca - 2013-08-20 First line of the link you produced says: The album element - unless I'm mistaken - only returns a link to a specific album. What I'm looking for is a combination of both: a whole menu album starting from the one I choose down to the lowest levels. I think I need to adapt the Printing an album menu from a specific subdirectory - acrylian - 2013-08-20 If your branches are topl level ones "omit top" does what you want. Within that it folds out context sensitive as usual. Unless you enable it to show all levels always. This is a quite complicated plugin especially because getting the nested html list correctly done although it "just prints" a list. What you want might be not that easy. It might be easier to write a simple custom function if you know your album level depth. In any case you need to use/get into the object model and thus always have to use the album name. The id has no role in the object model. Printing an album menu from a specific subdirectory - tosca - 2013-08-20 What I currently have is the whole albums list here: whole list. Printing an album menu from a specific subdirectory - acrylian - 2013-08-20 That is not possible with the album menu plugin. You could try some jQuery magic to hide the other toplevel tree though maybe. Otherwise you would be better off using the menu manager then. Printing an album menu from a specific subdirectory - tosca - 2013-08-20 Well, thanks for having a look. I'll thing about it. Printing an album menu from a specific subdirectory - tosca - 2013-08-26 Should have thought about it sooner: the solution is to instantiate a new gallery object which root is the highest level album containing my photos, then call the ` printAlbumMenuListAlbum($albums, $albumpath, $currentfolder, $option, $showcount, $showsubs, $css_class, $css_class_topactive, $css_class_active,$firstimagelink,$keeptopactive,$limit); Printing an album menu from a specific subdirectory - acrylian - 2013-08-26 Even I haven't thought about that helper function… Btw, you don't instaniate a "gallery object" (means the whole site in ZP terms) but an "album object". On 1.4.5 you should use the function Printing an album menu from a specific subdirectory - tosca - 2013-08-26 Thanks for the advice, I will change that. In fact, I had copied/pasted some code written a few months ago for my home page, and didn't realized 1.4.5 brings new functions in that department. Printing an album menu from a specific subdirectory - acrylian - 2013-08-27 What you did does work of course, but the new function is a bit saver (there is an equivalent for the image class constructor, too). |