What this plugin does
LernHive demo data fills a disposable LernHive site with a realistic product demo: a course catalogue with ten courses, learners, trainers, enrolment examples and real learning activity. With one profile it also installs the demo data of the other LernHive plugins and opens the catalogue for logged-out visitors while the demo is installed.
Use it only on demo, test, staging or disposable development sites. The generated users and courses are real Moodle records, and removing them is permanent.
Who this is for
| Role | What they do |
|---|---|
| Site administrator | Creates and removes the LernHive product demo and the full LernHive demo profile |
Learners, managers (reporting line), trainers and platform administration do not work with this plugin. They see its results: demo courses in the catalogue and demo accounts.
Core concepts
- LernHive product demo: the dataset of this plugin. It creates the category Praxisbeispiele with three subcategories, ten German catalogue courses, 20 learners, ten trainers, one manager account and the fixed accounts
manager,teacherandstudent. - Full LernHive demo: a profile that installs the LernHive product demo together with the demo data of target groups, competencies, content library, seminars and pathways, as far as these plugins are installed.
- Public catalogue: while the profile is installed, logged-out visitors see the courses marked as public.
Journeys by role
Site administrator: create the LernHive product demo
- Go to Site administration → Plugins → Local plugins → eLeDia | Demo. Demo-data execution must be switched on there (see the user documentation of eLeDia | Demo).
- In the card LernHive product demo, choose Create LernHive demo data.
- The message The LernHive demo dataset was created. appears. The card shows Demo data active and the number of learners, courses and completed quiz attempts.
- Create other LernHive datasets that build on it, for example target groups or competencies, afterwards. Their cards show Required demo datasets are not active: … until the LernHive product demo exists.
Site administrator: install the full LernHive demo
- On the same page, find the panel Full LernHive demo.
- Choose Install profile. The LernHive product demo is created first, then the other LernHive datasets. Plugins that are not installed on the site are named as skipped.
- While the profile is installed, the catalogue is visible to logged-out visitors. If it was already public, nothing changes.
Site administrator: remove the demo
- To remove the full demo, choose Remove profile in the panel Full LernHive demo and confirm. The datasets are removed in reverse order, and the public catalogue returns to its previous setting.
- To remove only the product dataset, remove the datasets that depend on it first, then choose Remove LernHive demo data in the card and confirm. With Remove selected under Manage demo data the page chooses the right order itself.
Settings that matter
None of its own. Demo-data execution and access are controlled on the eLeDia | Demo page. Creating and removing this dataset additionally requires the permission local/lernhive_demodata:managedemodata, which Moodle's Manager role holds by default.
Limitations
- The course content is German. The Course content language setting of eLeDia | Demo does not apply to this dataset.
- Creation fails if the site already has accounts with the usernames
manager,teacherorstudent. - Demo accounts get random passwords that are not shown anywhere. Use Moodle's Log in as to see the site through a demo account.
- Courses whose enrolment method is labelled with an approval use Moodle's self enrolment; there is no approval workflow behind it.
- Paid enrolment is created only if the site has a payment account for Moodle's enrolment on payment; otherwise those courses have no paid enrolment.
- Catalogue markings and the public catalogue need
local_lernhive; without it the courses are created without them. - Removing the dataset deletes its users and courses permanently, including anything you added to those courses.
Troubleshooting
| Symptom | Check | Resolution | |
|---|---|---|---|
| The card LernHive product demo shows no create button | Demo-data execution on **eLeDia \ | Demo** and your permissions | Switch execution on; ask for local/lernhive_demodata:managedemodata |
| You do not have permission to manage demo data for this plugin. | Permission local/lernhive_demodata:managedemodata | Grant it to your role | |
| The LernHive demo dataset could not be created: … or The LernHive dataset was incomplete after creation … | The generator messages and Most recent creation attempt in the card | The partial data has already been removed; fix the cause (for example existing manager, teacher or student accounts) and create it again | |
| An incomplete LernHive dataset was found. … | Earlier failed or interrupted run | Choose Create LernHive demo data; the remains are removed first | |
| The catalogue is not public after installing the profile | local_lernhive installed? | The public catalogue switch needs local_lernhive | |
| The catalogue stays public after removing the profile | Was it public before? | The profile restores the previous value; if it was public before, it stays public |
Screenshots
No screenshots yet.