Table of Contents

CSV export

Configuration file: use White-Pages' local configuration file

When using the advanced search form, it is possible to export results in a CSV file instead of displaying them. If the feature is activated, a new input button is displayed under the form.


Enable or disable this feature:

$use_csv = true;

File name

Set the CSV file name:

$csv_filename = "white_pages_export_" . date("Y-m-d") . ".csv";


List the items that will be put in CSV file:

$csv_items = array('firstname', 'lastname', 'mail','organization');
To have same fields between Advanced search menu and CSV export :
$csv_items = $search_result_items;