Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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.
Comment | File | Size | Author |
---|---|---|---|
#1 | expanding_nolink_menu_items-2207073-1.patch | 794 bytes | jamesdixon |
Comments
Comment #1
jamesdixon CreditAttribution: jamesdixon commentedHere 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.
Comment #2
jamesdixon CreditAttribution: jamesdixon commentedComment #4
vuilThe patch is already committed. @jamesdixon and @robbdavis were credited on it. Thank you!
Comment #6
vuilComment #8
vuil