Course formats: Flexible sections format

Maintained by Picture of Marina Glancy Marina Glancy
Organises course content in any number of sections that can be nested. Each section can be displayed expanded or collapsed
1113 sites
27 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 Devon Ritter
    Fri, 10 Jul 2015, 4:59 AM
    Hi All. Does anyone know if suggestions such as Elizabeth's to allow users to expand/collapse sections are being worked on? We really like the flex sections format, and find it most useful to have sections collapsed on the course homepage, so students can more easily get an overview of all the course units. Once they are within a unit however, I think many would prefer to then be able to expand the various sub-sections for quicker and easier navigation.
  • Picture of Inbar Dotan
    Thu, 13 Aug 2015, 4:08 AM
    The name of a collapsed section is missing from the breadcrumbs on 2.8 and 2.9, with different themes (on pages like this: It was there on 2.6.
    Is this intentional or should i open a new bug?

  • Picture of Marina Glancy
    Thu, 13 Aug 2015, 9:00 AM
    No, not intentional at all. Please open the bug
  • Picture of Inbar Dotan
    Thu, 20 Aug 2015, 9:53 PM
    FFR: CONTRIB-5883

  • Picture of Mark McKay
    Sat, 28 Nov 2015, 7:41 AM
    Hi Marina! Will you be updating this for 3.0?
  • Picture of Marina Glancy
    Sat, 28 Nov 2015, 8:17 PM
    version compatible with 3.0 added
  • Mad Eye Moody - not as bad as he looks
    Mon, 4 Jan 2016, 5:37 AM
    This is a great plugin. Thank you. is there any way to have dates associated with the sections and subsections so that they appear in the listing and automatically appear in the calendar.
  • Picture of Patrick Aymar
    Wed, 3 Feb 2016, 10:10 PM
    On Moodle 3.0.2 the icons to modify or delete, ... a section or a subsection are 3px width ! (images are larger but there his 0.3em of padding on left and right) :
    .format-flexsections .course-content ul.flexsections li.section .controls img {
    padding-left: 0.3em;
    padding-right: 0.3em;

  • Picture of Santiago Garcia
    Thu, 7 Apr 2016, 11:09 PM
    Hello marina, is there a way to have the sections unavailable but still not hidden, the issue I´m having is that my students can not see their grades if the section is not available. Thanks for your help!
  • Picture of Shutiri Yarbe
    Thu, 30 Jun 2016, 9:51 AM
    Hello Marina,

    Thank you for such a great contribution!
    I'm trying to move the sections with the icon for that purpose, but it's greyed out and nothing happens when I try to move the section.
    If I click on the icon, the page positions the section on top of the page, but nothing else happens either.

    I'm on Moodle 2.9, Google Chrome.

    Thanks in advance for your help!
  • Picture of Albert Leatherman
    Thu, 20 Oct 2016, 11:07 PM
    I agree with Devon and Elizabeth: it would be really useful to allow users to expand or collapse sections/subsections. Thank you.
  • Picture of Syakira Redzuan
    Thu, 22 Dec 2016, 10:49 AM
    Hello marina!!
    Can you update this plugin for Moodle 3.2 version? This plugin was very useful for our university.... smile
  • Picture of Marina Glancy
    Fri, 20 Jan 2017, 10:52 AM
    New version for Moodle 3.2 is added
  • Picture of Ajinkya Gadewar
    Tue, 21 Mar 2017, 6:54 PM
    All of the sections where we have used flexsections becomes unavailable on mobile. What can be the issue?
  • Picture of Henrik Berglund
    Mon, 27 Mar 2017, 3:25 PM
    Hi Marina, we just released a course using the flexible sections format. Thank you for providing this. It is great! I checked with the developers of the Moodle app, and thay say that they will not support this since it is a "non standard" format, however - developers can add mobile support as another plugin: through
    Have you considered this? Having app support would be awesome! /Best Henrik
1 2 3 4 5
Please login to post comments