I’d like to know if it’s possible to create a table of information from an imported CSV file. I would like to create a customer list (First, Last, Age, Email, Address, Phone, etc.) and display that list sorted by Age. Does anyone know of a solution for this? Or does anyone have an idea of how it could be done? Thanks.
Quote from: ganeshXL at May 20, 2008, 01:09 PMHere’s a basic example of a "csv to modx html table" snippet: http://modxcms.com/forums/index.php/topic,25588.msg156984.html#msg156984
Cool

Thanks !
Quote from: ganeshXLHowever, you can’t do sorting on a specific field with this. That’s why it’s almost always better to create a DB-table. Then you can easily ORDER BY foo ASC | DESC etc. It would probably be possible too with a csv, but you’d need to create multidimensional arrays and sort those - or make sure the CSV is already sorted the way you want.
Or you could use jQuery’s
tablesorter to sort the table too
Of course, that not server side, but it can be a quick and dirty solution, for the lazy ones
.: COO - Commerce Guys - Community Driven Innovation :.
MODx est l'outil id
@ cbaone I’m just finishing a module based on the existing WebusersImport one.
So far I have two extra tables of 13 columns & 2 columns in the DB to be updated from inside the Manager via .csv files.
I’m trying to make it as foolproof as possible for the clients.
Here’s a screen shot of the progress:
@bunk58:
Awesome. I’m gonna have to check it out. Thanks for sharing!