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

Show My Courses as collapsed by default

XMLWordPrintable

    • MOODLE_28_STABLE
    • MOODLE_28_STABLE
    • 45884-28
    • Hide
      1. Run behat --tags @block_navigation
      2. Log in as a student (enrolled in a couple of courses)
      3. Browse to the "My home" page
      4. Check that "My courses" in the navigation block is expanded.
      5. Log in as an admin
      6. Turn off "Expand My Courses initially on My Moodle page"
      7. Log in as the student
      8. Browse to My home again
      9. Check that "My courses" is collapsed
      10. Expand "My courses"
      11. Check that the courses the enrolled in get shown under the "My courses" branch
      Show
      Run behat --tags @block_navigation Log in as a student (enrolled in a couple of courses) Browse to the "My home" page Check that "My courses" in the navigation block is expanded. Log in as an admin Turn off "Expand My Courses initially on My Moodle page" Log in as the student Browse to My home again Check that "My courses" is collapsed Expand "My courses" Check that the courses the enrolled in get shown under the "My courses" branch

      syxton had this patch included on one of his branches.
      It adds a new setting for the navigation to control the automatic expansion and loading of courses in the my courses branch when it is active.

      The my courses branch is expanded by default only when the user is viewing their My Moodle page, or any page masquerading as it (not sure if there are any).

      Quoted from a comment Matthew made later in this issue in regards to how the change came about:

      In our case, we had professors who have large amounts of courses, some very old courses that are creating a long list. They use the My Home area and didn't like that a big "ugly" list was staring at them all the time. On a lesser note, the change also speeds up the load of our pages because it doesn't have to run through the course tree again. But it was a request that we had and I thought it might be worth sharing.

            samhemelryk Sam Hemelryk
            samhemelryk Sam Hemelryk
            Marina Glancy Marina Glancy
            Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
            Rajesh Taneja Rajesh Taneja
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved:

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