en:moodle:tests:embed-questions:start
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
en:moodle:tests:embed-questions:start [2024/03/05 13:50] – maziyar | en:moodle:tests:embed-questions:start [2024/03/05 13:59] (current) – maziyar | ||
---|---|---|---|
Line 28: | Line 28: | ||
- Open the Moodle text editor in a place where you can enter text and media, e.g. on a course page, a text page, a text and media box, in a book activity or when writing a forum post. | - Open the Moodle text editor in a place where you can enter text and media, e.g. on a course page, a text page, a text and media box, in a book activity or when writing a forum post. | ||
- | - Click on the "**Insert | + | - Click on the "**Show more buttons**" |
- Select the desired question category, for example " | - Select the desired question category, for example " | ||
- | - Select the question you want to embed, e.g. "Test question 1". Make sure that the question has an ' | + | - Select the question you want to embed, e.g. "Test question 1". Make sure that the question has an '**idnumber**' and is in the correct category. |
- You can leave the other options as default or adjust them as required. Note that only question behaviors where the user can interact with the question without having to submit the entire quiz attempt can be selected. | - You can leave the other options as default or adjust them as required. Note that only question behaviors where the user can interact with the question without having to submit the entire quiz attempt can be selected. | ||
- | - Click on the "Embed question" | + | - Click on the "**Embed question**" button. The editor inserts a cryptic code. |
- Save the page to display the embedded question. The cryptic code will be replaced by the question and displayed in the center of the page. Note that the cryptic code ends with a 40-character hexadecimal string. This is for security purposes and prevents unauthorized users from guessing the embed code for an unapproved question. | - Save the page to display the embedded question. The cryptic code will be replaced by the question and displayed in the center of the page. Note that the cryptic code ends with a 40-character hexadecimal string. This is for security purposes and prevents unauthorized users from guessing the embed code for an unapproved question. | ||
- | If you want to embed a random question from a category, follow the same steps as above, with the exception of step 3. Instead of a specific question, select the option " | + | If you want to embed a random question from a category, follow the same steps as above, with the exception of step 3. Instead of a specific question, select the option "**Select a random embeddable question from this category**". This option will be displayed if there are at least 2 questions in the category. |
When a user encounters an embedded question, this question will be displayed directly on the page. Technically, | When a user encounters an embedded question, this question will be displayed directly on the page. Technically, | ||
en/moodle/tests/embed-questions/start.1709643009.txt.gz · Last modified: 2024/03/05 13:50 by maziyar