Navigation buttons
Maintained by
Davo Smith
Add customisable navigation buttons (next/prev/etc.) to the bottom of each activity page (Moodle 1.9/2.0+)
Comments
Comments are no longer open for new posts. Existing comments remain available to read.
I am unable install/download latest version 2.2+ (Build: 2017051200) for moodle 3.2.3. .zip contains another zip, and that contain 1st zip. Please fix this issue.
I have been trying to install the navigator plugin in moodle 3.1, but when I tried to install this, the activity_modules and activity_results is missing in disk. And the plugin don't installed.
Check this error message:
The plugin "block_activity_results" is mistakenly installed in "$CFG->dirroot/blocks/navbuttons", The correct location is "$CFG->dirroot/blocks/activity_results"
Debug info:
Error code: detectedmisplacedplugin
Stack trace:
line 812 of /lib/upgradelib.php: plugin_misplaced_exception thrown
line 429 of /lib/upgradelib.php: call to upgrade_plugins_blocks()
line 1641 of /lib/upgradelib.php: call to upgrade_plugins()
line 677 of /admin/index.php: call to upgrade_noncore()
Can you help me about this problem?
Thank you!
Regards.
For the other part, making the next button detect that the next activity was not available, the only way I can think of working that would be to have each of the buttons call a special re-routing script that would take the current activity and then work out the next activity to go to at the point where the button was clicked - but that would have the problem that I wouldn't ever be able to remove the next / previous buttons when I didn't think there was a next / previous activity to go to.
Anyway, either of these will require extra development, something I'm can discuss if you have a budget for me to undertake during my day job, but which is unlikely to be done in my spare time.
The student enters a module. The next button does not point to the next module since they don't yet have access to it. Instead the next button skips the module. (We'd ideally like an option to just gray out the next button so that the student knows that they need to accomplish something before moving on).
Once the student has passed the quiz in the scorm module, we would ideally like the button to update. Now the student has met the requirements for the next module, but the 'next' button still skips the next module since it was created when the module was not available.
Are there any settings that fix this that I'm missing?
I've not re-checked recently, but I am not aware of any hook that would avoid the core change (otherwise I would have used it, instead of the core change).
If you have a custom theme, you could make a change there, instead of in outputrenderers.php
Thanks for the plugin, it works brilliantly on 3.1. Haven't tried on 3.2 but should work hopefully.
Just a thing I was wondering, is there any way the core code change for outputrenderes.php could be hooked as part of a plugin instead of doing it post installation?
(This is just to make it upgrade-safe and avoid doing code change for every install we do)
Let me know, thanks!
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.
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
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!
The table the plugin stores its data is defined here: https://github.com/davosmith/moodle-navbuttons/blob/master/db/install.xml