Blocks on quiz attempt page not showing

Blocks on quiz attempt page not showing

by Mark van Hoek -
Number of replies: 3
Picture of Core developers Picture of Plugin developers

Blocks I add to the quiz attempt page do not show for students:

As admin I add an HTML block with some simple content to the quiz attempt page

https://qa.moodledemo.net/mod/quiz/attempt.php?attempt=11&cmid=1011

Set "Where this block appears?" to "Attempt quiz page" or "Any quiz module page"

The block is visible as admin

But when logged in as a student, it is not visible.

Tested in 3.5.x and 3.8

Tested on 3.8 with Boost and Clean

I've also tried setting the Default weight and the Weight on this page to 10.


Is this a bug, a feature, or am I doing something wrong?

Attachment quiz-attempt-with-block-settings.png
Attachment quiz-attempt-with-block.png
Average of ratings: -
In reply to Mark van Hoek

Re: Blocks on quiz attempt page not showing

by Tim Hunt -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers
In the quiz settings, there is a settings 'Show blocks during the attempt'. What is that set to for your quiz?
Average of ratings: Useful (2)
In reply to Tim Hunt

Re: Blocks on quiz attempt page not showing

by Mark van Hoek -
Picture of Core developers Picture of Plugin developers
You've saved the day again, Tim - thanks so much!
For anyone else coming across this, the setting 'Show blocks during the attempt' is under
Quiz > Edit Settings > Appearance > Show more...
and is 'No' by default.