Body
This Moodle course format organises content into sections which can be nested inside each other.
This format offers you a high degree of flexibility for your course layout.
How to use Flexible Sections format
Please note that, in this article, the terms Topic and Section are interchangeable.
In the sample image below, the Moodle Resources for Faculty (MR4F) shell has been set up using the Felexible Sections course format.
The image shows the Forums section, with three subsections (General, Specialty, and Hidden). The subsections are slightly indented to the right, indicating that they are subsections of the Forums section. Each of these sections and subsections can be expanded and collapsed as needed.

The MR4F course format settings are set as shown in the following image:

The setting "Show top section title" determines if the content preceding Topic/Section 1 is collapsible or not. For MR4F, we have chosen to leave it as uncollapsible. If it were set to collapse, the topic title would be General, by default, but can be edited.
The setting, Accordion effect determines if more than one section can be expanded at the same time, or if when expanding a section all other sections collapse.
The setting, Display course index has been set to Sections and activities to make it easier to drill down to a specific activity. This is shown on the left side of the following image. Alternatively, the Only sections option which is shown in the right side of the following image allows the user to go directly to a specific section. In a way, this is similar to the TABS of the OneTopic format, except the location is to the left in a collapsible drawer rather than taking up valuable space at the top of the course page.

The Display back link in activities option places a link back to the main course page in each of the activities as shown here in one of the course forums.

Known Issues with this Course Format
In Moodle 4.x, the Flexible Sections format is known to have the following issues:
- Nested subsections and search exposure:
According to GitHub issue #107 on the Flexible sections repository, when an instructor hides a parent section that contains multiple subsections, the individual activities inside those subsections do not always inherit a true hidden state. Students can still locate and open those "hidden" activities using global/course search or direct links, even though the section itself appears hidden on the main course page.
- Work-arounds for Instructors:
- Hide individual activities or subsections directly: If an activity contains sensitive material inside a nested section (e.g. an upcoming exam or answer key), manually set the activity itself to "Hide from students" rather than relying solely on hiding the top-level parent section.
- Use the activity's "Restrict Access" features, instead of "Hide": Adding an Access restriction (such as a date condition) on the parent section or individual activities enforces a hard block across search, direct links, and the course index.
- Verify with a DemoStudent test account or a real Student account: Always check visibility using a DemoStudent or a real test student login (rather than just "Switch role to... > Student," which can occasionally mask plugin permission quirks).
For more information, see the latest documentation on the Flexible Sections format (opens in new tab).