Generico-Vorlagen

Generico-Vorlagen werden mit dem Plugin filter_generico (###LINK FOLGT###) verwendet, um Inhalte in standardisierter Form an mehreren Stellen bereitzustellen. Sie können zentral durch Admins verwaltet werden, um schnelle Aktualisierungen zu ermöglichen.

Auf dieser Seite finden sich konkrete Vorlagen zur Verwendung im eigenen Moodle. Die Dateien liegen als JSON .txt Bundle bereit, um einfach in Generico installiert zu werden.

Generelle Einsatzszenarien

AI Prompts

Folgende Prompts haben sich als hilfreich bei der Erstellung und Anpassung von Generico-Templates erwiesen:

Überarbeitung von Templates

Take the attached .txt file which is a JSON formatted Moodle filter_generico bundle export. Adapt the file to accomodate the mentioned new features and fixes and output a new .txt. If no file is provided, use the provided key.txt of an empty template for the structure. Provide a documentation of the changes in the html, javascript, css and sql.
For Generico-variables use syntax like @@USER:firstname@@. In SQL statements use ? as a placeholder since no named placeholders are possible. For table names use a format like {users} without the prefix `mdl_` . Never use dangerous insert/update/delete statements. Make sure to use the correct amount of datasetvars. 

The HTML of the template should be embedded in a <div class="feu-generico"> or <span class="feu-generico">. For CSS use class names that are specific (such as "feu-generico-quiz-results-table") to avoid collisions with Moodle's classes - unless explicitely specified to alter Moodle's classes.  
HTML should not use style="". Use Bootstrap 5 classes for styling, if possible. Create accessible and responsive HTML. For Icons use fontawesome free icons.
When JavaScript is used use modular code that can also work when the template is inserted multiple times in the page.

For the version use YYYY-MM-DD_HHMM_initials of the author (e.g. 2026-07-22_14:58_AK). 

Erklären von Templates

Take the attached .txt file which is a JSON formatted Moodle filter_generico bundle export.
Explain what the template does in a course context. List which information, activities etc. the template relies on to function.

Template ...

Beschreibung

...

Voraussetzungen

Damit der Prompt im Kurs funktioniert, müssen folgende Elemente im Kurs existieren: ...

Im System müssen folgende Optionen / Kursfelder / ... vorhanden sein: ...

Datei: 

 


Version #1
Erstellt: 2026-09-17 13:06:37 UTC von Andreas Kempka
Zuletzt aktualisiert: 2026-09-17 13:46:29 UTC von Andreas Kempka