Skip to content

This plugin extends LTI through custom request parameters.

Notifications You must be signed in to change notification settings

catalyst/moodle-ltisource_params

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GitHub Workflow Status (branch)

Custom params LTI extension

The plugin provides a way to extend LTI custom parameters.

Branches

Moodle version Branch
Moodle 4.1+ MOODLE_401_STABLE

How it works

This plugin lets any other plugin implement a list of placeholders that can be used to populate custom LTI parameters for LTI tools.

When LTI request is being built those placeholders are replaced by real values.

A list of all available placeholders are displayed on activity editing form.

Out of the box the plugin supports:

  • Course parameter provider
  • User parameter provider

That gives a list of placeholders that can be converted to values related selected provider. For example, to a course or that LTI activity is stored at. E.g. placeholder Params.course.fullname will give a course full name. So custom LTI parameters may look like c.name=Params.course.fullname

In-built parameter providers

  • Course (including course custom fields)

Implementing new parameter providers

The plugin is written in a way that any other plugins can implement parameters providers so they could be used in LTI activity form as placeholders.

As an example, plugin itself got some parameter providers; the directory structure is as follows:

ltisource_params
└── classes
    └── local
        └── ltisource_params
           └── providers
                 └── course.php

Each provider must extend the base class.

Installing via uploaded ZIP file

  1. Log in to your Moodle site as an admin and go to Site administration > Plugins > Install plugins.
  2. Upload the ZIP file with the plugin code. You should only be prompted to add extra details if your plugin type is not automatically detected.
  3. Check the plugin validation report and finish the installation.

Installing manually

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

{your/moodle/dirroot}/mod/lti/source/params

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.

Warm thanks

Thanks to Monash University (https://www.monash.edu) for funding the development of this plugin.

License

2023 Catalyst IT

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see https://www.gnu.org/licenses/.

About

This plugin extends LTI through custom request parameters.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published