Dear all,
I have been asked to edit the custom menu bar (the horizontal bar whose menu items in Moodle 2.2 you can create and edit using the 'Theme settings' option).
We want that for the frontpage and most of the courses, students and staff can see the current items:
https://learning.health.org.kw/
Home, PG Programme Course, What is new, etc..
However, there will be some specific courses, all of them included under a category called 'MSc Dissertation Portal', for which we want to show a specific custom bar ovewritting the items in the general custom bar.
I have looked into the property of the menu items using the dom inspector of Firebug:
<a href="http://www.dasmaninstitute.org/kuwait-scotland-education" title="PG Programme Course" class="yui3-menuitem-content" role="menuitem" tabindex="-1" id="yui_3_4_1_1_1369737400059_384">PG Programme Course</a>
so there seems to be a yui class.
I found this thread, but not of the answers are relevant to my case:
https://moodle.org/mod/forum/discuss.php?d=171462
We use a customised theme which is based on 'canvas' and 'based'
Following this tutorial:
http://docs.moodle.org/dev/Themes_2.0_extending_the_custom_menu
It looks that the best way of achieving my goal is extending the core_renderers methods of Moodle by adding a new renderer for the theme that overwrites the general menu bar when a user logs in specific courses (all the courses belonging to the MSc Dissertation Portal category) adding its own menu items.
However, this way looks a bit complicated to me, since I don't master all the php functions in Moodle.
I would like to ask the community if there is any easier way of having a different custom menu bar for the courses in an specific category.
Thank you very much for your advice.