bihor/fp_masterquiz

Feature request: Make quiz categorizable

Closed this issue · 4 comments

We do have a large number of quizzes that should belong to different categories.

So I would like to suggest to make the quiz table categorizable.

Attached you find my solution for this:

make_quizzes_categorizable.zip (updated to remove error in some contexts)

Greetings Lina

make_quizzes_categorizable.zip

Just noted one file was missing in the patch, here is an update

bihor commented

Well, I cant see, for which purpose you have added Categories. Only in List.html is a usage.
I plan to use categories for selects too.

I think, this line is not needed: use \TYPO3\CMS\Extbase\Domain\Model\Category;
Instead I have added this line: $this->categories = new \TYPO3\CMS\Extbase\Persistence\ObjectStorage();

Well we use custom templates in which we need categorizable quizes. For us depending on the category we are using different color-schemes, different headlines like "Quiz your self on topic XY".
I just included one example of how to output the categories in the extensions template as an example.

for me it works fine like that, thank you