-
Improvement
-
Resolution: Unresolved
-
Minor
-
None
-
4.1.5, 4.2.2, 4.3
-
MOODLE_401_STABLE, MOODLE_402_STABLE, MOODLE_403_STABLE
-
MDL-79319-main
-
-
-
-
3
-
C->HQ 2025 Sprint I2.2 Moppies
Themes always load the base layouts (boost) and ignore the layouts in their parent theme if there is a sequence parent => child in the theme..
The situation is the following:
- theme_parent inherit from boost but declares a new layout
- theme_child inherit from parent and uses the new layout
To reproduce:
- Install the two themes attached to this ticket (parent and child)
- Select child theme
- Go to /theme/child/testnonstandard.php page
- When the page is visited a debugging notice will be displayed that the layout doesn't exist.
Invalid page layout specified: standardnonav
|
line 2438 of /lib/outputlib.php: call to debugging()
|
line 2502 of /lib/outputlib.php: call to theme_config->layout_info_for_page()
|
line 1856 of /lib/pagelib.php: call to theme_config->setup_blocks()
|
line 1978 of /lib/setuplib.php: call to moodle_page->initialise_theme_and_output()
|
line 28 of /theme/child/testnonstandard.php: call to bootstrap_renderer->__call()
|
|
As a side note, it seems to be a bit redundant to declare boost as a parent of the child theme, but if we do not do it, the child theme does not work (there is not transitive effect of the $THEME->parents).
$THEME->parents = array(
|
'parent', |
'boost', |
);
|
- has a non-specific relationship to
-
MDL-77657 get_extra_scss_code: Order of scss is wrong (missing array_reverse)
-
- Closed
-
- has been marked as being related by
-
MDL-65708 Child themes no longer have base layouts loaded
-
- Closed
-
-
MDL-65645 Theme layouts do not inherit from parent theme
-
- Closed
-
-
MDL-77894 Allow themes to include original when overriding a template
-
- Waiting for peer review
-
-
MDL-61148 Overriding parent's theme values
-
- Closed
-