<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ru">
	<id>http://wiki.mipt.ru/index.php?action=history&amp;feed=atom&amp;title=Filter_applink</id>
	<title>Filter applink - История изменений</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.mipt.ru/index.php?action=history&amp;feed=atom&amp;title=Filter_applink"/>
	<link rel="alternate" type="text/html" href="http://wiki.mipt.ru/index.php?title=Filter_applink&amp;action=history"/>
	<updated>2026-05-08T04:23:39Z</updated>
	<subtitle>История изменений этой страницы в вики</subtitle>
	<generator>MediaWiki 1.42.1</generator>
	<entry>
		<id>http://wiki.mipt.ru/index.php?title=Filter_applink&amp;diff=8909&amp;oldid=prev</id>
		<title>Олег Давидович: 1 версия импортирована</title>
		<link rel="alternate" type="text/html" href="http://wiki.mipt.ru/index.php?title=Filter_applink&amp;diff=8909&amp;oldid=prev"/>
		<updated>2024-10-18T06:54:50Z</updated>

		<summary type="html">&lt;p&gt;1 версия импортирована&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;ru&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Предыдущая версия&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Версия от 06:54, 18 октября 2024&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;ru&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(нет различий)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Олег Давидович</name></author>
	</entry>
	<entry>
		<id>http://wiki.mipt.ru/index.php?title=Filter_applink&amp;diff=8908&amp;oldid=prev</id>
		<title>1&gt;Dpalou: /* Installation */</title>
		<link rel="alternate" type="text/html" href="http://wiki.mipt.ru/index.php?title=Filter_applink&amp;diff=8908&amp;oldid=prev"/>
		<updated>2019-06-17T06:13:58Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Installation&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Новая страница&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==Introduction==&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
You can also specify if you want to use a certain username in the app.&lt;br /&gt;
&lt;br /&gt;
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&amp;#039;t need to open it with a link).&lt;br /&gt;
&lt;br /&gt;
==Installation==&lt;br /&gt;
You can download this plugin from [https://moodle.org/plugins/view.php?id=2304 the Moodle plugins directory] or from [https://github.com/dpalou/moodle-filter_applink the source repository]. It can be installed using any of the methods supported by Moodle. If you are unsure, please visit [https://docs.moodle.org/en/Installing_plugins#Installing_a_plugin this page].&lt;br /&gt;
&lt;br /&gt;
To install it manually, unzip the plugin in the moodle .../filter/ directory.&lt;br /&gt;
&lt;br /&gt;
==Enabling/Disabling the filter on your site==&lt;br /&gt;
The WebService filter must be enabled before it can be used on your Moodle site (it is disabled by default, after installation). To enable (or disable) the plugin site-wide, visit &amp;quot;Site Administration &amp;gt;&amp;gt; Plugins &amp;gt;&amp;gt; Filters &amp;gt;&amp;gt; Manage Filters&amp;quot;, locate the &amp;#039;Moodle App link&amp;#039; filter and click on the dropdown box to enable it (or disable it).&lt;br /&gt;
&lt;br /&gt;
==How to use==&lt;br /&gt;
You need to add the attribute &amp;quot;&amp;#039;&amp;#039;data-app-link&amp;#039;&amp;#039;&amp;quot; to the links that you want to convert to a link to open the app:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
&amp;lt;a href=&amp;quot;https://domain.com/course/view.php?id=2&amp;quot; data-app-link&amp;gt;Click me&amp;lt;/a&amp;gt;&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If no value is assigned to &amp;#039;&amp;#039;data-app-link&amp;#039;&amp;#039;, the default URL scheme will be used. The default scheme can be changed in &amp;quot;Site Administration &amp;gt;&amp;gt; Plugins &amp;gt;&amp;gt; Filters &amp;gt;&amp;gt; Moodle App link&amp;quot;. Leaving this setting empty will use the official Moodle app scheme: &amp;quot;moodlemobile&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
If you want to force a scheme only for a certain link you can do it like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
&amp;lt;a href=&amp;quot;https://domain.com/course/view.php?id=2&amp;quot; data-app-link=&amp;quot;myscheme&amp;quot;&amp;gt;Click me&amp;lt;/a&amp;gt;&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Add a username===&lt;br /&gt;
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&amp;#039;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.&lt;br /&gt;
&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
You can force to use a certain username, like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
&amp;lt;a href=&amp;quot;https://domain.com/course/view.php?id=2&amp;quot; data-app-link data-username=&amp;quot;john.smith&amp;quot;&amp;gt;Click me&amp;lt;/a&amp;gt;&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If data-username is left empty, the filter will automatically add the username of the user that&amp;#039;s viewing the link:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
&amp;lt;a href=&amp;quot;https://domain.com/course/view.php?id=2&amp;quot; data-app-link data-username&amp;gt;Click me&amp;lt;/a&amp;gt;&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In the example above, the app will be opened with the same user I&amp;#039;m using in browser.&lt;br /&gt;
&lt;br /&gt;
==Atto plugin==&lt;br /&gt;
There is a plugin to add this filter using an Atto button. You can see the documentation [https://docs.moodle.org/en/index.php?title=atto_applink in here].&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
&lt;br /&gt;
* [https://docs.moodle.org/dev/Open_the_Moodle_app_from_another_app Open the Moodle app from another app]&lt;br /&gt;
* [https://github.com/dpalou/moodle-filter_applink Source code]&lt;/div&gt;</summary>
		<author><name>1&gt;Dpalou</name></author>
	</entry>
</feed>