Sorting and exporting FEU to CSV / text file

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
Mich-adg
Forum Members
Forum Members
Posts: 200
Joined: Sat Aug 02, 2008 9:08 pm

Sorting and exporting FEU to CSV / text file

Post by Mich-adg »

Hi,
i'm wondering if it is possible to sort and then export a feu list to a csv file, i.e. : i sort the users by country field, and then export this list to a file.
With FEU module it is not possible, but perhaps another additionnal module? I searched on the forge but no one seems to do that, or it is not noticed in the infos (?).
Thanks for any help or suggestion!
User avatar
stefhoesli
Forum Members
Forum Members
Posts: 56
Joined: Mon Sep 19, 2011 1:06 pm

Re: Sorting and exporting FEU to CSV / text file

Post by stefhoesli »

Hi there,

Don't think any module offers that capability. So alternatively, why don't you sort the resulting csv instead? With the unix sort command this can easily be done like this:

sort -t \, -k 2 file.csv

Where you give the position of the element you want to be used as key for sorting after the -k option.

Regards
Stef
Mich-adg
Forum Members
Forum Members
Posts: 200
Joined: Sat Aug 02, 2008 9:08 pm

Re: Sorting and exporting FEU to CSV / text file

Post by Mich-adg »

Thanks for the tip, i didn't know that was possible in this way, but i want an easier solution for the editors of the site (wich are not specialists).
User avatar
stefhoesli
Forum Members
Forum Members
Posts: 56
Joined: Mon Sep 19, 2011 1:06 pm

Re: Sorting and exporting FEU to CSV / text file

Post by stefhoesli »

Your users could of course also load the csv file into a spreadsheet and sort it there.

But if you insist that the CSV should come pre-formatted in the way you want, then you could create a user defined tag with some smarty / PHP magic that will do the trick. Maybe you want to look at the CGUserDirectory module in order to get some starting points.
Post Reply

Return to “Modules/Add-Ons”