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

Main menu block shows incorrect content when displayed "throughout the entire site"

XMLWordPrintable

    • MOODLE_29_STABLE
    • MOODLE_30_STABLE
    • Hide

      Prerequisites: A Moodle site with a course (C) which contains an activity in the intro section, but can otherwise be empty.

      • Go to the front page
      • Turn editing on
      • Add the "Main menu" block and set "Page contexts" to "Display throughout the entire site"
      • Add a label with text "Main menu example" to the main menu block
      • VERIFY: Main menu block is displayed on the front page and contains the label "Main menu example"
      • Go to the course C
      • VERIFY: Main menu block is displayed on the course page and contains the label "Main menu example"
      • Turn editing mode on
      • Make sure that even if you are inside another course adding activities to the "Main menu" block adds them to the site main menu
      • Make sure you can move activities within the main menu block, within the course but not between each other (with both JS on and off)
      Show
      Prerequisites: A Moodle site with a course (C) which contains an activity in the intro section, but can otherwise be empty. Go to the front page Turn editing on Add the "Main menu" block and set "Page contexts" to "Display throughout the entire site" Add a label with text "Main menu example" to the main menu block VERIFY: Main menu block is displayed on the front page and contains the label "Main menu example" Go to the course C VERIFY: Main menu block is displayed on the course page and contains the label "Main menu example" Turn editing mode on Make sure that even if you are inside another course adding activities to the "Main menu" block adds them to the site main menu Make sure you can move activities within the main menu block, within the course but not between each other (with both JS on and off)

      The "Main menu" block is originally designed to be shown on the front page, and it shows the contents of a (hidden) section of the front page "course". However, there are situations where it can be displayed in other contexts as well; e.g., the block can be set to be visible "throughout the entire site" in which case it is displayed, in particular, in individual courses. However, in this situation it doesn't display the same contents as on the front page; rather it displays the intro section of the current course, which is confusing.

      Steps to reproduce:

      • Go to the front page and turn editing on
      • Add the "Main menu" block and set "Page contexts" to "Display throughout the entire site"
      • Add a resource to the main menu block (e.g., a label)
      • Go to a course (create one if needed)
      • EXPECTED: Main menu block shows, and contains the same content as on the front page
      • ACTUAL: Main menu block shows, and contains the first section of the current course (in an empty course, typically the "News forum")

            bostelm Henning Bostelmann
            bostelm Henning Bostelmann
            Marina Glancy Marina Glancy
            David Monllaó David Monllaó
            Ankit Agarwal Ankit Agarwal
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved:

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