Preview mode lets teachers interact with an eXeLearning resource exactly as a student would — navigating the content, triggering iDevices, and checking scores — without any of those interactions being recorded. No attempt is created, no gradebook value is written, and no attempt slot is consumed. This makes it safe to verify content and scoring behaviour before students enrol, or to demonstrate the activity to colleagues.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/exelearning/mod_exelearning/llms.txt
Use this file to discover all available pages before exploring further.
Using preview mode
Open the activity as a teacher
Navigate to the eXeLearning resource activity in your course. You must be viewing it with a role that holds the
moodle/course:manageactivities capability (typically Teacher or Editing Teacher).Click Try as a student (preview)
Click the Try as a student (preview) button that appears on the activity page. This button is only shown to users who can manage the activity — students never see it.
Interact freely
A yellow banner appears at the top of the activity reading “Preview mode (test): Nothing you do here will be saved to the gradebook.” You can navigate through all pages, interact with every iDevice, and check the scoring feedback — none of it is recorded.
Preview mode is available only to users who hold the
moodle/course:manageactivities capability. If a regular student somehow attempts to access a preview-mode URL directly, the system falls back to normal grading mode automatically — students cannot enter or benefit from preview mode under any circumstances.What preview does and does not do
What preview does
- Renders the full package with its native eXeLearning sidebar and navigation
- Allows interaction with all gradable iDevices — you see the same feedback a student would
- Displays the yellow “Preview mode” banner so you always know you are not in a real session
- Respects the Show eXeLearning teacher-mode toggle setting (see below)
What preview does NOT do
- Record any attempt or grade — preview submissions are discarded before any gradebook write
- Consume an attempt slot — your attempt count is unchanged after previewing
- Affect completion status — previewing never triggers activity completion
- Store any data about your preview session in the database
Teacher-mode toggle in preview
The Show eXeLearning teacher-mode toggle setting (teachermodevisible) in the activity’s Appearance section controls whether a teacher-only content toggle is visible inside the embedded package.
- When disabled (the default), the toggle is hidden for all viewers by injecting CSS into the package — students never see teacher-only content.
- When enabled, the toggle appears inside the package for any viewer.