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

Lesson module: the editing interface won't expand to full screen when blocks are configured to "Display on page types: any page" and placed in the right-hand column

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide
      • create a lesson in a course with some content pages
      • create a block in the same course and configure it to "Display on page types: any page" and position it in the right hand column.
      • attempt to edit a page of the lesson.
      • verify that the block doesn't remain on the right of the page and that the editing interface expand to the right of the page.
      Show
      create a lesson in a course with some content pages create a block in the same course and configure it to "Display on page types: any page" and position it in the right hand column. attempt to edit a page of the lesson. verify that the block doesn't remain on the right of the page and that the editing interface expand to the right of the page.
    • Difficulty:
      Easy
    • Affected Branches:
      MOODLE_27_STABLE, MOODLE_28_STABLE
    • Fixed Branches:
      MOODLE_27_STABLE, MOODLE_28_STABLE
    • Pull Master Branch:

      Description

      As initially discussed in the forum post: https://moodle.org/mod/forum/discuss.php?d=276635

      Replication steps:

      • Create a block in a course and configure it to "Display on page types: any page" and position it in the right hand column.
      • Attempt to edit a page within a Lesson module that is a part of that course.
      • The block will remain on the right of the page preventing the editing interface from expanding right as expected. Form elements will then overlay blocks on the right of the page.

      The fix suggested by Jean-Michel Védrine in the forum post appears to have corrected the issue in my environment. Fix included here for ease of reference:
      --------------------------------------------------------------
      I looked at what other modules do when then want to move all the blocks to the left and it seems it's enough to add a single line in mod/lesson/editpage.php

      If you are able to edit the files on your Moodle server, you can try to add

      $PAGE->set_pagelayout('admin');

      after

      $PAGE->set_url('/mod/lesson/editpage.php', array('pageid'=>$pageid, 'id'=>$id, 'qtype'=>$qtype));
      --------------------------------------------------------------

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Fix Release Date:
                2/Feb/15