menu
Permalink
how would i go about creating a menu like this that is like the accordion menu with jquery. Is this possible and is it easy?
see attachment...
see attachment...
I forgot to attach the image
I need this for my next project and I'm at a lose on how to accomplish it.
you could probably get this done by making a custom template for the autonav block. That block will load all the pages you need, and their subpages. Then you'll have to include whatever library is out there for the accordion effect.
are there docs on creating a autonav template?
you should be able to set:
'display pages' = 'at top level'
'sub pages to display' = 'display all'
'sup-page levels' = 'display all'
and then use css (and/or js) to handle display of the sub lists to create dynamic menu. Might not be the method you invisioned, but it'd work. :)
'display pages' = 'at top level'
'sub pages to display' = 'display all'
'sup-page levels' = 'display all'
and then use css (and/or js) to handle display of the sub lists to create dynamic menu. Might not be the method you invisioned, but it'd work. :)
yeah, renic's right, you could just use the existing markup for the autonav too, and then I suppose you'd include the js from the theme's header.php file or something.
If you were going to make a template, it's the same on every block. Just copy the blocks view to:
blocks/autonav/templates/accordianTemplate.php
...and then make the changes you need. Best of luck.
If you were going to make a template, it's the same on every block. Just copy the blocks view to:
blocks/autonav/templates/accordianTemplate.php
...and then make the changes you need. Best of luck.