Skip to content

Commit

Permalink
ltb-project#88 galery menu & csv export
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul Curie committed Jun 7, 2021
1 parent 4552eaa commit df5fbf9
Show file tree
Hide file tree
Showing 3 changed files with 102 additions and 0 deletions.
43 changes: 43 additions & 0 deletions docs/csvexport.rst
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;
57 changes: 57 additions & 0 deletions docs/gallerymenu.rst
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=*))";
2 changes: 2 additions & 0 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,5 @@ LDAP Tool Box White-Pages documentation
entriesdisplay.rst
fulldisplay.rst
directorymenu.rst
gallerymenu.rst
csvexport.rst

0 comments on commit df5fbf9

Please sign in to comment.