Overriding Fordson templates

Overriding Fordson templates

by olivier Dechepy -
Number of replies: 1
I've created a child theme of fordson to override certains parts, and keep the Fordson capabilities and upgrade possible.
I've successfully overriden the login page, but i can't seem to override correctly the navbar : 

I want to remove the 2 buttons "go to site admin" and "goto Edit mode" and put them somewhere in the header : so another template.
{{{output.teacherdashmenu}}} and {{{output.edit_button_fhs }}}

In order to do so, 
  • I duplicated the navbar.mustache from Fordson in my theme and removed the code for the 2 buttons in mine.
  • I added the code in the header.mustache (copied from Fordson) in my theme

But there is no change after that : the 2 buttons are still called from Fordson's theme.

What did I miss here ?
These elements are not called through $this->render_from_template(...) so i don't have to add theme anywhere in the renderers.

Thank you in advance
Average of ratings: -
In reply to olivier Dechepy

Re: Overriding Fordson templates

by olivier Dechepy -
To be more explicit : 
In the Fordson core_renderer i have two methods teacherdashmenu and edit_button_fhs.
I don't need to change them, so in my core_renderer, that overrides Fordon's, i don't need to change anything.

class core_renderer extends \theme_fordson\output\core_renderer 

Then in Fordson theme navbar.mustache
...
{{{ output.teacherdashmenu }}}
{{{ output.edit_button_fhs }}}
...

I changes nothing : i want to override it


So in my theme navbar.mustache
...
I removed the 2 outputs
...

The buttons should not be shown in the navbar

And in my theme header.mustache I add the 2 outputs 
...
{{{ output.teacherdashmenu }}}
{{{ output.edit_button_fhs }}}
...


But still, the buttons don't change place : Moodle is still using Fordson's navbar.
I don't see why.