Closed (fixed)
Project:
DHTML Menu
Version:
6.x-3.0
Component:
PHP Code
Priority:
Normal
Category:
Support request
Assigned:
Reporter:
Created:
31 Jul 2007 at 16:15 UTC
Updated:
8 Dec 2008 at 19:34 UTC
Hi,
I'm trying to turn dhtml-menu into a horizontal menu, which only expands on click.
I'm nearly there, but I have one problem.
The parent items are not supposed to be links on my site, I've been looking at this theme snippet: http://drupal.org/node/143322 but I can't get it to work with this module.
I've noticed this function: function dhtml_menu_item_link($item, $link_item) which is commented out in the module - can this perhaps be used somehow?
thanks!
Comments
Comment #1
brmassa commentedMorten,
on
theme_dhtml_menu_item()function, there is a linereturn " <li class=\"leaf$active\">". menu_item_link($mid) ."</li>\n";it calls the
menu_item_link()to create the link. study how you can modify this function to not transform it into a link.regards,
massa
Comment #2
robotjox commentedthanks, man - I managed to do it by stripping away the link tag with a few php commands - I'm sure there is a more elegant way to do it, but it works :)
Comment #3
(not verified) commentedComment #4
vipconsult commentedSo why don't post your solution here and help other with simillar problem
Comment #5
vipconsult commentedComment #6
brmassa commentedChris,
its generally necessary for some sites. the standard behaviour, so, must be the same.
regards,
massa
Comment #7
vipconsult commentedYes , but mine needs this behaviour as well :)
I spent 3 hours , trying to figure this out , but no success yet.
Please Help !
Comment #8
brmassa commentedComment #9
Gus24 commentedDid anyone find the solution for Drupal 6?
Comment #10
cburschkaThe module now works in a completely different way, and what has been said above about commented out functions does not apply.
DHTML Menu has always worked and will always work with the Drupal menu tree, which so far does not support non-link items as far as I am aware.
However, it is now possible to use the theme layer to override menu link item theming, which means you can prevent items from being rendered as links if you so choose.