2015-07-15 12:05:36 +02:00
|
|
|
|
## Save to Wallabag plugin for Shaarli
|
|
|
|
|
|
|
|
|
|
For each link in your Shaarli, adds a button to save the target page in your [wallabag](https://www.wallabag.org/).
|
|
|
|
|
|
2015-12-22 10:20:27 +01:00
|
|
|
|
### Installation
|
|
|
|
|
|
2015-07-15 12:05:36 +02:00
|
|
|
|
Clone this repository inside your `tpl/plugins/` directory, or download the archive and unpack it there.
|
|
|
|
|
The directory structure should look like:
|
|
|
|
|
|
|
|
|
|
```
|
|
|
|
|
└── tpl
|
|
|
|
|
└── plugins
|
|
|
|
|
└── wallabag
|
|
|
|
|
├── README.md
|
2015-12-22 10:20:27 +01:00
|
|
|
|
├── config.php.dist
|
2015-07-15 12:05:36 +02:00
|
|
|
|
├── wallabag.html
|
2015-12-22 10:20:27 +01:00
|
|
|
|
├── wallabag.php
|
2015-07-15 12:05:36 +02:00
|
|
|
|
└── wallabag.png
|
|
|
|
|
```
|
|
|
|
|
|
2015-12-22 10:20:27 +01:00
|
|
|
|
To enable the plugin, add `'wallabag'` to your list of enabled plugins in `data/options.php` (`PLUGINS` array).
|
|
|
|
|
This should look like:
|
2015-07-15 12:05:36 +02:00
|
|
|
|
|
|
|
|
|
```
|
|
|
|
|
$GLOBALS['config']['PLUGINS'] = array('qrcode', 'any_other_plugin', 'wallabag')
|
|
|
|
|
```
|
|
|
|
|
|
2015-12-22 10:20:27 +01:00
|
|
|
|
### Configuration
|
|
|
|
|
|
|
|
|
|
Copy `config.php.dist` into `config.php` and setup your instance.
|
2015-07-15 12:05:36 +02:00
|
|
|
|
|
2015-12-22 10:20:27 +01:00
|
|
|
|
*Wallabag instance URL*
|
2015-07-15 12:05:36 +02:00
|
|
|
|
```
|
2015-12-22 10:20:27 +01:00
|
|
|
|
$GLOBALS['config']['WALLABAG_URL'] = 'http://v2.wallabag.org' ;
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
*Wallabag version*: either `1` (for 1.x) or `2` (for 2.x)
|
|
|
|
|
```
|
|
|
|
|
$GLOBALS['config']['WALLABAG_VERSION'] = 2;
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
> Note: these settings can also be set in `data/config.php`.
|