X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=plugins%2Fwallabag%2FREADME.md;h=3f9305643aa7b55bcf4ec34c6f771a65a119f382;hb=0c4c7ae818336d5b0f94562e551ca1a3f34d3435;hp=08e0d44a0921e7af96b1dd3e3ee883812cd4f8bd;hpb=66017e28935c72ad4ed037f022483ee5630e7372;p=github%2Fshaarli%2FShaarli.git diff --git a/plugins/wallabag/README.md b/plugins/wallabag/README.md index 08e0d44a..3f930564 100644 --- a/plugins/wallabag/README.md +++ b/plugins/wallabag/README.md @@ -2,7 +2,8 @@ For each link in your Shaarli, adds a button to save the target page in your [wallabag](https://www.wallabag.org/). -### Installation/configuration +### Installation + Clone this repository inside your `tpl/plugins/` directory, or download the archive and unpack it there. The directory structure should look like: @@ -12,18 +13,25 @@ The directory structure should look like:    └── wallabag    ├── README.md    ├── wallabag.html -    └── wallabag.png +    ├── wallabag.meta +    ├── wallabag.php +    ├── wallabag.php +    └── WallabagInstance.php ``` -To enable the plugin, add `'wallabag'` to your list of enabled plugins in `data/options.php` (`PLUGINS` array) -. This should look like: +To enable the plugin, you can either: -``` -$GLOBALS['config']['PLUGINS'] = array('qrcode', 'any_other_plugin', 'wallabag') -``` + * enable it in the plugins administration page (`?do=pluginadmin`). + * add `wallabag` to your list of enabled plugins in `data/config.json.php` (`general.enabled_plugins` section). -Then, set the `WALLABAG_URL` variable in `data/options.php` pointing to your wallabag URL. Example: +### Configuration -``` -$GLOBALS['config']['WALLABAG_URL'] = 'http://demo.wallabag.org' ; //Base URL of your wallabag installation -``` \ No newline at end of file +Go to the plugin administration page, and edit the following settings (with the plugin enabled). + +**WALLABAG_URL**: *Wallabag instance URL* +Example value: `http://v2.wallabag.org` + +**WALLABAG_VERSION**: *Wallabag version* +Value: either `1` (for 1.x) or `2` (for 2.x) + +> Note: these settings can also be set in `data/config.json.php`, in the plugins section. \ No newline at end of file