14 May 2010 at 10:07pm
(Last edited: 14 May 2010 10:08pm),
I've searched the forums/documentation and can't find any info on this...
With the ModelAdmin export to CSV function, is it possible to export more than just the summary fields that are displayed?
When my client is using the system it is only sufficient for them to see 4 or 5 summary fields of the DataObject but would like to be able to export ALL fields of the DataObject to CSV. I've had a look at [url]http://doc.silverstripe.org/tablelistfield[/url] but don't know how to tie this into the default CSV Export button in modeladmin, or if I need to create a custom CsvQuery?
I have found a solution. It's not the best, but it works...
In the DataObject of the ModelAdmin I have defined the variable $summary_fields with all the fields I need in my csv file.
public static $summary_fields = array('var1','var2', 'var3');