You are here

README.txt in Better Jump Menus 6

Same filename and directory in other branches
  1. 8 README.txt
  2. 7 README.txt
Install...
Normal procedure:
1) Place in modules/contrib/jump_menu
2) Enable at admin/build/modules or via drush.


Menus...
This modules runs from: any exsisting menu, from any parent item, to any depth.
Create the menu you want manually, via nodes, Taxonomy Menu, Auto Menu, etc.
A great place to easily find the menu ID number is the edit link within the
admin/build/menu area.


Placing...
This module will create a jump down block for each menu on your site.
These blocks are created to allow non-developers to make use of this module.

Additionally this module can be used by developers to place drop-down menus via
the nice clean output function. Though it's sacrilege, you can just place this
code in a block with PHP Input Format. However what you should do is create a
small module to provide the blocks you need.


Code...
jump_menu($menu, $parent, $btn = false, $maxDepth = 0, $choose = 'Select Now');

A hard coded specific menu would look something like this:
<?php
function MYMODULE_block($op = 'list', $delta = 0) {
  $menuName = 'YOUR MENU MACHINE NAME HERE';
  if(module_exists('jump_menu')) {
    switch ($op) {
      case 'list':
        $blocks = array();
        $blocks['mymodule_' . $menuName]['info'] = t('My Jump Menu');
        $blocks['mymodule_' . $menuName]['cache'] = BLOCK_NO_CACHE;
      }
      return $blocks;
      break;
    case 'view' :
      $data['subject'] = t('My Jump Menu Title');
      $data['content'] = jump_menu($menuName, 0, FALSE, 0, '-- Select destination --');
      return $data;
      break;
  }
}
?>

Recommendations...
Admin drop downs are pretty useful, either based on the Navigation menu or
better yet one created specificly for your various editor roles.

<?php
if(module_exists('jump_menu')) {
  echo jump_menu('navigation', 18, 'Go!', 0, 'Manage the Site');
}
?>

File

README.txt
View source
  1. Install...
  2. Normal procedure:
  3. 1) Place in modules/contrib/jump_menu
  4. 2) Enable at admin/build/modules or via drush.
  5. Menus...
  6. This modules runs from: any exsisting menu, from any parent item, to any depth.
  7. Create the menu you want manually, via nodes, Taxonomy Menu, Auto Menu, etc.
  8. A great place to easily find the menu ID number is the edit link within the
  9. admin/build/menu area.
  10. Placing...
  11. This module will create a jump down block for each menu on your site.
  12. These blocks are created to allow non-developers to make use of this module.
  13. Additionally this module can be used by developers to place drop-down menus via
  14. the nice clean output function. Though it's sacrilege, you can just place this
  15. code in a block with PHP Input Format. However what you should do is create a
  16. small module to provide the blocks you need.
  17. Code...
  18. jump_menu($menu, $parent, $btn = false, $maxDepth = 0, $choose = 'Select Now');
  19. A hard coded specific menu would look something like this:
  20. function MYMODULE_block($op = 'list', $delta = 0) {
  21. $menuName = 'YOUR MENU MACHINE NAME HERE';
  22. if(module_exists('jump_menu')) {
  23. switch ($op) {
  24. case 'list':
  25. $blocks = array();
  26. $blocks['mymodule_' . $menuName]['info'] = t('My Jump Menu');
  27. $blocks['mymodule_' . $menuName]['cache'] = BLOCK_NO_CACHE;
  28. }
  29. return $blocks;
  30. break;
  31. case 'view' :
  32. $data['subject'] = t('My Jump Menu Title');
  33. $data['content'] = jump_menu($menuName, 0, FALSE, 0, '-- Select destination --');
  34. return $data;
  35. break;
  36. }
  37. }
  38. ?>
  39. Recommendations...
  40. Admin drop downs are pretty useful, either based on the Navigation menu or
  41. better yet one created specificly for your various editor roles.
  42. if(module_exists('jump_menu')) {
  43. echo jump_menu('navigation', 18, 'Go!', 0, 'Manage the Site');
  44. }
  45. ?>