General developer forum

Header and menu in custom plugin

 
Picture of André Camacho
Header and menu in custom plugin
 

Hi everyone,

I'm creating a custom Moodle plugin for my organization (university).
This plugin is a gradebook report plugin. It's (future) goal will be to give students/group-responsibles/admin some visualisations (graphs) about the performance (grades) of the students enrolled in the course.

Anyway, it's my first steps with Moodle and my first plugin, and I'm having some difficulties with the documentation.

I've put my plugin on github : https://github.com/a-camacho/scgr

- - - - - - - - - - - - - - - - - -
Moodle version : 3.3
Plugin type : gradebook report
- - - - - - - - - - - - - - - - - -

My two first questions are :

  • How to correctly integrate the header in the plugin (image1 shows a correct header of a report, and image2 shows what I've got). To be exactly, I would like to show under the title the breadcrumbs to my plugin. In this case I should retrieve : Dashboard/Courses/course-1/Grade administration/Social comparison grade report/
  • How to correctly integrate the menu on the left sidebar. In other reports, the course menu shows before the general menu. In my plugin, only the general menu appears (and the course menu doesn't).

Check out index.php because I tried to integrate those two things, but didn't manage to do it. Some code might still be there.

If you have some ideas for my problems I would be very thankful !

Thank you very much,
André Camacho





 
Average of ratings: -