Changing dashboard layout in child theme

Changing dashboard layout in child theme

by Joanna Beaver -
Number of replies: 2
Picture of Plugin developers

Hello

I am creating a child theme of Boost in Moodle 3.9 but cannot override the dashboard layout. I have successfully overridden the navbar and footer but my new dashboard file doesn't seem to be applied.

I have created:

  • layout/mydashboard.php and added
    echo $OUTPUT->render_from_template('theme_pwa/mydashboard', $templatecontext);

  • templates/mydashboard.mustache
  • scss/mydashboard.scss

The scss is applying but no changes to the structure. Even if I change class names in the file they are not showing - I don't think it is using my files. Is there anywhere else I need to change this?

Best wishes

Jo

Average of ratings: -
In reply to Joanna Beaver

Re: Changing dashboard layout in child theme

by Gareth J Barnard -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers
Should work, don't know what you've done wrong, need to see all of the code.... Hang on 'mydashboard.php'?  Have you changed the theme config.php file $THEME->layouts array to have something like:

    // My dashboard page.
    'mydashboard' => array(
        'file' => 'mydashboard.php',

?
In reply to Gareth J Barnard

Re: Changing dashboard layout in child theme

by Joanna Beaver -
Picture of Plugin developers
I had not. I just did and all now loading perfectly. Thanks Gareth

smile
Average of ratings: Useful (1)