Skip to content

Commit 15bfd7a

Browse files
committed
v. 7.2.0
1 parent 3114162 commit 15bfd7a

File tree

8 files changed

+29
-2
lines changed

8 files changed

+29
-2
lines changed

Documentation/ChangeLog/Index.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -294,3 +294,6 @@ ChangeLog
294294
PHP 8.4 Bugfix.
295295

296296
New home url: https://github.com/fixpunkt-com/fp_masterquiz
297+
298+
7.2.0:
299+
Extension configuration file added for the ajax mode.

Documentation/Configuration/Index.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,9 @@ AJAX*) If you enable AJAX, you should know this:
128128
If it is still not working, you can disable the cHash-check in the install tool:
129129
[FE][pageNotFoundOnCHashError] = false
130130
Conclusion: use the Ajax-version only if you really need it.
131+
But new since version 7.2.0: some parameters can be excluded from the cHash generation
132+
if you enable it via the "Extension Configuration". Then you don´t need to change
133+
enforceValidation or pageNotFoundOnCHashError.
131134

132135
- *Important*: if you don´t use the plugin
133136
"Show a selected quiz and use a pagebrowser (you need to select the storage folder too)" /

Documentation/Localization.de_DE.tmpl/ChangeLog/Index.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,3 +205,6 @@ Dokumentation schon wieder.
205205
PHP 8.4 Bugfix.
206206

207207
Neuer Ort bei GitHub: https://github.com/fixpunkt-com/fp_masterquiz
208+
209+
7.2.0:
210+
Extension-Konfigurations-Datei für den Ajax-Modus hinzugefügt.

Documentation/Localization.de_DE.tmpl/Configuration/Index.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,9 @@ AJAX*) Wenn man AJAX aktiviert, sollte man folgendes wissen:
130130
Wenn es immer noch nicht funktioniert, kann man die cHash-Prüfung im Installationstool deaktivieren:
131131
[FE][pageNotFoundOnCHashError] = false
132132
Fazit: Verwende die Ajax-Version nur, wenn sie wirklich benötigt wird.
133+
Allerdings: neu seit Version 7.2.0 ist die Möglichkeit, einige Parameter zu
134+
cacheHash/excludedParameters via "Extension Configuration" hinzuzufügen. Dann
135+
muss man enforceValidation oder pageNotFoundOnCHashError nicht verändern!
133136

134137
- *Wichtig*: Wenn man nicht das Plugin
135138
"Show a selected quiz and use a pagebrowser (you need to select the storage folder too)" /

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# fp_masterquiz
22

3-
version 7.1.2
3+
version 7.2.0
44

55
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.
66

@@ -55,5 +55,8 @@ Changes in 7.1.2:
5555
- PHP 8.4 Bugfix.
5656
- New home url: https://github.com/fixpunkt-com/fp_masterquiz
5757

58+
Changes in 7.2.0:
59+
- Extension configuration file added for the ajax mode.
60+
5861
You find the whole changelog here:
5962
https://raw.githubusercontent.com/fixpunkt-com/fp_masterquiz/refs/heads/master/Documentation/ChangeLog/Index.rst

ext_conf_template.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# cat=basic//30; type=boolean; label=For the ajax-mode: add this variables to cacheHash/excludedParameters: ^tx_fpmasterquiz_show,^answer,^quest,_
2+
addToExcludedParameters = 0

ext_emconf.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
'category' => 'plugin',
1717
'author' => 'Kurt Gusbeth',
1818
'state' => 'stable',
19-
'version' => '7.1.2',
19+
'version' => '7.2.0',
2020
'constraints' => [
2121
'depends' => [
2222
'typo3' => '13.4.0-13.4.99',

ext_localconf.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,5 +113,15 @@ function()
113113
],
114114
],
115115
];
116+
117+
$configurationUtility = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Core\Configuration\ExtensionConfiguration::class)->get('fp_masterquiz');
118+
$addToExcludedParameters = (bool)$configurationUtility['addToExcludedParameters'];
119+
if ($addToExcludedParameters) {
120+
// Exclude fpmasterquiz_show and other parameters from cacheHash calculation
121+
$GLOBALS['TYPO3_CONF_VARS']['FE']['cacheHash']['excludedParameters'] = array_merge(
122+
$GLOBALS['TYPO3_CONF_VARS']['FE']['cacheHash']['excludedParameters'],
123+
['^tx_fpmasterquiz_show', '^answer', '^quest', '_']
124+
);
125+
}
116126
}
117127
);

0 commit comments

Comments
 (0)