3

I have been searching high and low for a module that integrates an accordion-style menu system in D7, similar to http://drupal.org/project/accordion_menu. Anybody know of one?

1

If the Accordion Menu module does what you need, consider helping the maintainer port it to Drupal 7. Here is an excerpt about it from the module's project page:

... will display a menu using a jQuery UI accordion effect.

Features:

  • Multiple menu blocks, each separately configurable
  • Menu source may be a Menu block sub-menu definition or a Drupal menu
  • Setting to render the header menu item as a non-link (to avoid conflict between the accordion effect and the link behavior)
  • Setting to not expand a header menu item even if it is in the active trail
  • Setting for scope (see drupal_add_js())
  • Settings for all published jQuery UI accordion options.
  • Theme suggestions and template
  • Multiple CSS classes including zebra, menu link ID, and count
| improve this answer | |
4

DHTML Menu is great and it should work for what you need. I haven't used the 7.x version yet but they have a stable release. Here is an excerpt about it from the module's project page:

... uses Javascript to reduce the number of page loads when using nested menus; this is particularly useful with Drupal's administration system.

Ordinarily in Drupal, in order to see the sub-items in a menu, you need to click the link of this item and wait for a full page load. After enabling DHTML Menu, clicking a menu link once will expand it to reveal its sub-items without reloading the page. A double-click on the item will load the page normally. Additionally, a cookie stores which menus are open and which are closed, so that the state of the menus remain consistent as you navigate around the site.

| improve this answer | |
  • 2
    The 7.x version works fine for me. – rfay Apr 26 '11 at 4:49
  • I prefer this over accordion menu, because this is automatically added to the existing menus (optionally you can disable). Also, it doesn't have styles overriden by jquery accordion css, like accordion menu. – timofey.com Oct 11 '12 at 2:28
1

Is jquery UI available for Drupal7 yet? You could hook a View into it easily to make your own accordion.

| improve this answer | |
  • Thanks for the insight, but I am a noob and looking for something out of the box. – user842 Apr 12 '11 at 4:18
  • Maybe try drupal.org/project/views_accordion, if you're a noob the first thing you should try out is views. It's kind of confusing at first but not too bad and well worth the trouble. – d3l3t3m3 Apr 12 '11 at 4:24
  • views accordion looks promising. However, can I define a menu through views? – user842 Apr 12 '11 at 4:34
  • A menu is a list of links, views can be a list of anything. – d3l3t3m3 Apr 12 '11 at 4:46
  • 2
    Jquery UI is shipped with Drupal 7 by default. – marcvangend Apr 12 '11 at 7:53

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy