marinaglancy / moodle-format_flexsections

25 stars 25 forks source link

Implement top section title and collapsing #42

Closed kabalin closed 1 year ago

kabalin commented 1 year ago

This patch adds possibility to make top section expandable like it is currently in the Topics format in core.

image

This is configurable at course format settings, if checkbox is unticked, the layout with fixed top section will be used (the current one):

image

On top of that, there is a site configuration settings desinged for those who want to change the default state of this setting.

When patch is merged, all existing sites who use the plugin will not be affected by layout change, unless they change default to "show top section title" in the plugin configuration.

marinaglancy commented 1 year ago

Thanks Ruslan, I rebased it, added cosmetic changes (mostly strings) and merged it. I could not merge the PR as is because it had conflicts