Better Jump Menus


Screen shot 2011-08-03 at 1.10.37 AM.png

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:

COMING NEXT:

FEEDBACK WANTED:

Supporting organizations: 

Better Jump Menus项目的Drush安装命令:复制到剪贴板

注:个别模块仍需开启相关子模块。
周安装量: 
5195
维护状态: 
正在寻找项目共同维护者
开发状态: 
积极开发中

推荐版本下载:

版本下载地址发布日期发布说明翻译下载
7.x-1.4tar.gz (12.01 KB) | zip (13.18 KB)2012年6月7日发布说明简 | 繁 | 更多

开发版本下载:

版本下载地址发布日期发布说明翻译下载
8.x-1.x-devtar.gz (13.01 KB) | zip (16.06 KB)2013年10月27日发布说明简 | 繁 | 更多
7.x-1.x-devtar.gz (14.03 KB) | zip (15.34 KB)2013年10月10日发布说明简 | 繁 | 更多