Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
3.8.6, 3.9.3, 3.10, 3.11, 4.0
Description
Issue:
When customising the user profile page through a theme we can set the mypublic pagelayout to use a custom layout file and associated mustache template.
// Profile page.
|
'mypublic' => [ |
'file' => 'profile.php', |
'regions' => array('side-pre'), |
'defaultregion' => 'side-pre', |
],
|
Unfortunately these customisations do no work for a users profile when viewed from a course page on a course (e.g. /user/view.php?id=3&course=4) , as that page sets the pagelayout to standard which creates inconsistencies.
Steps to reproduce:
In a course view a users profile.
Note the pagelaout is set to standard.
Acceptance criteria:
In user/view.php the pagelayout is the profile page layout (as it is in /user/profile.php):
$PAGE->set_pagelayout('mypublic');