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

Default profile page uses page-layout "mydashboard" instead of "mypublic"

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 2.7.4, 2.8.1
    • 2.7.2, 2.8
    • Themes
    • MOODLE_27_STABLE, MOODLE_28_STABLE
    • MOODLE_27_STABLE, MOODLE_28_STABLE
    • git@github.com:ninelanterns/moodle.git
    • MDL-47391_master
    • Hide

      Fix: Change the page-layout from "mydashboard" to "mypublic"

      Line 41:

      admin_externalpage_setup('profilepage', '', null, '', array('pagelayout' => 'mypublic'));
      

      Show
      Fix: Change the page-layout from "mydashboard" to "mypublic" Line 41: admin_externalpage_setup( 'profilepage' , '' , null, '' , array ( 'pagelayout' => 'mypublic' ));
    • Hide

      Test:

      Add a new region "side-center" to a customised mypublic layout"

      In theme/mytheme/config.php:

      // My public page.
          'mypublic' => array(
              'file' => 'profile.php',
              'regions' => array('side-pre', 'side-post', 'side-center', 'side-admin'),
              'defaultregion' => 'side-pre',
          ),
      

      In theme/mytheme/layout/profile.php:

      echo $OUTPUT->course_content_header();
      echo $OUTPUT->main_content();
      //Add the new content area.
      echo $OUTPUT->blocks('side-center');
      echo $OUTPUT->course_content_footer();
      

      2. Edit the default layout: Site Adminisitration -> Appearance -> Default profile page

      Expected result: It should be possible add blocks to the side-center region

      Current result: The region does not appear (unless you also add it to the mydashboard layout)

      Show
      Test: Add a new region "side-center" to a customised mypublic layout" In theme/mytheme/config.php: // My public page. 'mypublic' => array ( 'file' => 'profile.php' , 'regions' => array ( 'side-pre' , 'side-post' , 'side-center' , 'side-admin' ), 'defaultregion' => 'side-pre' , ), In theme/mytheme/layout/profile.php: echo $OUTPUT ->course_content_header(); echo $OUTPUT ->main_content(); //Add the new content area. echo $OUTPUT ->blocks( 'side-center' ); echo $OUTPUT ->course_content_footer(); 2. Edit the default layout: Site Adminisitration -> Appearance -> Default profile page Expected result: It should be possible add blocks to the side-center region Current result: The region does not appear (unless you also add it to the mydashboard layout)

      When editing the default profile page /user/profilesys.php the layout is set to "mydashboard" instead of "mypublic" such that if you add extra block areas in the theme you cannot add blocks to these as default.

            jballard James Ballard
            jballard James Ballard
            Mary Evans Mary Evans
            Sam Hemelryk Sam Hemelryk
            Frédéric Massart Frédéric Massart
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.