Flexible sections format

Course formats ::: format_flexsections
Maintained by Picture of Marina GlancyMarina Glancy
Organises course content in any number of sections that can be nested. Each section can be displayed expanded or collapsed
Latest release:
2032 sites
84 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


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

Comments RSS

Show comments
  • Picture of Sophie Paine
    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.
  • Picture of Jürg Weilenmann Keller
    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.
  • Picture of Nejc Horvat
    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?
  • Picture of David Delcò
    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.
  • Picture of Dan Bell
    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?
  • Picture of Dan Bell
    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.
  • Picture of Idriss SEKRANE
    Wed, Apr 22, 2020, 6:01 PM
  • Picture of Marina Glancy
    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")!
  • Picture of Marina Glancy
    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
  • Picture of Giulio Valentino
    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
  • Picture of Marina Glancy
    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
  • Picture of Dennis Felix
    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.
  • Picture of Szilárd Enyedi
    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?
  • Picture of Djalma Martins
    Mon, Mar 1, 2021, 9:40 AM
    Hi there,
    would the latest version work with the latest version of Moodle?
  • Picture of Pierre-Yves Robert
    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