Override Core Renderer (Moove)

Override Core Renderer (Moove)

by Lucio Santos -
Number of replies: 0

Hello everyone! I've been working with PHP for a long time, but completely new to Moodle and with some difficulties when trying to override the Moove Theme (2020110900) files, on Moodle 3.11.

Basically, I've created another theme that has the Moove as a parent:

$THEME->parents = ['moove', 'boost'];   

I also got the settings and everything is working fine. But now I need to change the "lang_menu.mustache" content. I tried to create a "templates" folder on my newly created theme, but it didn't work:

└── mytheme

    └── templates

          └── lang_menu.mustache

Then, I figured out that this file is being called on "moove/classes/output/core_renderer.php" with some functions like "$this->render_from_template('theme_moove/lang_menu', $context);". I guess it should be "theme_mytheme" so I created the same file structure on my own theme, but it was not overridden. I also tried to follow this https://docs.moodle.org/dev/Overriding_a_renderer, but without success.


I don't know what I'm doing wrong here, can you please help me? Thanks!


Average of ratings: -