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

Add the "expand / collapse all sections" on the section page

    • Icon: New Feature New Feature
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • 4.5
    • Course
    • MOODLE_405_STABLE
    • mdl-81768_main
    • Hide
      1. Under Site admin > Plugins > Activity modules > Manage activities, ensure Subsection is enabled.
      2. Create a new Custom sections course with 1 section (besides the General section).
      3. Expand Section 1 (if it isn't already).
      4. Turn edit mode on (if it isn't already).
      5. Click the section menu then View to go to the section page.
      6. Verify the all-section toggler is not displayed.
      7. Add a subsection.
      8. Verify the all-section toggler is displayed.
      9. Click the all-section toggler.
      10. Verify the subsection is collapsed.
      11. Delete the subsection.
      12. Verify the all-section toggler is not displayed.
      13. Return to the course main page.
      14. Verify Section 1 is expanded (so the Collapse All in the section page has not toggled sections not on the page).
      Show
      Under Site admin > Plugins > Activity modules > Manage activities, ensure Subsection is enabled. Create a new Custom sections course with 1 section (besides the General section). Expand Section 1 (if it isn't already). Turn edit mode on (if it isn't already). Click the section menu then View to go to the section page. Verify the all-section toggler is not displayed. Add a subsection. Verify the all-section toggler is displayed. Click the all-section toggler. Verify the subsection is collapsed. Delete the subsection. Verify the all-section toggler is not displayed. Return to the course main page. Verify Section 1 is expanded (so the Collapse All in the section page has not toggled sections not on the page).
    • Hide

      Code verified against automated checks.

      Checked MDL-81768 using repository: https://github.com/james-cnz/moodle

      More information about this report

      Built on: Sat Apr 26 08:39:58 UTC 2025

      Show
      Code verified against automated checks. Checked MDL-81768 using repository: https://github.com/james-cnz/moodle main (0 errors / 0 warnings) [branch: mdl-81768_main | CI Job ] More information about this report Built on: Sat Apr 26 08:39:58 UTC 2025
    • 2

      This issue is part of the course hierarch project.

      Issue goals

      With the addition of subsections, it has become necessary to implement the "expand/collapse all sections" feature on the section page. This feature would allow the user to easily expand or collapse all the subsections under a particular section with just a single click.

       

      The patch includes the fix for MDL-83262.

            james-cnz James E. Calder
            tusefomal Ferran Recio
            Laurent David Laurent David
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 6 hours, 12 minutes
                6h 12m

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