Skip to content
sheogorath15 edited this page Jan 16, 2023 · 6 revisions

KIB3 Moodle Plugin Autocompleteactivities

This plugin allows to provide activities and resources of types URL, file or book as alternative resources. If one of the alternatives is marked complete, the plugin automatically marks the remaining alternatives as complete too.

Here is an example section that shows what happens when the book Testtopic (to autocomplete) is clicked without this plugin:

Bildschirm­foto 2022-11-18 um 15 49 47

And here the comparison that shows what happens when the book Testtopic (to autocomplete) is clicked with this plugin (configured to match all activities of type book, url, and resource that share the same prefix until opening brackets):

Bildschirm­foto 2022-11-18 um 15 50 50

Here, the book, url and resource starting with Testtopic ( are automatically marked as completed even though the user only viewed one of them. Hint: Might need a page reload to display all completed badges.

It considers those activites and resources as alternatives that are within the same section and have identical names up to an opening bracket. Thus, material could be offered as

example topic (book variant) example topic (link to a video variant) example topic (as a PDF file) The plugin then considers them alternatives, and if one is completed, it automatically marks the others as completed too.

In addition, it is posible to introduce a label that contains the text "kann ich schon". In this case learners can indicate that they don't need to go through any of the alternatives. If such a label is present, it is automatically marked complete if one of the alternatives is completed (assuming that in this case there is also no need to go through the alternatives any more). The automatic marking does not work the other way: if only the label is marked as complete, the alternatives keep their completion status.

The plugin is only active in those courses for which it is configured (by indicating the respective course IDs in the settings of the plugin).

Installation

Installing via Moodle Web Interface

  1. Load the .zip file with the newest version from [https://github.com/SE-Stuttgart/kib3_moodleplugin_autocompleteactivities/releases]
  2. Log in to your Moodle site as an admin and go to Site administration > Plugins > Install plugins.
  3. Upload the ZIP file with the plugin code and click Install plugin from the ZIP file
  4. Check the plugin validation report and finish the installation.
  5. You are prompted to configure the plugin. Please specify in which courses the plugin should be active. This is specified by a sequence of course IDs, separated by commas (e.g.: 13, 34). For finding the relevant IDs, you are shown all courses that are present in your Moodle along with their IDs; please pick the ones you need. Alternatively you can find the course ID at the end of the URL of your course main page. This concludes the configuration.

If you want to change the configuration later, come back to the plugin page (Site administration > Plugins). Click Category: Local plugins. You will find the configuration page of the plugin under Manage Activity Autocompletion Settings.

Installing manually

The plugin can be also installed by putting the contents of this directory to

{your/moodle/dirroot}/local/autocomplete_activities

Afterwards, log in to your Moodle site as an admin and go to Site administration > Notifications to complete the installation.

Alternatively, you can run

$ php admin/cli/upgrade.php

to complete the installation from the command line.

Configuration

The configuration page will automatically open after installation. For changing settings later, go to Site Administration > Plugins > Local Plugins. There you should find the entry Activity Autocompletion Settings.

It will look like this:

Bildschirm­foto 2022-11-18 um 15 41 30
  1. In the available course configuration, check all courses the plugin should be active in
Clone this wiki locally