DEPRECATION WARNING

This documentation is not using the current rendering mechanism and is probably outdated. The extension maintainer should switch to the new system. Details on how to use the rendering mechanism can be found here.

Dynamic Template Scopes

If you use the TSconfig-variable "showAnalysis” you will probably need to add or modify some templates. You can set with this variable which template should be shown at the end of the quiz. It depends on the reached percentage value which template will be shown. The TS-variable "showEvaluation” depends on reached scores.

Example 1: if you set

"showAnalysis = 0,33.34,66.67,100"

then the quiz taker will see one of the templates TEMPLATE_QUIZ_ANALYSIS_0, TEMPLATE_QUIZ_ANALYSIS_33.34,TEMPLATE_QUIZ_ANALYSIS_66.67 or TEMPLATE_QUIZ_ANALYSIS_100. You must define this templates in the template file! Example: the quiz taker gets 60% of all scores then he will see the content of the template “TEMPLATE_QUIZ_ANALYSIS_66.67”. For more informations read the text in the example template file too (examples/template_analysis.html).

Example 2: if you set

"showAnalysis = 25:1,50:2,75:3,100:4"

then the quiz taker will see one of the pages with the UID 1,2,3 or 4. E.g. 51-75%: redirect to page with the UID 3. In this case you don´t need this special templates.

Example 3: if you set

"showAnalysis = 99:0,100:4"

then there will be no redirect if not all questions were answered correctly!

Example 4: if you set

"showEvaluation = 25:1,50:2,75:3,100:4"

then the quiz taker will see one of the tt_content elements with the UID 1,2,3 or 4. E.g. 51-75 scores: show the tt_content element with the UID 3. In this case you don´t need this special templates.