cvs export
2 posts by 2 authors in: Forums > CMS Builder: Plugins & Add-ons
Last Post: August 3, 2010 (RSS)
By Maurice - August 2, 2010
can I only export the field from the section i'm in?
i want to export users accounts section
and lets say news or any other section.
how could i do that with csv export.
Maurice
i want to export users accounts section
and lets say news or any other section.
how could i do that with csv export.
Maurice
-------------------------------------------
Dropmonkey.nl
Dropmonkey.nl
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:
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.
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/
Jason Sauchuk - Project Manager
interactivetools.com
Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/