Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-70267

Course user profile has a different pagelayout to other profile pages

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.8.6, 3.9.3, 3.10, 3.11, 4.0
    • Fix Version/s: 3.9.4, 3.10.1
    • Component/s: Themes, UX
    • Labels:

      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');

       

        Attachments

          Activity

            People

            Assignee:
            gb2048 Gareth J Barnard
            Reporter:
            stuartlamour Stuart Lamour
            Peer reviewer:
            Farhan Karmali
            Integrator:
            Adrian Greeve
            Tester:
            Anna Carissa Sadia
            Participants:
            Component watchers:
            Bas Brands
            Votes:
            19 Vote for this issue
            Watchers:
            7 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              18/Jan/21

                Time Tracking

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 47 minutes
                47m