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

Show My Courses as collapsed by default

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.8
    • Fix Version/s: 2.8
    • Component/s: Navigation
    • Labels:
    • Testing Instructions:
      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
    • Affected Branches:
      MOODLE_28_STABLE
    • Fixed Branches:
      MOODLE_28_STABLE
    • Pull Master Branch:
      45884-28
    • Pull Master Diff URL:

      Description

      Matthew Davidson 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.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  10/Nov/14