User Tools

Site Tools


en:moodle:tests:embed-questions:start

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
en:moodle:tests:embed-questions:start [2024/03/05 13:50] maziyaren: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 question**" button in the editor toolbar.+  - Click on the "**Show more buttons**" and then "**Embed question**" button in the editor toolbar.
   - Select the desired question category, for example "Embedded questions".   - Select the desired question category, for example "Embedded questions".
-  - 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.+  - 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" button. The editor inserts a cryptic code.+  - 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 "Select a random embeddable question from this category". This option will be displayed if there are at least 2 questions in the category.+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, the question is embedded in an invisible iframe that is automatically adjusted to the size of the question. The background of the iframe adapts to the page on which the question is embedded. The question behaves in exactly the same way as in a quiz attempt, provided that the quiz is set up with the same options as when the question was embedded. After the question has been answered, the user can start it again if desired. For questions with variants, a different variant is selected when the quiz is restarted. When a user encounters an embedded question, this question will be displayed directly on the page. Technically, the question is embedded in an invisible iframe that is automatically adjusted to the size of the question. The background of the iframe adapts to the page on which the question is embedded. The question behaves in exactly the same way as in a quiz attempt, provided that the quiz is set up with the same options as when the question was embedded. After the question has been answered, the user can start it again if desired. For questions with variants, a different variant is selected when the quiz is restarted.
  
en/moodle/tests/embed-questions/start.1709643009.txt.gz · Last modified: 2024/03/05 13:50 by maziyar