Hello
I would like to rotate question blocks (1 block always consists of two pages) on a single page.
I have tried the following code:
if (!isset($blocks)) {
// Liste mit Frage-Kennungen und zugehörigen Bildern
$blocks = [
['EG07', 'EG13'],
['EG08', 'EG14'],
['EG09', 'EG15']
];
// Die Liste mischen
shuffle($blocks);
// Die Listen auf allen Seiten verfügbar machen
registerVariable($blocks);
}
foreach ($blocks as $kennung) {
question($kennung);
}
Rotating the blocks works, but I don't know how to display the questions.
With the foreach I tried to loop through the blocks, but of each block only the first question is presented... but never the second one
Any ideas?
Thanks!