A page in your DokuWiki was added or changed. Here are the details:

Date        : 2016/11/24 13:48
Browser     : Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:50.0) Gecko/20100101 
Firefox/50.0
IP-Address  : 193.248.50.71
Hostname    : LStLambert-656-1-262-71.w193-248.abo.wanadoo.fr
Old Revision: ---
New Revision: 
http://ltb-project.org/wiki/documentation/white-pages/latest/config_attributes
Edit Summary: created
User        : coudot

====== Attributes ======

<note>Configuration file: ''white-pages/conf/config.inc.php''</note>

To configure how LDAP attributes are displayed or searched, use the 
''$attributes_map'' parameter which is an array of arrays, with this structure:
  * $attributes_map:
    * item: item identifier
      * attribute: name of LDAP attribute, in lower case
      * faclass: name of [[http://fontawesome.io/|Font Awesome]] icon class
      * type: type of attribute (see below)

The following table shows how ''type'' are used:
^ Type     ^ Display               ^ Search                      ^
| text     | Simple text           | Text input                  |
| mailto   | Link mailto           | Text input                  |
| dn_link  | Link on target entry  | Text input                  |
| boolean  | "Yes" or "No"         | Select                      |
| date     | Formatted date        | Calendar ("from" and "to")  |

Example:
<file php>
$attributes_map = array(
    'businesscategory' => array( 'attribute' => 'businesscategory', 'faclass' 
=> 'briefcase', 'type' => 'text' ),
    'carlicense' => array( 'attribute' => 'carlicense', 'faclass' => 'car', 
'type' => 'text' ),
    'created' => array( 'attribute' => 'createtimestamp', 'faclass' => 
'clock-o', 'type' => 'date' ),
);
</file>

To add a new definition to existing ones:
<file php>
$attributes_map[] = ('fax' => array( 'attribute' => 'facsimiletelephonenumber', 
'faclass' => 'fax', 'type' => 'text' ));
</file>


-- 
This mail was generated by DokuWiki at
http://ltb-project.org/wiki/
_______________________________________________
ltb-changes mailing list
[email protected]
http://lists.ltb-project.org/listinfo/ltb-changes

Reply via email to