forked from ltb-project/white-pages
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ltb-project#88 galery menu & csv export
- Loading branch information
Paul Curie
committed
Jun 7, 2021
1 parent
4552eaa
commit df5fbf9
Showing
3 changed files
with
102 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
CSV export | ||
============ | ||
|
||
.. note:: Configuration file: ``white-pages/conf/config.inc.local.php`` | ||
|
||
The gallery feature list all photos with the user's names. | ||
|
||
The gallery is displayed in menu. | ||
|
||
Activation | ||
---------- | ||
|
||
Enable or disable this feature : | ||
|
||
.. code-block:: php | ||
$use_csv = true; | ||
File name | ||
--------- | ||
|
||
Set the CSV file name : | ||
|
||
.. code-block:: php | ||
$csv_filename = "white_pages_export_" . date("Y-m-d") . ".csv"; | ||
Items | ||
----- | ||
|
||
List the items that will be put in CSV file : | ||
|
||
.. code-block:: php | ||
$csv_items = array('firstname', 'lastname', 'mail','organization'); | ||
.. tip:: | ||
|
||
To have same fields between Advanced search menu and CSV export : | ||
|
||
.. code-block:: php | ||
$csv_items = $search_result_items; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
Gallery menu | ||
============ | ||
|
||
.. note:: Configuration file: ``white-pages/conf/config.inc.local.php`` | ||
|
||
The gallery feature list all photos with the user's names. | ||
|
||
The gallery is displayed in menu. | ||
|
||
Activation | ||
---------- | ||
|
||
Enable or disable this feature : | ||
|
||
.. code-block:: php | ||
$use_gallery = true; | ||
.. warning:: You should not enable this feature on a large directory as all (or a lot of) entries are displayed. | ||
|
||
Display | ||
------- | ||
|
||
Set which item is used as footer title : | ||
|
||
.. code-block:: php | ||
$gallery_title = "fullname"; | ||
Set on which item results are sorted : | ||
|
||
.. code-block:: php | ||
$gallery_sortby = "lastname"; | ||
Define bootstrap_ column class : | ||
|
||
.. _bootstrap: http://getbootstrap.com/css/#grid | ||
|
||
.. code-block:: php | ||
$gallery_bootstrap_column_class = "col-xs-6 col-sm-4 col-md-3"; | ||
Truncate title to fit in box foot : | ||
|
||
.. code-block:: php | ||
$gallery_truncate_title_after = "25"; | ||
Filter | ||
------- | ||
|
||
Gallery page uses the default LDAP user filter. But you can override it, for example to display entries that have the jpegPhoto attribute : | ||
|
||
.. code-block:: php | ||
$gallery_user_filter = "(&".$ldap_user_filter."(jpegPhoto=*))"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters