Any Menu Path

https://www.drupal.org/project/any_menu_path

This module allows you to put any relative path you'd like for a menu entry, even if the path doesn't exist on your site.

You might need this module for two reasons.

1) You either need to create menu items before the pages/paths are created. Helpful when you are building out new sites for which you haven't actually created the secondary pages yet, or if you want your menu to point to some path that will actually be redirected somewhere else (for which you've already set up a redirect).

This actually isn't why this module was created, but it will work for this.

2) You have a distributed system, with some paths being on one (non-Drupal, or different Drupal install) server, and the other on your current Drupal system. It's assumed that you have some sort of path redirection mechanism in place such as Varnish, nginx or The Big IP to redirect your request to the proper path. But you need to serve your menu from Drupal.

Why not just put an absolute path, you ask? When you put absolute paths, not only does it make it a pain for moving your Drupal site to other environments - but it also doesn't keep the proper base url when your site is serving up translated content. Ideally, http://example.com/your_sneaky_path would change to http://example.co.uk/your_sneaky_path when you changed to UK English (as an example).

Special Menu Items

https://www.drupal.org/project/special_menu_items

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.

Void Menu

https://www.drupal.org/project/void_menu

Void menu allows you to configure special values to tags for use in the Drupal 7 menu system. You can customize up to 10 different void tags with any value you wish and use them freely inside the Drupal menu system.

Several excellent modules exist already that may be more suitable for your needs including special_menu_items (http://drupal.org/project/special_menu_items) and menu_firstchild (http://drupal.org/project/menu_firstchild).

Both of these modules are excellent at what they intend to accomplish, however both are very limiting in what they can do. Void Menu seeks to satisfy a gap that exists in these modules, and inherently in the Drupal menu system itself.

Void Menu allows you to set custom href attributes for your menu items, which unlocks the potential to (among other things) invoke JavaScript functions from your menus.

Leave a Comment

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
To prevent automated spam submissions leave this field empty.
CAPTCHA
This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.
3 + 5 =
Solve this simple math problem and enter the result. E.g. for 1+3, enter 4.
Get reliable web hosting services

Recurring donation

Make Donation

  • Other: $

Donate now

Single donation

Make Donation

  • Other: $

Donate now