Differences

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

Link to this comparison view

documentation:white-pages:latest:config_gallery [2019/07/16 19:08] (current)
Line 1: Line 1:
 +====== Gallery menu ======
 +
 +<​note>​Configuration file: use [[config_general#​configuration_files|White-Pages'​ local configuration file]]</​note>​
 +
 +The gallery feature list all photos with the user's names.
 +
 +The gallery is displayed in menu.
 +
 +===== Activation =====
 +
 +Enable or disable this feature:
 +<file php>
 +$use_gallery = true;
 +</​file>​
 +
 +<note important>​You should not enable this feature on a large directory as all (or [[.:​config_ldap#​size_limit|a lot of]]) entries are displayed.</​note>​
 +
 +===== Display =====
 +
 +Set which item is used as footer title:
 +<file php>
 +$gallery_title = "​fullname";​
 +</​file>​
 +
 +Set on which item results are sorted:
 +<file php>
 +$gallery_sortby = "​lastname";​
 +</​file>​
 +
 +Define [[http://​getbootstrap.com/​css/#​grid|bootstrap]] column class:
 +<file php>
 +$gallery_bootstrap_column_class = "​col-xs-6 col-sm-4 col-md-3";​
 +</​file>​
 +
 +Truncate title to fit in box foot:
 +<file php>
 +$gallery_truncate_title_after = "​25";​
 +</​file>​
 +
 +===== Filter =====
 +
 +Gallery page uses the default LDAP user filter. But you can override it, for example to display entries that have the jpegPhoto attribute:
 +<file php>
 +$gallery_user_filter = "​(&"​.$ldap_user_filter."​(jpegPhoto=*))";​
 +</​file>​