Your Moodle version

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
Moodle 2.5, 2.6, 2.7

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 Giulio Valentino
    Fri, Apr 10, 2015, 6:43 PM
    Hi and first sorry for my bad english.
    I see that this plugin auto number the section (section-1, section-2 etc) In this way is impossible make a link to a specific section because a new add subsection for examploe inside section-1 change then other section id.
    Hope is clear
  • Picture of moris afou
    Wed, Apr 22, 2015, 8:25 PM
    Hi there,
    I've tried to install all plugins to get flexpage format working, but when i create a course with flexpage format i get this error :
    Fatal error: Class course_format_flexpage_lib_condition contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (core_availability\info::get_view_hidden_capability) in /$HOME/moodle/course/format/flexpage/lib/condition.php on line 32
    Im using moodle 2.7.7 and i guess the plugins i downloaded are 2.7.0 its could be the problem ?

    Best regards
  • Picture of Marina Glancy
    Wed, Apr 22, 2015, 8:59 PM
    Hello moris, this is format "flexsections" and your complain about "flexpage" format. They are two different plugins
  • Picture of moris afou
    Wed, Apr 22, 2015, 9:05 PM
    Hi Marina,
    sorry maybe i confused the plugins name, should i redirect to another forum topic?
  • Picture of Giulio Valentino
    Mon, May 11, 2015, 10:38 PM
    Hi, any update for moodle 2.9?
  • Picture of Marina Glancy
    Wed, May 13, 2015, 1:16 PM
    Done, there was a function name conflict with new API in 2.9 so I renamed my function. I did not create a new branch for 2.9 for easier maintenance, so 2.8 is also updated but without any effect on UI
  • Picture of Devon Ritter
    Fri, Jul 10, 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, Aug 13, 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, Aug 13, 2015, 9:00 AM
    No, not intentional at all. Please open the bug
  • Picture of Inbar Dotan
    Thu, Aug 20, 2015, 9:53 PM
    FFR: CONTRIB-5883

  • Picture of Mark McKay
    Sat, Nov 28, 2015, 7:41 AM
    Hi Marina! Will you be updating this for 3.0?
  • Picture of Marina Glancy
    Sat, Nov 28, 2015, 8:17 PM
    version compatible with 3.0 added
  • Mad Eye Moody - not as bad as he looks
    Mon, Jan 4, 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, Feb 3, 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, Apr 7, 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!
1 2 3 4 5
Please login to post comments