Is it possible to display the quiz entity within a node? I've created a quiz reference field, but the default quiz view-mode displays the description, summary, and "Start Quiz" button. I would like to just display the quiz form (with questions) in the node - without "Start" button. Any help is appreciated.

Drupal core 9.3.0
Quiz 6.0.0-alpha6

Comments

jim22 created an issue. See original summary.

jim22’s picture

Title: embed entire quiz in a node? » display entire quiz in a node?
djdevin’s picture

I'm not sure it will be possible to take a quiz within a node. What is your reason for doing so?

I can think of something like embedded a quiz into a piece of content, which might be possible with a new module that embeds an AJAX-enabled quiz.

jim22’s picture

Thanks for the quick response, djdevin.

Client would like to be able to embed a short quiz within a node content page, among a bunch of other paragraph-components. Even if it was possible to do the first "page" of the quiz or something.

If not possible, I'm assuming I can add paragraph-components (e.g. hero image/text, etc.) to the quiz entity and manage and theme the display of those? (I saw someone created a patch for helping theme quiz templates, right?)

Thanks again.

djdevin’s picture

Yes it's entirely possible to add fields as you wish to the Quiz entity just like a regular page node on Admin -> Quiz -> Quiz types. You could do that before but #3154956: Allow for Quiz and Result to be themed also allows for more theming with templates.

That is easier than trying to embed a Quiz inside of another page. It's probably feasible in the long run with ajax_quiz but it may need a bit of work to figure out how to embed it.

smustgrave’s picture

Version: 6.0.0-alpha6 » 6.0.x-dev
Status: Active » Closed (outdated)

Going to assume #5 answers the questions