You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to create pages with many embedded questions. Those pages would be created by a generator (e.g. combining all questions of a specific topic). Is it possible to use some kind of shortcode, like {{embedquestion:2:question123}}, paste this into the html and I am done?
Or would it be possible to have an URL like .../freefloatingquestion.php?course=2&question=question123, which shows the question123 from category 2? Similar to the "preview question" page in the question bank?
This would be very helpful!
The text was updated successfully, but these errors were encountered:
If you look at what happens when you embed a question using Moodle's HTML, you will see this is exactly how it works internally.
However, there has to be some security built in, to stop, for example, students trying to guess the ids of the questions in the final exam, and so embed them in forum posts to each other.
There is a web service (used to the HTML editor plugin) to get that secure code, so in your generator, either call that service, or replicate the logic to compute the has.
I don't think this requires any changes to this plugin, so I will close this.
Hello,
I would like to create pages with many embedded questions. Those pages would be created by a generator (e.g. combining all questions of a specific topic). Is it possible to use some kind of shortcode, like {{embedquestion:2:question123}}, paste this into the html and I am done?
Or would it be possible to have an URL like .../freefloatingquestion.php?course=2&question=question123, which shows the question123 from category 2? Similar to the "preview question" page in the question bank?
This would be very helpful!
The text was updated successfully, but these errors were encountered: