Special menu items is a Drupal module that provides placeholder and separator menu items.
A placeholder is a menu item which is not a link. It is useful with dynamic drop down menus where we want to have a parent menu item which is not linking to a page but just acting as a parent grouping some menu items below it.
A separator menu item is something like "-------" which is not linking anywhere but merely a mean to structure menus and "separate" menu items visually.
Menu item container provide similar functionality.
Shane Thomas made a video about special menu item.
Features
- User can create a new menu item and place either "" or ""
in the Path field, without quotes.
- When the menu is rendered the "nolink" item will be rendered similar to a
normal menu link item, but there will
be no link, just the title. Since version 1.3 you can change HTML tag used
for menu item.
- When the menu is rendered the "separator" item will be rendered as an item
which has no link,and the default title will be "-------". Since version 1.3 it is possible to
change both the HTML tag and title.
- Breadcrumb of "" will be rendered same as "" menu item.
- CSS class "nolink" is added to "" menu item.
- CSS class "seperator" is added to "" menu item.
- Compatible with the Sitemap module.
Compatibilities with other modules
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.
D8
This features is in core for >=8.2.0. Create menu without link by entering route: <nolink>
.
For more information see #1543750: Allow menu items without path
D6
D6 use "nolink" and "separator" instead of "<nolink>" and "<separator>" (without quotes).
The D6 code is not very clean. I do not have time to works on the D6 version. But I will commit patchs than was review and tested. If someone want to port the D7 way in D6 his more than welcome :).
Current maintainer
The maintainer can be contacted for paid customizations of this module as well as Drupal consulting and development.
Project information
- 49,602 sites report using this module
- Created by tamerzg on , updated
- Stable releases for this project are covered by the security advisory policy.
Look for the shield icon below.
Releases
Various fixes
Development version: 7.x-2.x-dev updated 20 Mar 2023 at 11:42 UTC