dbnschools / moodle-theme_fordson

Theme for Moodle 3.3+
43 stars 40 forks source link

More details on how to customize dashbord's "user panel" #103

Closed vanoir closed 4 years ago

vanoir commented 4 years ago

Hello,

I'm developing a Moodle and I'm having trouble customizing this dashboard panel (see attached image). How do I place links other than "message"? Can I choose not to show the student's full name? Where should I customize to configure this?

Captura de Tela 2020-03-02 às 18 40 31
dbnschools commented 4 years ago

I would simply use CSS to hide it on the Dashboard page if you do not need it. #page-my-index .header-button-group a#message-user-button { display: none; }

vanoir commented 4 years ago

Thanks for the quick response. Actually, I would like to add more stuff and not remove it!

dbnschools commented 4 years ago

If you want to add more stuff then you will have to re-write the renderer that generates that area of the page. Offhand, I am not sure how to guide you on this.

dbnschools commented 4 years ago

I am going to guess you might find some luck starting with the core_renderer.php and the full_header function as a starting point.

vanoir commented 4 years ago

That was all the answer I needed. Thank you sir. Hopefully I will collaborate with you guys here!

dbnschools commented 4 years ago

We always like to see any improvements people make. We'd love to see what you come up with. Keep us informed. Thanks!