Kompatibel mit DokuWiki
This plugin implements a „Lesson Management System“: Create a lesson plan based on a control page. Lessons are wiki pages which (authenticated) users can mark as completed. A widget helps users navigate and mark the lessons.
Install the plugin using the Extension Manager. Refer to Plugins on how to install plugins manually.
The plugin expects a control page with the lesson structure. By default it is named lms
. You can change the id in the configuration.
You can have multiple control pages in different namespaces, similar to how sidebars work.
The page should contain links to your lesson pages. You can use any other syntax in between to structure the page if needed.
Only links to pages within (or below) the control page's namespace are considered lessons in that control page's context.
====== Lesson Overview ====== * [[Lesson 1]] * [[Lesson 2]] * [[Another Lesson]] ===== Advanced Lessons ===== * [[adv:Lesson A1]] * [[adv:Lesson A2]]
The order in which the links are found in the control page will define the order in which the widget will order the lessons in terms of the next or previous lesson. If a lesson is linked multiple times, its first occurrence defines its place in the order of lessons.
Place the LMS syntax in your sidebar to integrate the lesson navigation widget.
~~LMS~~
The widget will only be displayed for logged in users and only when on a lesson page.
The plugin comes with a simple mechanism to include the control page in another page. This is useful if you want to display the list of lessons in the sidebar for example.
~~LMSINCLUDE~~
Like the widget above, the control page will only be included for logged in users and when within a lesson context.
Alternatively to using the Widget, template authors can also integrate the functionality directly in their template. The plugin comes with a helper component exposing methods to access the lesson system.
The JavaScript included in the plugin will automatically mark all links to seen lessons with a small checkmark.
Superusers and managers can access a tool in the admin interface to check the lesson completion status for specific users. Entering a username will list all lessons and the info when the user completed a lesson.
Note that this admin interface is context sensitive. When using multiple namespaced control pages, you need to open the admin interface from a page in the correct namespace.