PLUGIN README
csvExport - Add "CSV Export" option to Advanced Commands pulldown in all
sections
-------------------------------------------------------------------------------


TECHNICAL OVERVIEW
-------------------------------------------------------------------------------
This plugin adds a new "CSV Export" option to the "Advanced Commands" pulldown
on the list page for all sections.

This new option can be selected to generate a CSV export file of all the
records in the current section.

This CSV file can then be opened in Microsoft Excel or imported by any number
of other applications.


USER CONFIGURABLE SETTINGS
-------------------------------------------------------------------------------
For advanced users who have some comfort and familiarity with PHP, the
following settings within the plugin file can be modified:

$GLOBALS['CSVEXPORT_ADMIN_ONLY'] = false;
// Only allow admin users to use CSV export (example: true or false)

$GLOBALS['CSVEXPORT_INCLUDE']    = array();
// List of tables to include, leave blank for all.  Example: ('news','jobs','etc')

$GLOBALS['CSVEXPORT_SKIP_FIELDS']  = array('dragSortOrder','createdBy._link','_filename','_link');
// These fields won't be exported from any table.  Example: ('_filename','_link','lastUpdated','etc')

$GLOBALS['CSVEXPORT_CREATED_BY']   = false; // include createdBy.* fields
// Add user fields for the user who created the record.

$GLOBALS['CSVEXPORT_FOR_EXCEL']    = true;
// format CSV output for excel only (convert utf8 to windows charset and escape zero padded numbers as ="0123" so they show in excel)

// You can set custom row order and field order by section below.
// Replace 'example' with your section name (eg: news) an duplicate for each section
$GLOBALS['CSVEXPORT_ORDER_BY']['example']    = 'title, num DESC';
$GLOBALS['CSVEXPORT_FIELD_ORDER']['example'] = array('num','title');

-------------------------------------------------------------------------------
end of file.
