Moodle App link

Filters ::: filter_applink
Maintained by Dani Palou
Part of set Moodle Mobile app.
With this plugin you can easily create links to open the Moodle App (or your custom app if you have one).

Moodle App link 1.0.0

Moodle 3.1, 3.2, 3.3, 3.4, 3.5, 3.6, 3.7
Released: Monday, 17 June 2019, 4:41 PM

Moodle App link filter plugin

With this plugin you can easily create links to open the Moodle App (or your custom app if you have one). You only need to specify the URL that you want to be opened (e.g. a course URL) and the filter will automatically create the URL to launch the app.

You can also specify if you want to use a certain username in the app.

This filter will be applied when the user navigates using a browser, but not when the user navigates using the app (the app is already open, you don't need to open it with a link).

To Install it manually

  • Unzip the plugin in the moodle .../filter/ directory.
  • Enable it from "Site Administration >> Plugins >> Filters >> Manage filters".

To Use it

Just add the attribute "data-app-link" to a regular link:

<a href="https://domain.com/course/view.php?id=2">Click me</a>

If no value is assigned to data-app-link, the default URL scheme will be used. The default scheme can be changed in "Site Administration >> Plugins >> Filters >> Moodle App link". Leaving this setting empty will use the official Moodle app scheme: "moodlemobile".

If you want to force a scheme only for a certain link you can do it like this:

<a href="https://domain.com/course/view.php?id=2">Click me</a>

Add a username

By default, no username will be added to the URL. This means that, if there are several users from that site stored in the app, the app will use the one that's currently logged in. If there is no user currently logged in, the user will have to choose which account does he want to use to open the link.

You can specify a username so the app will force to use that user. If there are several users from that site stored in the app, the app will always use the user you specified. In case that user is not stored, the user will be sent to the credentials screen and the username will be prepopulated.

You can force to use a certain username, like this:

<a href="https://domain.com/course/view.php?id=2">Click me</a>

If data-username is left empty, the filter will automatically add the username of the user that's viewing the link:

<a href="https://domain.com/course/view.php?id=2">Click me</a>

In the example above, the app will be opened with the same user I'm using in browser.

See also

Version information

Version build number
2019061401
Version release name
1.0.0
Maturity
Stable version
MD5 Sum
905cc2b90c7acdfee28acb5d2768514d
Supported software
Moodle 3.1, Moodle 3.2, Moodle 3.3, Moodle 3.4, Moodle 3.5, Moodle 3.6, Moodle 3.7
  • Latest release for Moodle 3.1
  • Latest release for Moodle 3.2
  • Latest release for Moodle 3.3
  • Latest release for Moodle 3.4
  • Latest release for Moodle 3.5
  • Latest release for Moodle 3.6
  • Latest release for Moodle 3.7

Version control information

Version control system (VCS)
Other...
VCS repository URL

Default installation instructions for plugins of the type Filters

  1. Make sure you have all the required versions.
  2. Download and unpack the filter plugin.
  3. Place the folder (eg "myfilter") in the "filter" subdirectory.
  4. Visit http://yoursite.com/admin to finish the installation