Differences

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

Link to this comparison view

documentation:white-pages:latest:config_display_results [2018/03/06 15:29] (current)
Line 1: Line 1:
 +====== Display results ======
  
 +===== Display mode =====
 +
 +Set which mode is used to display results when doing a [[config_quick_search|quick search]] or an [[config_advanced_search|advanced search]] :
 +<file php>
 +$results_display_mode = "​boxes"; ​ // boxes or table
 +</​file>​
 +
 +<note important>​This parameter doesn'​t change display of [[config_directory|Directory (table)]] and [[config_gallery|Gallery (boxes)]] menus.</​note>​
 +===== Display items =====
 +
 +
 +
 +List which items are shown in result box:
 +<file php>
 +$search_result_items = array('​mail',​ '​phone',​ '​mobile'​);​
 +</​file>​
 +
 +<​note>​The items identifiers are those defined in [[.:​config_attributes|attributes map]]</​note>​
 +
 +Set which item is used as result box title:
 +<file php>
 +$search_result_title = "​fullname";​
 +</​file>​
 +
 +Set on which item results are sorted:
 +<file php>
 +$search_result_sortby = "​lastname";​
 +</​file>​
 +
 +Display or not undefined values:
 +<file php>
 +$search_result_show_undefined = true;
 +</​file>​
 +
 +Define [[http://​getbootstrap.com/​css/#​grid|bootstrap]] column class:
 +<file php>
 +$search_result_bootstrap_column_class = "​col-md-4";​
 +</​file>​
 +
 +Truncate values to fit in result box:
 +<file php>
 +$search_result_truncate_value_after = "​20";​
 +</​file>​
 +
 +Truncate title to fit in box head:
 +<file php>
 +$search_result_truncate_title_after = "​30";​
 +</​file>​