Your Moodle version

Blocks: Simple Navigation Block

Maintained by it's me David Bogner
This block provides a navigation as it is often used on standard websites.
Moodle 2.0, 2.1, 2.2, 2.3, 2.4

This block shows a much simpler navigation than the standard Moodle navigation block. It is designed to be used on Moodle sites, that are also used as standard websites and not only as LMS.


Screenshot #0
Screenshot #1


it's me
David Bogner (Lead maintainer)
Please login to view contributors details and/or to contact them

Comments RSS

Show comments
  • Picture of Nick Rivers
    Tue, Jun 25, 2013, 10:41 PM

    When debugging is turned on I see this message:

    Function get_categories() is deprecated. Please use coursecat::get_children(). See phpdocs for more details.

    I changed the function to what is being suggested, but I just get some errors.

    Will this effect the block? Or should I not worry about this?
  • it's me
    Wed, Jun 26, 2013, 5:35 PM

    Moodle changed the navigation methods in core, the function get_categories will work without problems, it is only deprecated from Moodle 2.5 onwards. That should not be a problem, we will update the code, when we upgrade to 2.5 or 2.6, that will be in automn. Meanwhile you can use it without worrying about the warnings in dev mode.
  • Picture of Nick Rivers
    Fri, Jul 12, 2013, 2:32 AM

    Thanks, is there a simple way to add the topics too?
  • it's me
    Fri, Jul 12, 2013, 9:16 PM
    @Nick: As far as I remember, we wanted to keep it really basic and therefore we decided not to include the topics. This could be done, but is not on our agenda.
  • Picture of Jason Brisson
    Fri, Aug 9, 2013, 10:42 PM

    First thing first, thank you very much for your work on this great block!
    It does almost everything i need except for some minors exception that i would like to implement by myself.

    For exemple, id like the first category showed (not the home as i don't display it) to be open by default when the block is first displayed on the page.
    This category must stay «collapsible» like all the others.

    Could you please point me out what would be,in your opinion, the simplest way to acheve something like this?

    Again, thanks a lot!
    Best regards,
  • it's me
    Sun, Aug 11, 2013, 2:45 AM
    Hi Jay,

    I think, you can already achieve this in the settings (activate editing mode, then click on the settings icon of the block). Do not activate the "home" category, then it won't be displayed.

    Best regards,
  • Picture of Jason Brisson
    Tue, Jan 7, 2014, 4:31 AM
    Me again!!! sourire
    Are you planning on updating your nice block to moodle 2.6 any time soon?

    Thx a lot!!
  • Picture of Siumin Ang
    Mon, Apr 7, 2014, 4:55 PM
    Hi, I was unable to set the settings of this block under the 'Where this block appears' sections. When I selected 'Any page', it doesnt appear on all pages, and instead all of my information within the block disappears! Please help.
  • it's me
    Tue, Apr 8, 2014, 1:23 AM
    @Slumin Ang: I just uploaded a new version of the block. But the problem you describe, is more a moodle core bug, that should be resolved in the latest version of Moodle 2.5 and 2.6. What Moodle version are you using?
  • Peter Jonker
    Tue, Apr 22, 2014, 6:44 PM
    Tried installing in 2.6 however errors on YUI. Will there be an updated version?
  • it's me
    Wed, Apr 23, 2014, 5:01 PM
    @Peter Jonker: I installed and tested the block on 2.6 and can not reproduce any YUI errors. Could you give more details. Maybe the problem is caused by another plugin?
  • Picture of Can Ülker
    Thu, May 29, 2014, 11:22 PM
    Dear David,

    Thanks for this lovely plugin. However I couldn't figure out one thing. I've added the simple navigation button and it shows every course under a category to everyone. I couldn't figure out how to list courses to students which are enrolled to that particular course. I want to see all courses as an admin but also want users to ONLY see the courses they are enrolled to.

    Any help will be much appreciated.

  • My picture
    Thu, Jul 31, 2014, 12:06 AM
    Hello David,
    In your plug-in for the Moodle 2.2 version, I was able to crack the code so that it didn't create hyperlinks to categories, only for the courses.

    I have been trying to do the same for the version for Moodle 2.5 and 2.6 but I don't know how to alter this bit in renderer.php:

    // is it a category
    if ($mytype == 'category') {
    $myurl =$CFG->wwwroot.'/course/index.php?categoryid='.$myid;
    //$myname = "";
    $myclass_ul_open = '';
    $myclass_li = 'type_category depth_'.$mydepth.''.$mycollapsed.' contains_branch'.$mystartclass;
    $myclass_p = 'tree_item branch'.$myclass;
    $myopentag = '
    • ';
      $myclass_a = '';
      if ($myvisibility == 0) {
      $myclass_a = 'class="dimmed_text"';
      else {
      $myclass_a = '';

      The only thing I want is to display the categories names, but not hyperlinks as we only use the block to navigate to the courses.

      I would really appreciate it any advise.

      Thanks for sharing this block with the community
  • My picture
    Mon, Nov 16, 2015, 6:18 PM
    Hello again, David

    Thank you for maintaining the module for the next versions of Moodle. I am installing it in Moodle 2.9 as we use it so that our admin and academic staff can navigate through the different courses and categories.
    We don´t want that students or any authenticated users, except those in the global category of managers, can see the navigation block in the Default My Moodle or Frontpage.

    In Moodle 2.6, I was able to remove that permission. However, I cannot see the option in Moodle 2.9,. How do I set up the block permissions so that only users who have certain global roles can see the block?

    Thank you very much.
    Mari Cruz
  • it's me
    Fri, Nov 20, 2015, 1:17 AM
    Hi Mari Cruz,

    do you want to remove the capaility, that users can add the block to their "dashboard" page (former called my moodle)? On the frontpage: You want to add the block, but it should not be seen by certain users?
    In order to achieve that, I think that you have to configure global roles accordingly (like manager or "authenticated user").

    Kind regards,
1 2 3
Please login to post comments