Page 1 of 1
Adding content from CSV files?
Posted: Tue Jul 06, 2010 10:33 pm
by antosha
Hi everyone!
I'm currently planning a large-scale project that will be built on CMSMadeSimple.
I currently have a large amount of data in CSV files that need to be in someway integrated into CMSMS so I can use this data on content pages and for specific modules (ex: CGGoogleMaps), etc.
How can this be done? I believe, I need to migrate all this data into my database throgh MySQL queries,... or maybe not?
Thanks

Re: Adding content from CSV files?
Posted: Tue Jul 06, 2010 11:54 pm
by kermit
does the content in the csv contain actual pages or just data to use within a page (e.g. with a udt that reads the csv and outputs the data to display)?
how much data is there (e.g. number of csv fields, how many rows?)
will the csv data change? if so, how do you want to modify that data (e.g. inside cmsms or using whatever existing method that produced the csv you have now)
Re: Adding content from CSV files?
Posted: Wed Jul 07, 2010 6:26 pm
by antosha
The CSV contains various data (not pages) like lat/long coordinates, address, description.
There is a lot of data, one single CSV file can contain 25+ columns and maybe 1000+ rows. So there's is quite a lot of data. (some files are 45Mb+)
And yes, I need the ability to modify that data (preferably through CMSMS). For example, each column is an item (or page) variable and each row is the item itself which I could modify through CMS.
Yesterday I watched some of CMS projects I have been working on a couple of years ago and that reminded me of CTL module maker. This module allows to upload items to the CMS through an XML file. So what I am thinking right now, maybe I could try creating a CTL module, then convert the CSV file into an XML and upload that, et voila!
Re: Adding content from CSV files?
Posted: Wed Jul 07, 2010 7:31 pm
by JeremyBASS
Here is a nifty thing..
http://phpexcel.codeplex.com/
I use it here..
http://98.129.105.19/ which will become
http://loid.net later..
It's the SUMMER WATERING table.. that is a excell sheet (could be a csv if needed) that the client updates of to the side and uploads to the uploads folder.. point is that with that you can instead of outputing like i did you can just do queries and shove it to the db.
Just one more way to skin a cat.. Hope that helps some.. cheers -Jeremy
Re: Adding content from CSV files?
Posted: Wed Jul 07, 2010 10:19 pm
by kermit
Multiple CSVs, up to and over 45 megabytes each, that you want to be able to modify via a web interface..... no question, definitely need a database for best performance.
There are a few "module maker" type modules. Try 'em out on a test setup (e.g. XAMPP or similar) and see which one works best for you. Ideally, one of them will be able to import CSV (or some other format you can convert your data to) with minimal fuss, or at least create a database structure that allows you to import the data via a third party tool (phpMyAdmin, etc).
Re: Adding content from CSV files?
Posted: Thu Jul 08, 2010 1:59 am
by Jeff
Data is very generic. We can help more if you tell us what the data is and what you want to do with it.
With you saying it is something with long/lat, I would probably point you to CompanyDirectory and yes it does have a csv import feature.
ajprog
Re: Adding content from CSV files?
Posted: Mon Jul 12, 2010 5:54 pm
by antosha
thanks guys for your tips.
I figured out that the best way to upload a lot of content is indeed through phpMyAdmin, works great.