Differences

This shows you the differences between two versions of the page.

Link to this comparison view

documentation:white-pages:latest:config_vcard [2018/04/09 16:32] (current)
Line 1: Line 1:
 +====== vCard export ======
 +
 +<​note>​Configuration file: use [[config_general#​configuration_files|White-Pages'​ local configuration file]]</​note>​
 +
 +When displaying an entry, it is possible to export it as vCard. If the feature is activated, a new button is displayed under the other information.
 +
 +<note tip>The vCard format is a standard, you can get more information here: https://​en.wikipedia.org/​wiki/​VCard.</​note> ​
 +
 +===== Activation =====
 +
 +Enable or disable this feature:
 +<file php>
 +$use_vcard = true;
 +</​file>​
 +
 +===== vCard parameters =====
 +
 +Set the vCard version:
 +<file php>
 +$vcard_version = "​4.0";​
 +</​file>​
 +
 +Configure the file name:
 +<file php>
 +$vcard_file_extension = "​vcf";​
 +$vcard_file_identifier = "​identifier";​
 +</​file>​
 +
 +Map the vCard fields to White Pages items (configured in attributes map):
 +<file php>
 +$vcard_map = array('​FN'​ => '​fullname',​ '​N'​ => '​fullname',​ '​EMAIL'​ => '​mail',​ '​CATEGORIES'​ => '​businesscategory',​ '​ORG'​ => '​organization',​ '​ROLE'​ => '​employeetype',​ '​TEL;​TYPE=work,​voice;​VALUE=uri:​tel'​ => '​phone',​ '​TEL;​TYPE=cell,​voice;​VALUE=uri:​tel'​ => '​mobile',​ '​UID'​ => '​identifier'​);​
 +</​file>​