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.
Easily display hierarchical select jump menus... from menus.
- Use core menus to display
<select>
jump menus! - Borrows the CTools builder API plugin.
- Includes a block for local menu tasks (like node edit tabs.)
- Use dummy items with Special Menu Items (empty optgroups.)
- Good looking dash and space indented hierarchy.
- Pre-built jump menu blocks (one for each menu).
- Configurable default UI text.
- When placed via code:
- Menu can start from ANY parent menu ID.
- Specify depth or leave as unlimited, think Menu Block.
- Choose instant action or custom go button text.
- Set your own text for "select destination"
Here's the function for placing jump menus programmatically. Though it's sacrilege, you can just place this code in a block with PHP input format...
// jump_menu($menu, $parent, $btn = FALSE, $maxDepth = 0, $choose = 'Select Now')
if (module_exists('jump_menu')) {
echo jump_menu('navigation', 2, 'Go!');
}
RECOMMENDED: use an awesome jQuery Plugin for display.
NOTES:
- Depth classes are placed in options for theming... when you know the browser (mobile). Also use CSS2 selectors to style options by value, eg:
#block option[value=myurl]
. - Special-case jump menu code *should* be used in a custom module, example in README.
- For non-coders, the last three parameters are optional.
- Tip: Use a parent of 0 to show the whole menu tree.
- Image shown has: depth one, parent zero.
- Drupal 6 has a CTools dependency.
- There's a similar (D6) Jump, with jump menus for taxonomy too but less rendering options.
- There's a similar (D5/6) QuickMenu, which includes block enabling by menu.
- Menu blocks are now (v1.4) cached per role. Local tasks are not cached. For more granular control and options like per-role-per-page see Block Cache Alter.
- Taxonomy may eventually be supported, for now see Taxonomy Menu to bring terms into menus.
AVAILABLE IN DEV:
- #1504520: Retain previous choice as "selected" menu item
- #1950556: Active and Active-Trail classes
- #2060567: Notice: Undefined index: query in _jump_menu_create_options()
- #1835776: Support for opening links in new window
- #1509688: Translated menus display all languages links
COMING NEXT:
- #1779576: Illegal Choice error when javascript is disabled
- #2088787: Jump Menus for Taxonomy Vocabularies
- #2107891: Drupal 8 version
FEEDBACK WANTED:
Supporting organizations:
Project information
- Seeking co-maintainer(s)
Maintainers are looking for help reviewing issues. - Module categories: Site Structure
- 1,218 sites report using this module
- Created by doublejosh on , updated
- Stable releases for this project are covered by the security advisory policy.
Look for the shield icon below.
Releases
7.x-1.4
released 7 June 2012
Works with Drupal: 7.x
✓ Recommended by the project’s maintainer.
Development version: 7.x-1.x-dev updated 6 Jul 2016 at 20:22 UTC