Differences

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

Link to this comparison view

documentation:white-pages:latest:config_directory [2019/06/23 16:35] (current)
Line 1: Line 1:
 +====== Directory menu ======
  
 +<​note>​Configuration file: use [[config_general#​configuration_files|White-Pages'​ local configuration file]]</​note>​
 +
 +The directory feature list all results in a table form.
 +
 +The directory is displayed in menu.
 +
 +===== Activation =====
 +
 +Enable or disable this feature:
 +<file php>
 +$use_directory = true;
 +</​file>​
 +
 +===== Display =====
 +
 +List which items are shown in result table:
 +<file php>
 +$directory_items = array('​firstname',​ '​lastname',​ '​mail',​ '​organization'​);​
 +$directory_group_items = array('​fullname',​ '​description'​);​
 +</​file>​
 +
 +List which items are clickable in result table (can also be a boolean value):
 +<file php>// Other possible values :
 +// true if you want the whole row clickable ; 
 +// false do the same and hide the button in the first column.
 +$directory_linkto = array('​firstname',​ '​lastname'​);​
 +$directory_group_linkto = array('​fullname'​);​
 +</​file>​
 +
 +Set on which item results are sorted: ​
 +<file php>
 +$directory_sortby = "​lastname";​
 +$directory_group_sortby = "​fullname";​
 +</​file>​
 +
 +Display or not undefined values: ​
 +<file php>
 +$directory_show_undefined = false;
 +</​file>​
 +
 +Truncate values to fit in result table: ​
 +<file php>
 +$directory_truncate_value_after = 30;
 +</​file>​
 +
 +Display the buttons to switch between users and groups:
 +<file php>
 +$directory_display_search_objects = true;
 +</​file>​