how to replicate webmonkey.com menus?

goosey - October 10, 2006 - 03:14

Hi,

I've currently got jstools/activemenus installed and it's great to be able to expand a parent menu item without reloading the whole page.

However, the clickable area which causes the expanding behaviour only appears on the left of the parent menu item. What I would really like is to be able to click anywhere on the parent menu item itself in order to get the expanding effect.

You can see the effect I'm after on http://www.webmonkey.com/ ... try clicking on the items in the "how-to library" menu.

I realise that you would have to disable the url link on the parent menu item in order to achieve this effect, but that's fine by me... most of the time it's just a summary page anyway, and I could always add an extra child menu item to cover that page if it was really needed.

Has anyone managed to modify activemenus to make the whole parent menu item clickable? Or is there another way I can achieve this effect without days of hacking?

Thanks, G

http://drupal.org/project/spa

Gurpartap Singh - October 10, 2006 - 06:51

http://drupal.org/project/spajax

This module provides many functions to use the Scriptaculous/Prototype AJAX library in Drupal. In terms of end user functionality, spajax.module itself only provides for animated Drupal status messages. But other modules will build on the API provided by this module.

The download directory also includes the SPAjax Test module which has some example code to create some example pages showing what can be done.

This module is currently in an early beta stage, so please post bugs or suggestions in the issue queue. Post comments here. The module is for Drupal 4.7.

Be sure to check out the S/P Magic Menus module which creates dynamic, expandable, and floating menus from Drupal's menu blocks.

http://drupal.org/project/spajax_mm

Thanks, that's awesome. It

goosey - October 10, 2006 - 07:46

Thanks, that's awesome. It does exactly what I want without any need to tweak anything! Brilliant!

Best of all, it uses your

goosey - October 10, 2006 - 07:52

Best of all, it uses your existing menus and themes... no need to write any extra css or customize any menus. Love it!

Good Luck! ;)

Gurpartap Singh - October 10, 2006 - 08:34

Good Luck! ;)

 
 

Drupal is a registered trademark of Dries Buytaert.