cvs export

Re: [Maurice] cvs export

By Jason - August 3, 2010

Hi Maurice,

The way the csvExport plugin is set up is it allows you to include which tables you want to export and which fields you want to skip in each table. At the top the .php file, there are 3 variables you can configure:

// UPDATE THESE VALUES
$GLOBALS['CSVEXPORT_ADMIN_ONLY'] = false; // Only allow admin users to use CSV export (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','_filename','_link'); // These fields won't be exported from any table. Example: ('_filename','_link','lastUpdated','etc')


In $GLOBALS['CSVEXPORT_INCLUDE'] you put in the names of the tables you want to export. If you leave the array blank, it will include all tables.

In $GLOBALS['CSVEXPORT_SKIP_FIELDS'] you put in a list of fields that you DON'T want to appear in the csv report. If you leave it blank, it will export all of the fields.

The plugin would have to be customized if you wanted it to only export the table that you are currently in.

Hope this helps.
---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/