How can I add a nav item to courses

How can I add a nav item to courses

by Whata Brain -
Number of replies: 1

I'm trying to create a plugin which is accessible from the sidebar navigation in courses (Participants / Competencies / Grades / etc). I've created a block plugin and followed the instructions on the moodle dev site to add nav items. However, what the docs call "navigation" is really "breadcrumbs." Also, my plugin's code isn't even executed on the course page. If I add an error_log(), it's output on the site config pages, but not on the course pages.


Should I be creating a different kind of plugin? Is there any way to do this?


Thanks!

Average of ratings: -
In reply to Whata Brain

Re: How can I add a nav item to courses

by Whata Brain -

I figured it out. I had the navigation callback defined, but hadn't realized I had to update the version, until I looked through the moodle code.


It would be useful to have a list somewhere of all the things that require a version update. It isn't obvious what's cached and what's not.