contactimporter/README.md

76 lines
2.6 KiB
Markdown
Raw Normal View History

2016-06-19 00:27:43 +02:00
CONTACT IMPORTER AND EXPORTER:
===
2018-03-08 10:50:59 +01:00
## Building the contact importer plugin from source:
2016-06-19 00:27:43 +02:00
2018-03-08 10:50:59 +01:00
### Dependencies
- Kopano WebApp Source Code (https://stash.kopano.io/projects/KW/repos/kopano-webapp/browse)
- PHP >= 5 (7 or higher recommended)
- composer (https://getcomposer.org/)
- JDK 1.8 (http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html)
- ant (http://ant.apache.org/)
Add JAVA_HOME (e.g. C:\Program Files\Java\jdk1.8.0_161) to your path. Also add Ant, Composer, PHP and Java to the global PATH variable!
### Compiling the plugin
Unzip (or use git clone) the sourcecode of Kopano WebApp to a new directory. In this README we call the source folder of WebApp "kopano-webapp-source".
Then generate the WebApp build utils:
2016-06-19 00:27:43 +02:00
```
2018-03-08 10:50:59 +01:00
cd kopano-webapp-source
2016-06-19 00:27:43 +02:00
ant tools
2018-03-08 10:50:59 +01:00
```
Next clone the plugin to the WebApp plugin directory:
```
cd kopano-webapp-source\plugins
2016-06-19 00:27:43 +02:00
git clone https://git.sprinternet.at/zarafa_webapp/contactimporter.git
2018-03-08 10:50:59 +01:00
```
Now lets build the plugin:
```
cd kopano-webapp-source\plugins\contactimporter\php
composer install
cd kopano-webapp-source\plugins\contactimporter
2016-06-19 00:27:43 +02:00
ant deploy
```
2018-03-08 10:50:59 +01:00
The compiled plugin is saved to `kopano-webapp-source\deploy\plugins\contactimporter`.
## Installing the plugin
### From compiled source
Copy the whole folder "contactimporter" to your production WebApp (`kopano-webapp-production\plugins\contactimporter`)
For example:
```
cp -r kopano-webapp-source\deploy\plugins\contactimporter kopano-webapp-production\plugins\
```
### From precompiled download
Download the newest release from https://git.sprinternet.at/zarafa_webapp/contactimporter/tree/master/DIST.
Unzip the downloaded file and copy the plugin folder to your production WebApp.
For example:
```
cp -r Downloads\contactimporter kopano-webapp-production\plugins\
```
## Configuration
Edit the config.php file in the plugin root path to fit your needs.
Available configuration values:
| Configuration Value | Type | Default | Desctription |
| ------------- |:-------------:| ----- | ----- |
| PLUGIN_CONTACTIMPORTER_USER_DEFAULT_ENABLE | boolean | false | Set to true to enable the plugin for all users |
| PLUGIN_CONTACTIMPORTER_DEFAULT | string | "Kontakte" | Default contact folder name (might be "Contacts" on english installations) |
| PLUGIN_CONTACTIMPORTER_TMP_UPLOAD | string | "/var/lib/kopano-webapp/tmp/" | Temporary path to store uploaded v-Cards |
2016-11-01 01:14:46 +01:00
2018-03-08 10:50:59 +01:00
## Usage
2016-06-19 00:27:43 +02:00
2018-03-08 10:50:59 +01:00
The plugin add context menu entries to contact folders.
2016-06-19 00:27:43 +02:00
2018-03-08 10:50:59 +01:00
![Plugin Context Menus](https://git.sprinternet.at/zarafa_webapp/contactimporter/raw/master/usage.png "Kopano Webapp Context Menu")