Table des matières
Course Element: Two-Level Text
Introduction
The “Two-level text” course element presents a WYSIWYG editor allowing text entry as in an office-type text editor, in two different areas: a main area that is always displayed and an additional area.
Its interest lies in its ability to present a “Read more” or “Read less” link for the second area, allowing a display optimisation in the case of long text, which avoids having to scroll the display window when the second area is collapsed. It is an ergonomic facilitation element. It is a good substitute for displaying third-party documents (PDF, Word) because it makes updates easier.
Rendering example on a course
Form configuration
General
- Select “Two-level text” in the label type.
- The element name is displayed by default. (Each course element has its own name).
- Enter the text you want to see appear on the course in the content area.
- Enter the text you want to see appear on the course in the additional area.
- Choose whether the additional text appears unfolded or folded on the course.
Using "placeholders"
Three placeholders have been developed. They allow an efficient substitution of an element entered “hard-coded”:
- %WWWROOT%
- %COURSEID%
- %USERID%
Usage example:
I want to place a link to an administration element that requires passing the course context as a parameter, such as for example a link to the session report.
- I will enter the link as follows: https://yourMoodle/report/trainingsessions/index.php?id=%COURSEID%
Common settings
Restrict availability
- The chosen course element resource can be accessible depending on a precise date, a grade obtained (in another activity, for example), a user profile, a group of a grouping or a set of nested restrictions.
Activity completion
- To be enabled if you want to make sure that students have taken note of the proposed text(s).
Back to the user guide & pedagogical guide - Back to the Course Elements module index - Back to the plugins index - Back to the catalogue

