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...

bryanlewis
 
bryanlewis replied on at Permalink Reply 1 Attachment
bryanlewis
I forgot to attach the image
bryanlewis replied on at Permalink Reply
bryanlewis
I need this for my next project and I'm at a lose on how to accomplish it.
Tony replied on at Permalink Reply
Tony
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.
bryanlewis replied on at Permalink Reply
bryanlewis
are there docs on creating a autonav template?
renic replied on at Permalink Reply
renic
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. :)
Tony replied on at Permalink Reply
Tony
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.