Customize filename of csv exported file
2 posts by 2 authors in: Forums > CMS Builder: Plugins & Add-ons
Last Post: March 9, 2020 (RSS)
By andreasml - March 7, 2020
Hi
I wonder whether it is possible to customize the name of the csv file that is extracted with the "CSV Export" plugin.
Regards
Andreas Lazaris
By Damon - March 9, 2020
Hi Andreas,
I wonder whether it is possible to customize the name of the csv file that is extracted with the "CSV Export" plugin.
You can change the CSV file name to anything you want after you download but not before downloading. It uses the table name and data for the file name.
If you wanted to change the name that is used for the default name. In the csvExport.php file you would edit this:
$filename = "$tableName-" . date('Ymd-His') . '.csv';
Hope this helps!
Damon Edis - interactivetools.com
Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/