Other: Navigation buttons

Maintained by DavoDavo Smith
Add customisable navigation buttons (next/prev/etc.) to the bottom of each activity page (Moodle 1.9/2.0+)
381 sites
21 fans
Current versions available: 4

Travis build status

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.


  1. Download the file and unzip it somewhere convenient.
  2. On your server, in the 'blocks' folder, create a subfolder called 'navbuttons'
  3. Upload all the files inside the 'davosmith-moodle-navbuttons-???????' folder to this new 'navbuttons' folder on your server.
  4. Log in to your Moodle site as an administrator and click on the 'Notifications' option in the Admin settings block.
  5. 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).
  6. Add the block to a course (turn editing on, select 'Navigation Buttons' from the 'Blocks - Add' menu)
  7. Customise the button appearance by clicking on 'Edit the Navigation Button settings' in the newly created block.
  8. 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:


Screenshot #0


Davo Smith (Lead maintainer)
Please login to view contributors details and/or to contact them

Comments RSS


  • Picture of Brannon Carter
    Fri, Mar 15, 2013, 8:21 PM
    yep, got the latest version. Here is line 258 from the 'footer.php'

    $iconfilename = array_shift(array_values($files))->get_filename();
  • Davo
    Fri, Mar 15, 2013, 8:23 PM
    You can't have the latest version from github, here is the equivalent line in the latest version: https://github.com/davosmith/moodle-navbuttons/blob/master/footer.php#l263
  • Picture of Brannon Carter
    Fri, Mar 15, 2013, 8:44 PM
    that's weird. I checked right before I sent the last post and the github 'version.php' file and the one in my site had the same version and build number, now your github 'version.php' file has a completely different build number. Let me load this newer version and give it a run.
  • Davo
    Fri, Mar 15, 2013, 8:47 PM
    It is not the version number or build number you needed to check. I had this reported about a month or so and fixed it, but only changed the line of code, not the version number.

    I realise that I didn't push the fix out to Moodle.org, so now I've updated the version number and pushed it here as well.
  • Picture of Brannon Carter
    Fri, Mar 15, 2013, 8:56 PM
    Davo, thanks a million. That fixed the issue. Sorry for being a pest. Thanks for the great plugin. Moodle is a little hard to navigate for newbies.
  • Davo
    Fri, Mar 15, 2013, 8:57 PM
    Glad it's working for you now - I've pushed the new version out to Moodle.org now (but the folder name is a bit messed up, unfortunately).
  • Picture of julie mcloughlin
    Tue, Apr 2, 2013, 2:09 PM
    hi there, I have been using the nav button plug in for some time, and now it has disappeared on all of my courses. I have the latest version of moodle and am hosted by pukunui. They say that they will have to charge me to investigate why it has disappeared, can you help me with tis?
  • Picture of julie mcloughlin
    Tue, Apr 2, 2013, 2:14 PM
    Dave, I have commented on the previous page - also, I have a custom theme of that helps - I did not develop it myself - pukunui developed it?
  • Davo
    Tue, Apr 2, 2013, 5:17 PM
    Julie - I've updated the README file ( https://github.com/davosmith/moodle-navbuttons/blob/master/README.txt ) with some problem-solving instructions (at the end of the file). Please work through them and let me know if it still isn't working (including your Moodle version number in the details).
  • Picture of julie mcloughlin
    Wed, Apr 3, 2013, 11:39 AM
    Thanks so much Davo my host company managed to get it working again!! Cheers
  • Germán and temudgin
    Sat, Jul 13, 2013, 2:57 AM
    Hi Davo,
    The Navigation buttons block is great.

    I think it would be even better if it could be directly installed from the web brower via the Administration block > Site administration > Plugins > Install add-ons option in Moodle 2.5

    All that would be needed is for the folder currently named 'davosmith-moodle-navbuttons-???????' to have the name changed to 'navbuttons' in the download package for Moodle 2.5 .

    This way, admins without root access could esily install this block.

    Thanks again for another great Moodle add-on.
  • Germán and temudgin
    Sat, Jul 13, 2013, 3:25 AM
    Hi Davo,
    I was translating into mexican spanish the Navigation Button block and I found two strings with the same content:

    lastactivitysection has "Last activity in section"
    lastsection also has "Last activity in section"

    And I think the last string could perhaps be:
    lastsection "Last section"

    But I am not a programmer nor a native English speaker.

  • Davo
    Sat, Jul 13, 2013, 4:39 AM
    Unfortunately, due to the small core modification needed to make this plugin work, it has been reclassified into the 'other' category on moodle.org (it was originally uploaded as a block). This breaks the download folder naming, the online translation, automatic install and update (and probably other helpful features). I've raised this issue before, but I've not yet seen a solution.

    The last section link is probably a mistake, can you check if this has already been fixed in the github version?
  • Germán and temudgin
    Mon, Jul 22, 2013, 10:20 PM
    Thanks Davo,
    I apologize for having posted twice the same (old) issue.
    There are many plugins now classified as 'other' which share the same problems you described, and the translator can not translate any of them.
  • Picture of Sarah Jane
    Mon, Aug 12, 2013, 9:09 PM
    Hello Davo

    I have been using the navigation buttons for some time now but since my upgrade (don't know if this has anything to do with it) the navigation buttons are lost on one of my courses. All others are fine but this one and no matter what I do I can't seem to get it back - there is no error just no navigation buttons would you have any ideas to help me please?
Please login to post comments