Adaptable - add button to menu

Re: Adaptable - add button to menu

by Gareth J Barnard -
Number of replies: 1
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers
Yes, just add the PHP output to the template context that is used to render the appropriate Mustache template.
In reply to Gareth J Barnard

Re: Adaptable - add button to menu

by António Godinho -
This way out of my league...
From the code I understand that all is placed into my $headercontext, and finally render at teh echo $OUTPUT->render_from_template('theme_adaptable/headerstyletwo', $headercontext);

My problem is place this inside the navbar like I use to with a disableded link, befor the edit and zoom buttons.
I can't just use something like this:
$headercontext['shownavbar']['hostname'] = "" . gethostname() . "";
beacuse the theme doesn't know it has to render this...

Also the docs at https://docs.moodle.org/dev/Templates weren't helpfull...

Can someone help me with this, please?