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 modified the outputrenders.php file as instructed in the readme file but mine still does not work. I am running Moodle 3.3 with the Adaptable 1.5.3 theme.
The output says 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
This is what I put in the php file:
public function footer() {
global $CFG, $DB, $PAGE;
// Give plugins an opportunity to touch the page before JS is finalized.
$pluginswithfunction = get_plugins_with_function('before_footer', 'lib.php');
foreach ($pluginswithfunction as $plugins) {
foreach ($plugins as $function) {
$function();
}
}
require_once ($CFG->dirroot.'/blocks/navbuttons/footer.php');
$output = draw_navbuttons().$this->container_end_all(true); {
// Change this line to enable the navigation buttons
}
$footer = $this->opencontainers->pop('header/footer');
Am I missing something? Please help. Thanks!
Warning: require_once(/.../moodledir/blocks/navbuttons/footer.php): failed to open stream: No such file or directory in /.../moodledir/lib/outputrenderers.php on line 1283
Fatal error: require_once(): Failed opening required '/.../moodledir/blocks/navbuttons/footer.php' (include_path='/.../moodledir/lib/pear:.:/usr/local/php70/pear') in /.../moodledir/lib/outputrenderers.php on line 1283
How can I safely uninstall the navigation buttons?
thanks,
jose
If you have any documentation then i can help look into it and let you know if i succeed so you can then add it to the plugin.
Thanks