Hi,
I would like to be able to output only one specific question programmatically. I think it would be useful if you could display a question easily in a block or with page manager inside a panels pane.

I've tried to render the result of quiz_take(node), quiz_take_quiz($node) and quiz_take_question_view($question_node, $quiz_node) but I can't manage to get the the options of the question output.

My usecase would be, that I want to display the first question of a quiz in a block in the sidebar. If the user submits the answer, he is redirected to the normal quiz page with the second question or the result, if the quiz has only one question.

What would be the best way to approach this problem?

Comments

djdevin’s picture

Component: Code - other » Code - Quiz core
Issue summary: View changes
Status: Active » Closed (outdated)

This issue is being closed because it was filed against a version that is no longer supported.

If the issue still persists in the latest version of Quiz, please open a new issue.