1.4 Contextual show/hide sections

In this example, two classes, UMONS and noinstitution allow to define sections that are displayed for UMONS students (when the book is launched from UMONS Moodle), or for the general public.

This content is UMONS-specific.

This content is displayed when the document is loaded outside of UMONS Moodle.

It is also the default content on the web. So that one can provide viable alternatives to exercices outside of the UMONS context in a transparent way (no need any more to indicate “for UMONS students, do this, for the others, do that”). Distinction is made via the URL by detecting ?institution=UMONS.

This content is specific for the course S-BIOG-006 (Biological Data Science course I, first part).

This content is specific for the course S-BIOG-921 (Biological Data Science course I at Charleroi).

This content is specific for the whole course Biological Data Science course I, first & second parts, that is, S-BIOG-006 or S-BIOG-027).

This content is displayed when the document is loaded outside of a course context.

It is also the default course content on the web. So that one can provide viable alternatives to exercices outside of the UMONS context in a transparent way (no need any more to indicate “for UMONS students, do this, for Charleroi students, do that…”). Distinction is made via the URL by detecting, e.g., ?icourse=S-BIOG-006. The calss that can be used are : nocourse, sdd1m, sdd2m, sdd3m, sdd4m, sdd5m, sdd1c or sdd2c for our various courses at UMONS.

Otherwise, for further details, one can use the<details>...</details> construct:

More details… This is a section that provides further explanations.

There can be several paragraphs!

And this is again normal text…