## Blocks: Course Module navigation

Maintained by Clément Prudhomme, Sylvain Revenu
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)
617 sites
49 fans
Moodle 3.0, 3.1, 3.2, 3.3, 3.4
Add this plugin to your favourites and star it on GitHub to support it!

Course module navigation is a block 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".

== 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

### Contributors

Clément Prudhomme (Lead maintainer)
Sylvain Revenu: Lead maintainer / developer
Bas Brands: Original author
Please login to view contributors details and/or to contact them

### Awards

• Thu, 19 Jan 2017, 7:39 PM
Bonjour Clément,

Super, en effet c'est l'option afficher les titres que j'avais modifiée sur "oui", par erreur du coup

Super plugin !
• Wed, 3 May 2017, 4:39 AM
Hello, great plugin. The down arrow doesn't appear in the tabs. How can I fix it?

Thank you,

Patricia
• Thu, 4 May 2017, 4:16 PM
Hi Patricia,

We did not update screenshoots of the plugin. But in the last version, we choose to delete the down arrow. So you can't fix that without modifiy the plugin.

Regards.
Clément
• Sat, 14 Oct 2017, 12:26 AM
We've noticed that if there is an 'ampersand' in the title of a Topic the navigation block displays & rather than just the & (ampersand). Any suggestions?
• Mon, 16 Oct 2017, 6:31 PM
Hi Niall,
Thank you for your feedback. We just discover this issue. We will look as soon as possible to fix this.
• Mon, 23 Oct 2017, 3:15 AM
Hi,
Thanks bro. it's a great plugin.
• Thu, 26 Oct 2017, 9:40 PM
Thank you SO MUCH; you just solved one of my biggest concerns in student navigation. I LOVE the fact that the block can remain visible on any kind of course page. <3
• Tue, 31 Oct 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, 22 Nov 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 !

• Thu, 23 Nov 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) : https://docs.moodle.org/3x/fr/Disposition_des_blocs

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

• Thu, 23 Nov 2017, 10:56 PM
Merci pour cette réponse !
Ce plugin remplace le bloc navigation, qui ne me convenait pas.
• Thu, 4 Jan 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, 19 Jan 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!
• Sat, 20 Jan 2018, 5:28 PM
Hi,
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, 15 Feb 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.