Differences

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

Link to this comparison view

documentation:white-pages:latest:config_advanced_search [2018/04/18 14:41] (current)
Line 1: Line 1:
 +====== Advanced search ======
  
 +<​note>​Configuration file: use [[config_general#​configuration_files|White-Pages'​ local configuration file]]</​note>​
 +
 +The advanced search feature allows to search on multiple attributes (attribute1 and attribute2 and ...) with a substring matching (default), an exact matching (through checkboxes) and an ordering matching (for dates).
 +
 +The advanced search button is displayed in menu.
 +
 +
 +===== Activation =====
 +
 +Enable or disable this feature:
 +<file php>
 +$use_advanced_search = true;
 +</​file>​
 +
 +===== Criteria =====
 +
 +List items that are available in search form:
 +<file php>
 +$advanced_search_criteria = array('​firstname',​ '​lastname',​ '​mail',​ '​title',​ '​businesscategory',​ '​employeetype',​ '​created',​ '​modified'​);​
 +</​file>​
 +
 +<note tip>The search input look is linked to the item ''​type'',​ see [[.:​config_attributes]]</​note>​
 +
 +===== Objects to search =====
 +
 +You can display radio buttons to choose which objects are searched. By default, search is done on users:
 +<file php>
 +$advanded_search_display_search_objects = true;
 +</​file>​
 +
 +If you search on groups, criteria are the same than for users.