Skip to content

Commit

Permalink
Version 2.0.6:
Browse files Browse the repository at this point in the history
explanation added to the result page.
  • Loading branch information
bihor committed Feb 20, 2021
1 parent 9775292 commit 759811e
Show file tree
Hide file tree
Showing 8 changed files with 25 additions and 8 deletions.
7 changes: 4 additions & 3 deletions Classes/Controller/QuizController.php
Expand Up @@ -90,13 +90,11 @@ public function injectConfigurationManager(\TYPO3\CMS\Extbase\Configuration\Conf
// Multilevel
$keyAsArray = explode('.', $fieldName);
if (!($originalSettings[$keyAsArray[0]][$keyAsArray[1]]) && isset($tsSettings[$keyAsArray[0] . '.'][$keyAsArray[1]])) {
//echo $keyAsArray[0].'.'.$keyAsArray[1] .': #'.$originalSettings[$keyAsArray[0]][$keyAsArray[1]] . '#' .$tsSettings[$keyAsArray[0] . '.'][$keyAsArray[1]].'#';
$originalSettings[$keyAsArray[0]][$keyAsArray[1]] = $tsSettings[$keyAsArray[0] . '.'][$keyAsArray[1]];
}
} else {
// Simple
if (!($originalSettings[$fieldName]) && isset($tsSettings[$fieldName])) {
//echo $fieldName .': #'.$originalSettings[$fieldName] .'#'. $tsSettings[$fieldName].'#';
$originalSettings[$fieldName] = $tsSettings[$fieldName];
}
}
Expand All @@ -108,7 +106,8 @@ public function injectConfigurationManager(\TYPO3\CMS\Extbase\Configuration\Conf
* initialize action highscore
* @return void
*/
public function initializeHighscoreAction() {
public function initializeHighscoreAction()
{
if ($this->request->hasArgument('quiz')){
return;
}
Expand Down Expand Up @@ -440,6 +439,8 @@ public function doAll(\Fixpunkt\FpMasterquiz\Domain\Model\Quiz $quiz)
// When enter an answer in a textbox: try to evaluate the answer of the textbox
$this->evaluateInputTextAnswerResult($quid, $question, $selected, $debug, $maximum1);
break;
default:
// hier passiert nichts
}
// assign the selected dataset to the participant
$this->participant->addSelection($selected);
Expand Down
1 change: 1 addition & 0 deletions Documentation/ChangeLog/Index.rst
Expand Up @@ -79,6 +79,7 @@ ChangeLog

2.1.0:
Highscore action added.
Explanation added to the result action/view.
Completed-field added: final page reached?
Deutsche Übersetzungen.
Bugfix for TYPO3 10.
Expand Down
Binary file added Documentation/Images/UserManual/BackendQuiz2.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion Documentation/Index.rst
Expand Up @@ -30,7 +30,7 @@ Master-Quiz
quiz,test,poll,myquizpoll,myquizandpoll

:Copyright:
2020
2021

:Author:
Kurt Gusbeth
Expand Down
11 changes: 10 additions & 1 deletion Documentation/User/Index.rst
Expand Up @@ -29,8 +29,11 @@ After you have created a quiz with some questions you can add the plugin at a pa
.. tip::

If you have a quiz with more than 10 questions, the backend will be very slow. To avoid this, create a quiz with nearly empty questions.
Finally edit every question individually. Second posibility: go to the backend module and click on "Show quiz properties".
Finally edit every question individually.
Second possibility: go to the backend module and click on "Show quiz properties".
There you could add questions to a quiz after you have created questions first.
Third possibility: you can use the "Extended view" ("Erweitere Ansicht") in the list view. There you could edit every field of a quiz
after you have created the whole quiz/poll. See screenshot below.

This screenshots shows you a quiz in the list view and some FlexForm-settings of the plugin.

Expand All @@ -46,6 +49,12 @@ This screenshots shows you a quiz in the list view and some FlexForm-settings of

Backend view of the plugin (early beta version).

.. figure:: ../Images/UserManual/BackendQuiz2.jpg
:width: 800px
:alt: Backend view in the list view.

You can edit every field of a quiz in the extended view.

Points
------

Expand Down
5 changes: 3 additions & 2 deletions README.md
@@ -1,6 +1,6 @@
# fp_masterquiz

version 2.0.5
version 2.0.6

TYPO3 extension to create a quiz, poll or test. The participant result will be saved in the DB too and can be deleted automatically via Scheduler.

Expand All @@ -24,9 +24,10 @@ Changes in version 2.0.0:
jQuery can now be loaded in the footer.
Important: probably you need to flush all caches.

Changes in version 2.0.5:
Changes in version 2.0.6:
Highscore action added.
Completed-field added: final page reached?
Explanation added to the result page.
Deutsche Übersetzungen.
Bugfix for TYPO3 10.
Important: probably you need to flush all caches.
5 changes: 5 additions & 0 deletions Resources/Private/Templates/Quiz/Result.html
Expand Up @@ -27,6 +27,11 @@
</f:else>
</f:if>
</div>
<f:if condition="{question.explanation}">
<br />
<p>{f:translate(key: "text.explanation", default: 'Explanation: ')}</p>
<f:format.html>{question.explanation}</f:format.html>
</f:if>
</div>
<div class="{settings.template.colImage}">
<f:if condition="{question.image.uid}">
Expand Down
2 changes: 1 addition & 1 deletion ext_emconf.php
Expand Up @@ -20,7 +20,7 @@
'uploadfolder' => 0,
'createDirs' => '',
'clearCacheOnLoad' => 0,
'version' => '2.0.5',
'version' => '2.0.6',
'constraints' => [
'depends' => [
'typo3' => '9.5.20-10.4.99',
Expand Down

0 comments on commit 759811e

Please sign in to comment.