customizing csv export

Archived from the Xataface Users forum.

generated — Mon Nov 19, 2007 2:42 pm

Similar to Order in the fields.ini file. Is there a way to change the order of fields for the csv export, as well as setting fields to show/hide in csv export.

I need to show and hide fields, and order fields based on values in the users table for whoever is logged in.

Any help appreciated, thanks!


shannah — Tue Nov 20, 2007 1:36 pm

Currently there isn’t very much flexibility here. The next version will add a lot more, including a visibility:csv parameter in the fields.ini file, and respect for the ordering defined in the fields.ini file.

I’ll see about posting an updated version of actions/export_csv.php for you so that you can have some of these features earlier than the release, but I’ll need to find some time first…. bug me in a week if I haven’t posted it yet.

-Steve


kevinwen — Tue Dec 29, 2009 5:30 pm

Hi, Steve

I found there is no headings exported when no relationship exists in the query in the handle function (comparing line70-74 with line 89-93) in the actions/export_csv.php. Is this a bug or just for some reason?

-Kevin


shannah — Tue Dec 29, 2009 5:44 pm

This may have been for some reason way back… but for the sake of consistency and the most desireable behavior I would classify this as a bug now. I have fixed this problem in SVN (rev. 1694). You can download the latest at http://weblite.ca/svn/dataface/core/tru … rt_csv.php

-Steve