Flat Navigation - Topics and Weeks only

Flat Navigation - Topics and Weeks only

eftir Chris Kenniburg -
Number of replies: 2
Mynd av Plugin developers

Hello All,

I was hoping someone might know of a way I can utilize the flat navigation to generate a new menu which only includes course topics or weeks?  This would be exactly what is shown in the Nav Drawer but only contain the weeks and topics and be able to send it to a mustache template to be included in a theme.

Would anyone like to help me out in making this?  It is beyond my skill set.  

Thank you for considering,

Chris

Average of ratings: -
In reply to Chris Kenniburg

Re: Flat Navigation - Topics and Weeks only

eftir Alexander Bias -
Mynd av Core developers Mynd av Peer reviewers Mynd av Plugin developers

Hi Chris,

just a quick feedback:

The topics and weeks are filled into the flat_navigation at  https://github.com/moodle/moodle/blob/master/lib/navigationlib.php#L3748. At https://github.com/moodle/moodle/blob/master/theme/boost/layout/columns2.php#L54, the flat navigation is filled into the nav drawer and rendered later.

Perhaps you are able to extract the relevant parts from lib/navigationlib.php into your theme and fill a custom mustache template with it.

Thanks,
Alex