Posted by netivajak on September 1, 2010 at 4:00pm
'Ello all
We've written a small module to allow users to relate/attach an existing node to a menu item. The nodes are then output in divs to a block so that they can be hidden and shown using css hover etc.
This can be done in node reference, templates etc, but our client wanted a quick and easy way of doing this. So we use ajax autocomplete for selecting the node and enabled this to be done on the menu edit.
Does this have an audience, or have we just solved a niche requirement?
Thanks
Jak
Comments
I don't quite get it... I
I don't quite get it... I guess I'd have to see. There are a lot of modules to relate nodes, but this sounds new if I understand it. I'm all for putting it in contrib if it is something new... even if it is fairly niche.
http://cleaver.ca
An example
Similar to how the Post Office navigation functions when you hover over a link: http://www.postoffice.co.uk
excellent
This sounds very interesting. We were just discussing this kind of functionality with a client. Keep us updated!
Maybe this could be developed further
If you can add a node content into to a menu item then maybe more can be gone before the content is added.
Have a look at this Drupal website's menu: http://www.openthemagazine.com/
Is there any quick way of doing these types of menus with your code?
Maybe we could build a view whose output content as sent to the menu item?
All the best,
Guy
Actually, are not they tabs
Actually, are not they tabs instead of menu items?
This type of menu is commonly
This type of menu is commonly called a "mega menu" in web design. Searching for that, you'll find plenty of examples.
Instead of using nodes, I would suggest just sticking with standard menu items so that the menu items can still be edited/rearranged as easily as normal, but using the Drupal theming layer to make them behave better than just a list. I believe I took this approach on a site I worked on, but I can't recall which one it was at the moment…
The Boise Drupal Guy!