Collapsible jump menu - Llleb - 2016-05-11
Hi,
I guess what I want to do is going to be a bit difficult.
Lets say I have a menu, sub menu structure like
Fauna / Birds / Sea Birds / Gulls / Black-backed Gull
.................../ Land Birds / Passerines / Fimches / Goldfinch
.................../ Waders Knots / Great Knot
With similar other menus, subs etc under Fauna, Insects for instance.
Is it possible to have the menu collapsed in it's base state.
You click on Fauna and it opens out to Birds and Insects, click on Birds and Sea Birds, Land Birds and Waders open out ?
I'm guessing the menus are html lists so there is probably no native support for this ?
Is there any plugin that has been written to do this ?
I'm guessing I'll have to do this myself using jQuery or similar.
While I know I shouldn't muck with the core code where is the code (function?) stored that creates the menu ?
I'll have a look and see where I go from there.
Thanks and any thought appreciated.
Collapsible jump menu - fretzl - 2016-05-11
No need to modify the core.
There are two plugins you could use:
[b]print_album_menu[/b]
[b]menu_manager[/b]
- A sophisticated plugin to create any menu you like.
- Combine albums, pages, news, categories, custom HTML in one menu.
Collapsible jump menu - acrylian - 2016-05-11
Just to ad: Yes, if you like dynamic functionality like dropdown etc. you indeed can use CSS and/or jQuerry/JS on the html menus generated by the plugins that fretzl suggested. The album menu also provides a dropdown jump menu option ( `` html) you can surely take over via some jQuery script or else as well if needed.
Collapsible jump menu - Llleb - 2016-05-11
Hi folks thanks,
At present I'm using the jump menu
printAlbumMenuJump('count',gettext('Gallery Index'));
That's what I am trying to add the dynamic functionality to.
Currently I have 880 albums and with this new build will be over 1200.
They all come from 5 top level albums and are sub, subsub, subsubsub etc
That is why I want the menu to collapse back up the sub albums.
Will have a play with css and jQuery and see if I can work something out.
Collapsible jump menu - acrylian - 2016-05-11
Ok, that would be a very long list and probably a bit slow as well. The html version allows to fold out levels when you are within a certain level only. That surely can be turned into dropdown/foldout via jQuery/CSS.
|