Moodle plugins directory: Navigation buttons | Moodle.org
Navigation buttons
Blocks ::: block_navbuttons
Maintained by Davo Smith
Add customisable navigation buttons (next/prev/etc.) to the bottom of each activity page (Moodle 1.9/2.0+)
Latest release:
729 sites
247 downloads
44 fans
Current versions available: 4
Navigation buttons (for Moodle 1.9 / 2.0+)
This block adds customisable navigation buttons (first/previous/next/etc.) to the bottom of each activity/resource page in a course.
It is based on an idea from Penny Mondani: http://pennymondani.com
Thanks also to the US company that sponsored the development, who wish to remain anonymous.
Installation:
- Download the file and unzip it somewhere convenient.
- On your server, in the 'blocks' folder, create a subfolder called 'navbuttons'
- Upload all the files inside the 'davosmith-moodle-navbuttons-???????' folder to this new 'navbuttons' folder on your server.
- Log in to your Moodle site as an administrator and click on the 'Notifications' option in the Admin settings block.
- If you are running a version of Moodle earlier than 3.10, you need to make a small change to one Moodle core file to make this work (the change is different between Moodle 1.9 & Moodle 2.0 - see the included README.txt for details).
- Add the block to a course (turn editing on, select 'Navigation Buttons' from the 'Blocks - Add' menu)
- Customise the button appearance by clicking on 'Edit the Navigation Button settings' in the newly created block.
- Check the message at the bottom of the screen (under the 'Save changes' button) - it should read "Navbuttons self-test: required core modifications have been completed successfully". If not, then go back to step 5 above and check carefully.
Note: The block is only visible to users who are able to edit courses modules. Deleting the block will remove the navigation buttons (they can also be disabled through the settings).
For a quick demo, there is a screencast available here:
Useful links
Contributors
Davo Smith (Lead maintainer)
Please login to view contributors details and/or to contact them
I want to add navigation buttons to all the courses by default. Could you please guide me what to do?
"Navbutton self-test: The line "$output = draw_navbuttons().$this->container_end_all(true);" has not been correctly added to outputrenderers.php - see README.txt for further instructions"
But... in the backend, when I click on 'courses' to go to a specific course, I get the following error:
Debug info:
Error code: codingerror
Stack trace:
line 5721 of /lib/accesslib.php: coding_exception thrown
line 7338 of /lib/accesslib.php: call to context->get_course_context()
line 48 of /blocks/navbuttons/block_navbuttons.php: call to context_block->get_course_context()
line 288 of /blocks/moodleblock.class.php: call to block_navbuttons->get_content()
line 230 of /blocks/moodleblock.class.php: call to block_base->formatted_contents()
line 971 of /lib/blocklib.php: call to block_base->get_content_for_output()
line 1023 of /lib/blocklib.php: call to block_manager->create_block_contents()
line 473 of /lib/outputrenderers.php: call to block_manager->ensure_content_created()
line 52 of /theme/mytheme/layout/columns3.php: call to core_renderer->standard_head_html()
line 1015 of /lib/outputrenderers.php: call to include()
line 945 of /lib/outputrenderers.php: call to core_renderer->render_page_layout()
line 59 of /course/index.php: call to core_renderer->header()
If I go back and click on ' courses' again, the error is gone. This happens every time I click on 'courses'. I use Moodle 2.9.1+
I really love and need this navigation buttons, can someone help me on this?
thanks
Thank you for your plug-in. I have looked to integrate this kind of navigation during a long time. It works fine with my Moodle 3.0.
Best regards.
The table the plugin stores its data is defined here: https://github.com/davosmith/moodle-navbuttons/blob/master/db/install.xml
Firstly good job on the plugin.
We have various Moodle installs, all v3+ (3.0, 3.2, etc). Would your this plugin work for these versions?
If it will work for v3+, then in order to have previous/next buttons across activities of all course, would we need to the block for each course/activity or is there a setting that could be configured for all activities across all courses?
Your earliest response is greatly appreciated.
Thanks!
This block only works on a per-course level, in theory it would not be that hard to extend it to work across the entire site, but I've never sat down and rewritten the code to work that way.
Davo
I will give it a go and see how it turns out. All we need is for students to scroll through activities using "Prev/Next" links from within the activity and not go to the Course front page every now and then to move to the next activity.