Course Module navigation

Blocks ::: block_course_modulenavigation
Maintained by PimenkoClément Prudhomme, Sylvain Revenu, Jordan KESRAOUI
A block to show the users a summary (like a table of contents) of a course with section names and a list of all resources and activities. If activity completion is used in the course, course navigation block will display a circle (either empty or green)
Latest release:
1841 sites
101 fans
Current versions available: 6
Add this plugin to your favourites and star it on GitHub to support it!

With Moodle 4.0, a new feature has appeared: the "course index".

It is displayed on the left side of all courses. This course index is very similar to the "course module navigation" block. The only difference between the course module navigation block and the course index is that the names of the activities (mods) are truncated in the course index while the names are in full in the course module navigation.

It is for these reasons that Pimenko:

  • Has chosen to update the course module navigation block for Moodle 4.0 to ease the transition and platform updates.
  •  will probably stop maintaining this block in 2023 so as not to duplicate the course index in Moodle.

Course module navigation is a block developed by Pimenko that shows the users a summary (like a table of contents) of a course with section names and a list of all resources and activities (except URLs). 

One objective of this block is to present the course contents and section titles. 

- Clicking at section name will point to section area or section page (for example if you use a course format like one section by page).
- Clicking at resources and activites will display the page of the resource or activity.

This block automatically uses the names of the sections, as well as the names of the resources and the activities. When you use course module navigation, we recommend to use pages to add videos or contents in order to be able to view all resources in the list of the block. If you use labels, contents will not be displayed in course navigation, unless you explicity select this in the plugin options. In case you want to display the course module navigation on all pages of the course (main, activities, resources), make sure to check permission of the block and display it on "every page".

== Last release is compatible with Moodle 3.11and fix some issues ==

  • Fix Travis
  • Fix an issue were section with hidden activities was displayed
  • Sections without modules will no longer be displayed
  • Sections with only hidden modules will no longer be displayed for all users
  • Sections / activities with restricted access will no longer be displayed

== About activity completion ==

If activity completion is used in the course, course navigation block will display a circle (either empty or green) to display the state of completion.

== 4 Options == 

- When clicking on the title : 'Displays the menu' or 'Goes to that page'.

- Show / hide labels

-Display all tabs collapsed / not collapsed

- Display sections titles and resources/activities / Show only titles

Presentation of course module navigation
Course module navigation presentation

How to add course module navigation in a Moodle course ?

Add course module navigation


Screenshot #0
Screenshot #1
Screenshot #2
Screenshot #3


Clément Prudhomme (Lead maintainer)
Sylvain Revenu: Lead maintainer / developer
Jordan KESRAOUI: Maintainer, developer
Bas Brands: Initial developer
Minh Hanh NGUYEN: Moodle expert
Please login to view contributors details and/or to contact them

Comments RSS

Show comments
  • Pimenko
    Tue, Oct 31, 2017, 6:40 PM
    Hi Niall,
    We just update the plugin for Moodle 34 and fix ampersand bug. Hope you like this new release.
  • Wed, Nov 22, 2017, 11:29 PM
    Bonjour, est-il possible d'afficher ce bloc par défaut pour tous les cours, par défaut ?
    A ce jour, je ne peux que les ajouter un par un pour les cours existants.
    Merci !

  • Pimenko
    Thu, Nov 23, 2017, 7:12 PM
    Bonjour Philippe,

    Vous pouvez réaliser ce type de chose mais cela n'est pas lié au plugin en lui. Il faut intervenir sur les réglages de Moodle pour modifier les blocs par défaut qui apparaissent lors de la création de cours ou dans les cours exisrtants.

    1. Pour les futurs cours / ajouter le bloc dans les cours qui seront créés

    Vous pouvez effectuer ce réglage dans le fichier "config.php" de votre dossier Moodle.

    Par exemple, vous avez parfois dans votre fichier config.php :
    // $CFG->defaultblocks_topics = 'participants,activity_modules,search_forums,course_list:news_items,calendar_upcoming,recent_activity';
    Ce code dit que pour le format de cours "thématique", les blocs listés seront affichés dans le cours (partipants, activités du cours, etc.)

    Si vous souhaitez afficher le block "sommaire de cours" dans les formats de cours "thématique, hebdomadaire, informel" par défaut, il faut modifier le code de la manière suivante :
    $CFG->defaultblocks_social = "course_modulenavigation";
    $CFG->defaultblocks_topics = "course_modulenavigation";
    $CFG->defaultblocks_weeks = "course_modulenavigation";

    2. Pour les cours existants
    Vous pouvez suivre la même procédure. En plus vous devrez utiliser le script qui existe dans Moodle pour réinitialiser tous les cours. Attention, cela aura pour effet de refaire la mise en page de tous les cours et d'éventuellement supprimer les blocs existants.
    Vous trouverez les explicaitons pour effectuer cette manipulation ici (partie Réinitialisation de la disposition des blocs des cours existants) :

    En espérant que cela réponde à votre question

  • Thu, Nov 23, 2017, 10:56 PM
    Merci pour cette réponse !
    Ce plugin remplace le bloc navigation, qui ne me convenait pas.
  • Thu, Jan 4, 2018, 7:41 PM
    Great plugin - one ommision for me. It would be great if we could have the ability to add custom links to the menu. I want to have a link that redirects back to a specific main course page, and I can only do this with custom links, otherwise I have to add in a custom HTML block too on each page to do this which isn't ideal.
  • Fri, Jan 19, 2018, 10:53 PM
    Great plugin, though i have a few comments/wishes:
    - ability to hide activities/resources from the list (e.g. display only activities but not resources, or even more granular)
    - ability to work with Flexible Sections Format, which allows to have nested sections. currently it lists all subsections on top level of the tree.

    thanks for the efforts, it's really cool!
  • Pimenko
    Sat, Jan 20, 2018, 5:28 PM
    Thank Simon and Pavel for your feedback.
    About possibility to add "custom links", currently we prioritized simplicity so that the plugin is easy to use/understrand by everyone. We can try to see how add custom link but I think it's complicated to offer this option in a simple way and keep the plugin simple.
    @Pavel : About Flexible Sections Format, we don't use this plugin but we can try to check that.

  • Thu, Feb 15, 2018, 9:14 PM
    Hi Clément: First of all, amazing plugin, it fits perfectly. We re trying it in a Moodle installation for a National University in Argentina. The idea is to offer something a bit different to the students, in comparison with the default Moodle elements. That’s why we mainly chose your plugin.

    My question is whether there is a way to color randomly each navigation section background (button) with css? to "promote" the navigation course with colors. My PHP knowledge is initial, but if you guide me a little bit where to try it I will definitely work on it.

    Thanks in advanced,

  • Wed, Nov 14, 2018, 12:39 AM
    Bonjour Clément,
    je ne sais si mon souci vient d'un mauvais réglage ou d'interférence entre js sur ma plateforme.
    J'ai constaté que lorsque je suis sur une activité, le sommaire ne se déplie pas afin de voir où je suis.
    J'ai indiqué "oui" pour déplier les tabs dans les réglages.
    Merci de votre réponse.

    Version moddole 3.5.1+
  • Tue, Nov 20, 2018, 11:31 PM
    Bonjour Hélène,
    nous n'avons pas constaté de bugs de notre côté par rapport à votre cas d'utilisation.
    Nous pensons que c'est probablement un soucis de réglage dans les paramètres du plugin ( Administration du site > Plugins > Blocs > Sommaire du cours ).

    L'option :

    Déplier les tabs
    block_course_modulenavigation | togglecollapse

    Est-elle bien sur "non" ?

    Dans le cas contraire, vous pouvez tenter d’inspecter la page avec Chrome (clique droit sur la page puis inspecter) et voir s’il y a des erreurs dans l’onglet “console”.

    Revenu Sylvain - Digidago Team
  • Thu, Apr 16, 2020, 10:54 PM

    when I check the "Show the current section only" box, every topic in the block links to the last course section (i.e. last topic). Is it possible to solve this?
  • Fri, May 1, 2020, 4:13 AM
    Hey, thanks a lot for the plug-in, it looks great.

    (I'm using the translator)

    I have a question, I organize the courses with activities that have restricted access by qualification.

    and with labels that have buttons to activities that are hidden but available.

    I was looking for a navigation plugin that can show the student a complete overview of the course, showing all activities even if they are not yet accessible because they are restricted or because they are hidden but available.

    Do you think the plugin will ever be able to do that?
  • Sat, May 2, 2020, 4:28 PM
    Hi there, this plugin is fantastic. Would you consider adding the ability for clickable labels e.g. I can click on the label in TOC and it will navigate to the appropriate section of the page? I don't need the documents or activities showing just the section names and labels? Appreciate the help.

  • Wed, Jun 2, 2021, 4:45 PM
    nos cours sont faits avec le format de cours flexsection; chaque section est accessible à la condition d'avoir effectué une activité quiz. Donc, logiquement, les section apparaissent dans le plugin quand on a réalisé cette activité.
    Depuis la dernière mise à jour du plugin, les profils formateur et gestionnaire n'ont plus accès aux sections en accès restreint par le plugin, qu'ils aient effectués ou non l'activité obligatoire.
    Y a t-il un moyen de corriger cela ?
    En vous remerciant, cordialement.
  • Thu, Jun 3, 2021, 8:13 PM
    Bonjour Helene,

    Effectivement nous avons relevé ce problème avec le dernier patch.

    Nous publierons bientôt une version corrective smile

1 2 3
Please login to post comments