Using menu token I have created a menu as shown in figure


I also have sub-menu items for this menu. Whenever the user clicks on this menu, the page is being refreshed (which is the obvious behavior), but I don't want any sort of action on the menu. In simple HTML we can do my simply using href="#", but Drupal is not allowing to set the Path of the menu to #. Is there a way to do it?
I also tried Menu attributes to do it, but I seem to be missing something.


Yes drupal doesn't suppport # in menu_links, You might get some clues here - http://drupal.org/node/325533

  • +1 thanks for sharing the link. I found the solution :) All I needed to do is just change the menu path to [node:url:absolute]# (just appended # after the path). And it solved my problem :)
    – AjitS
    Jun 7 '12 at 10:45

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.