-
Bug
-
Resolution: Fixed
-
Minor
-
2.1.2
-
MOODLE_21_STABLE
-
MOODLE_23_STABLE, MOODLE_24_STABLE, MOODLE_25_STABLE
-
MDL-30132_master -
-
The profile page defaults to the mydashboard.php layout file when perhaps it should be using mypublic.php layout. This means any extra content added to the "my" page also appears on the profile page. See discussion http://moodle.org/mod/forum/discuss.php?d=172453#p825495
Set theme config.php file as below
$THEME->layouts = array(
|
...
|
'mydashboard' => array(
|
'file' => 'dashboard.php',
|
'regions' => array('side-pre', 'side-post'),
|
'defaultregion' => 'side-post',
|
),
|
'mypublic' => array(
|
'file' => 'mypublic.php',
|
'regions' => array('side-pre'),
|
'defaultregion' => 'side-pre',
|
),
|
...
|
}
|
Create theme layout files mydashboard.php and mypublic.php. Add extra content to the mydashboard.php layout file ie...
<div id="region-main-wrap">
|
<div id="region-main">
|
<div class="region-content">
|
<?php
|
echo $OUTPUT->dashboard_extra_content();
|
echo $OUTPUT->main_content;
|
?>
|
</div>
|
</div>
|
</div>
|
The extra content added to the mydashboard.php file appears on the profile page regardless of the associated layout file in the theme config.php array