Differences

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

Link to this comparison view

documentation:white-pages:latest:config_display [2019/07/17 15:53] (current)
Line 1: Line 1:
 +====== Full display ======
  
 +<​note>​Configuration file: use [[config_general#​configuration_files|White-Pages'​ local configuration file]]</​note>​
 +
 +This page is displayed when clicking on a search result, or directly if there is only one entry matching the search query.
 +
 +List which items are displayed:
 +  * For user entry:
 +<file php>
 +$display_items = array('​firstname',​ '​lastname',​ '​title',​ '​businesscategory',​ '​employeenumber',​ '​employeetype',​ '​mail',​ '​phone',​ '​mobile',​ '​fax',​ '​postaladdress',​ '​street',​ '​postalcode',​ '​l',​ '​state',​ '​manager',​ '​secretary',​ '​organizationalunit',​ '​organization',​ '​description'​ );
 +</​file>​
 +  * For group entry:
 +<file php>
 +$display_group_items = array('​fullname',​ '​description',​ '​member',​ '​uniquemember',​ '​memberof'​);​
 +</​file>​
 +Set which item is used as title:
 +<file php>
 +$display_title = "​fullname";​
 +</​file>​
 +
 +Display or not undefined values in full display:
 +<file php>
 +$display_show_undefined = false;
 +</​file>​
 +
 +Add an "​edit"​ button to link to another application that can modify the entry:
 +<file php>
 +$display_edit_link = "​http://​ldapadmin.example.com/?​dn={dn}
 +</​file>​
 +
 +<note tip>Use ''​{dn}''​ to pass entry DN as parameter</​note>​