Hello there,
I would like to customize a bit the profile page (removing some sections, adding others), and I assumed the way to proceed was to override the myprofile renderer. However, when I try to do it, my site shows a 503 error without any error logs. Can someone give me any hints on what I am doing wrong?
The way I tried doing it was adding this to config.php in my theme:
$THEME->rendererfactory = 'theme_overriden_renderer_factory';
And this to my renderers.php:
use core_user\output\myprofile\tree as tree; use core_user\output\myprofile\renderer as renderer; class theme_custom_core_renderer extends renderer { public function render_tree(tree $tree) { return parent::render_tree($tree); } }
Oh, and I am using Moodle 3.0.