Moodle Plugins directory: Jump To Navigation | Moodle.org
Jump To Navigation
Blocks ::: block_jumpto_menu
Maintained by
Tim Williams
Adds a Moodle 1.x style "Jump To" menu to Moodle 2.x
Latest release:
8 sites
6 downloads
6 fans
Current versions available: 3
This block will provide a 'jump to' menu within Moodle 2.x, similar to that used by Moodle 1.x (much of the code has been borrowed from 1.x).
Once installed, the block can operate in a number of different ways :
- By default, the block will use some clever javascript to display the jump to menu below the login/out link, while hiding the actual block on the page when not in editing mode. If you place the block on a part of the page with no other blocks, you will probably find that you get an empty column. Users without javascript will see the menu inside a normal Moodle block.
- If you prefer to have the menu displayed inside a normal Moodle block, then change the global config setting.
- If you want the menu to appear on content pages which can't display blocks (eg framed HTML), or would prefer not to use javascript to place the menu, then you will need to modify your layout templates in order to display the Jump to Menu in the correct place. You can find out how to do this by looking at the instructions on our website.
Please check our website for the latest plugin releases.
Useful links
Contributors
Tim Williams (Lead maintainer)
Please login to view contributors details and/or to contact them
if (empty($CFG->framename)) {
$CFG->framename = '_top';
}
It looks like the $CFG->framename property was removed at some point, and atleast the _top value seems to work for me to replace it.
I installed the version for Moodle 2.0-2.3.
Unless I'm missing something here...
You can also switch off the javascrpt and have the menu displayed inside the block by changing the option on the blocks config page in the Admin settings.
Alternatively, if you download the plugin from my website instead of here, you'll find some additional instructions in the readme.txt which might help with your problem.
i was using the block and ran into problems with quotes. The javascript sent to the browser is not properly encoded/escaped and the script breaks if it encounters quotes. The menu would show for some courses and not for others.
I fixed it and thought would inform you to update the code.
Its a very simple - one line fix - just json_encode() the text you are sending to the browser
file: block_jumpto_menu.php
function: get_navmenu()
after you build the divtext variable, just json_encode() it - hope this helps
But it looks like the website for it: http://www.autotrain.org/misc/source/moodle2/jump_to/ is gone.
Do you have the instructions somewhere else?
http://autoview.autotrain.org/mod/folder/view.php?id=278
$plugin->component = 'block_jumpto_menu';
jsut above the $plugin->version .... line
It appears to work fine once that change is made, though I am still doing testing.