Flexible sections format

Course formats ::: format_flexsections
Maintained by Marina Glancy
Organises course content in any number of sections that can be nested. Each section can be displayed expanded or collapsed
Latest release:
2226 sites
85 fans

This course format looks very similar to Topics format except:

  • there is no parameter "Number of sections", sections can be added and removed as necessary
  • section can also be added inside another section
  • each section (regardless of its nesting level) can be shown expanded or collapsed. Teacher can change it in edit mode.
  • If section is displayed collapsed, it's name is displayed as a link to the separate page and on this separate page the link "Back to ... " is displayed

If teacher hides a section all nested sections and activities become hidden as well.

Please note that if section has both activities and subsections activities are displayed first.

On the attached screenshots the section "Assignments" has Label resource and two subsections - "New assignments" (displayed expanded) and "Old assignments" (collapsed). Note how course navigation looks like in this case.


Screenshot #0
Screenshot #1
Screenshot #2


Marina Glancy (Lead maintainer)
Please login to view contributors details and/or to contact them

Comments RSS

Show comments
  • Mon, May 20, 2019, 12:53 AM
    When will the flexsections be upgraded to 3.5 and 3.6? We use it a lot also and yes - would be great to be core.
  • Fri, Jun 7, 2019, 9:39 PM
    We would certainly appreciate to see further development of this course format.
    Please make it work on moodle mobile.
    And if possible, add options to format headers.
  • Fri, Sep 13, 2019, 7:07 PM
    On the "Stats" tab I have seen that it is being used on Moodle versions later than 3.4. How so?
  • Tue, Dec 17, 2019, 6:46 PM
    Hello Marina,
    Congratulations for your flexible sections plugin. I saw it in action on a platform and I would like to put it on mine too, but I saw that it is not suitable for the version of Moodle 3.7. Will there also be a more updated version for more recent platforms?
    Good day.
  • Thu, Jan 16, 2020, 5:32 AM
    It is not working for me in Moodle 3.6.1 with the essentials theme. The review tab states it should work with my version (maybe not essentials). It installs, and is available to use. However topic names do not appear. I clicked the edit button in the topic, unchecked the Custom box next to the section name and type a name. On save the section name does not appear. I saved the section with both expanded and collapsed, and the section name never appears. Is it essentials? Is it my moodle version?
  • Thu, Jan 16, 2020, 9:58 PM
    Seems to not work in Essentials theme. Bummer. Im using Moodle 3.6, and if I change my theme to boost it works. We have already adopted Essentials though.
  • Wed, Apr 22, 2020, 6:01 PM
  • Sun, May 10, 2020, 11:37 PM
    hi Dan Bell, please report the issues on the https://github.com/marinaglancy/moodle-format_flexsections/issues (the link is on the top of the page as "Bug tracker")!
  • Sun, May 10, 2020, 11:48 PM
    however, essential theme has reached end of life, so unfortunately, it is not possible to run it in Moodle 3.7 and above
  • Tue, May 19, 2020, 4:25 PM

    Hi, I think it's a good idea to insert the ability to have a css class for each section
  • Wed, May 20, 2020, 7:12 PM
    Hi Giulio, please feel free to submit a pull request on https://github.com/marinaglancy/moodle-format_flexsections , also if you think somebody else would want to comment or discuss on this idea you can create an issue there
  • Thu, Jul 9, 2020, 11:15 PM
    Will this plugin get an update to officially work with 3.9? We are very dependant on this plugin.
  • Mon, Feb 1, 2021, 11:51 PM
    Thank you for this useful plugin.

    I am using it (v3.5.1 2020051100) in a new Moodle installation (v3.10.1 20210130, after an old Moodle server's hardware failure), with the default Boost theme. It works, seemingly as it was intended and as I used it in the older Moodle.

    Would it be possible to make the sub-topics collapsible? Maybe even making that an editor's option?
  • Mon, Mar 1, 2021, 9:40 AM
    Hi there,
    would the latest version work with the latest version of Moodle?
  • Tue, Mar 30, 2021, 3:45 PM
    Hi there,
    would the latest version work with the latest version of Moodle?
1 2 3 4 5 6 7 8
Please login to post comments