QUIZ EXAMPLE TEMPLATE

You need jQuery and jQuery-Fancybox for this example. This example uses the extension t3jquery and sk_fancybox. Note: this example works only with radio-button-questions (only one answer possible)! Test it with this TypoScript:

plugin.tx_myquizpoll_pi1.isPoll = 0
plugin.tx_myquizpoll_pi1.templateFile = EXT:myquizpoll/examples/template_quiz_jquery.html
plugin.tx_myquizpoll_pi1.myVars.answers {
  input_id = 1
  input_label = 1
}
plugin.tx_myquizpoll_pi1.userData.askAtQuestion = 0
# customise this both PIDs!
plugin.tx_myquizpoll_pi1.resultsPID = 269
plugin.tx_myquizpoll_pi1.finalPID = 271
plugin.tx_myquizpoll_pi1.pageQuestions = 1
plugin.tx_myquizpoll_pi1.answerChoiceMax = 4
# if you dont always include jQuery:
includeLibs.t3jquery = EXT:t3jquery/class.tx_t3jquery.php
page.11 = USER
page.11.userFunc = tx_t3jquery->addJqJS

Templates for whole sites

###REF_ERRORS###
###REF_QUESTIONS### ###REF_SUBMIT_FIELDS### ###HIDDENFIELDS###
not in use

Template-Snippets

###REF_QUESTION_IMAGE_BEGIN###
###VAR_QUESTION_TITLE###
###VAR_QUESTION_NAME### ###P1######VAR_ANSWER_POINTS######P2###
###VAR_QUESTION_ANSWER###
###REF_QUESTION_IMAGE_END###
###VAR_QUESTION_IMAGE###  

You can use this marker too: ###REF_QR_ANSWER_CORR### If user results should be hidden, set hidden = 1. Example: see template_statistics.html.
 
###HIDDENFIELDS###

###NO_SUBMIT###

###DOUBLE_ENTRY###

###NOT_LOGGEDIN###

###CHEATING###

No more questions. You can use here these Markers too: ###RESTART_QUIZ###, ###RESULT_POINTS###: ###VAR_RESULT_POINTS### / ###VAR_MAX_POINTS### (###TOTAL_POINTS###: ###VAR_TOTAL_POINTS### / ###VAR_TMAX_POINTS###)

###NO_MORE###

###VAR_QUESTION_TITLE###
###VAR_QUESTION_NAME###
###REF_QR_ANSWER_CORR### ###REF_QR_EXPLANATION### ###REF_DELIMITER###