heimrichhannot/contao-quiz-bundle

This module offers a quiz

1.0.0 2022-10-18 12:15 UTC

This package is auto-updated.

Last update: 2022-11-18 13:04:00 UTC


README

This bundle offers a simple quiz with submission (if needed).

Installing

With composer and Contao 4 Managed Edition:

composer require heimrichhannot/contao-quiz-bundle ~1.0

Features

  • Module QuizReader
  • Module QuizSubmission
  • creating simple quiz with custom evaluation, answers and answer descriptions
  • submission
  • adding content element to evaluation, answer and answer description

Creating a quiz

alt quiz

Adding submission to quiz

alt submission

To adding a submission to your quiz, create a quiz submission module, select 'add submission', select your submission archive and add the quiz submission module to your evaluation. See here how to add a submission archive (https://github.com/heimrichhannot/contao-submissions).

Adding evaluation to quiz

alt evaluation

Adding questions to quiz

alt question

Adding answers to question

alt_answer

Adding answer description to answer

If you want to explain why the answer is either correct or false simply add a description to the answer. Otherwise there will just stand correct or false as solving. alt answerDescription

InsertTags

Tag Arguments Example Description
huh_quiz_total_score QUIZ_ID {{huh_quiz_total_score::8}} Returns the total possible score of the quiz
huh_quiz_current_score - {{huh_quiz_current_score}} Returns the current score of the "player" from session
huh_quiz MODULE_ID,QUIZ_ID {{huh_quiz::12::8}} Returns the quiz with the given id