In some cases, menu items do not always link to a specific page. For example if you make use of the <nolink> feature of the special menu items module:

https://drupal.org/project/special_menu_items

It would be great if menu items which had the format of <a href="#">Placeholder Title</a> would expand to show their children.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

jamesdixon’s picture

Status: Needs work » Needs review
FileSize
794 bytes

Here is a patch we used to get this functionality going.

For those interested in doing this the way we did, we installed the special menu items module, and configured it so that the <nolink> menu items would have <a href="#"> as their base tag, as described in the module documentation:

"If you use module than require to output a link, go in /admin/config/system/special_menu_items and use <a> as the HTML tag. You can even use <a href="#"> if you need to."

Then when you set a <nolink> menu item, it will actually open and show the children after you apply the patch.

If you commit this please include robbdavis in the git authorship as well, as he contributed to the patch.

jamesdixon’s picture

Issue summary: View changes

  • ilchovuchkov committed b38a527 on 7.x-1.x
    Issue #2207073 by jamesdixon, robbdavis: Make DHTML Menu compatible with...
vuil’s picture

Status: Needs review » Fixed

The patch is already committed. @jamesdixon and @robbdavis were credited on it. Thank you!

vuil’s picture

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

vuil’s picture