
LxQuiz — overview and quick start
LxQuiz adds quizzes to your site for logged-in users, out of the box.
Questions can be single-answer (radio) or multiple-choice (checkboxes).
After passing a quiz you can send the user to any URL.
Quick start
- Install the component via the package manager
- In Packages → LxQuiz → All quizzes create a new quiz
- Set how many retake attempts the user has
- Set how long the user must wait before retaking after using all attempts
- Set the minimum score to pass
- Add questions to the quiz
- Choose answer type (single or multiple choice)
- Add answer options
- Set points for each option (negative for wrong answers)
- Add this to a page (Fenom must be enabled):
fenom
{'!LxQuiz' | snippet: [
'quizId' => 1,
'nextStepName' => 'Home page',
'nextStepUrl' => $_modx->config.site_url,
'closeUrl' => $_modx->config.site_url
]}