General developer forum

Blocks & Navigation

Picture of Marcel Behrmann
Blocks & Navigation


I am currently developing a Moodle Block.

While developing I  noticed that the lib.php of blocks does not get loaded on all pages.

As I need to extend the navigation of courses I need to get to register the navigation hooks.

Is there a way to get the following features without creating multiple plugins?

I need:

  • Display a block inside of courses
  • Extending the Navigation inside of courses
  • Global configuration
  • Instance configuration (block)
  • Display Reports (this is a plus, not a need)
Is there a single plugin way? If not, what plugin types should I use to use the least possible plugins?

Thanks and best regards.
Average of ratings: -