There is a bunch of plugins shipped with Shaarli, where there is nothing to do to install them.
If you want to install a third party plugin:
plugins
directory in Shaarli's installation folder.| index.php
| plugins/
|---| custom_plugin/
| |---| custom_plugin.php
| |---| ...
In Shaarli's administration page (Tools
link), go to Plugin administration
.
Here you can enable and disable all plugins available, and configure them.
In the plugin administration page, you can move enabled plugins to the top or bottom of the list. The first plugins in the list will be processed first.
This is important in case plugins are depending on each other. Read plugins README details for more information.
Use case: The (non existent) plugin shaares_footer
adds a footer to every shaare in Markdown syntax. It needs to be processed before (higher in the list) the Markdown plugin. Otherwise its syntax won't be translated in HTML.
Enabled plugin are stored in your config.php
parameters file, under the array
:
$GLOBALS['config'['ENABLED_PLUGINS']]('ENABLED_PLUGINS'].html)
You can edit them manually here.
Example:
$GLOBALS['config'['ENABLED_PLUGINS'] = array(]('ENABLED_PLUGINS']-=-array(.html)
'qrcode',
'archiveorg',
'wallabag',
'markdown',
);
Usage of each plugin is documented in it's README file:
addlink-toolbar
: Adds the addlink input on the linklist pagearchiveorg
: For each link, add an Archive.org iconmarkdown
: Render shaare description with Markdown syntax.playvideos
: Add a button in the toolbar allowing to watch all videos.qrcode
: For each link, add a QRCode icon.readityourself
: For each link, add a ReadItYourself icon to save the shaared URLwallabag
: For each link, add a Wallabag icon to save it in your instance.