Highlights
- Import data into EE from CSV file
- Makes batch imports easy
CSVGrab is a variation of one of my other plugins FeedGrab, and allows you to import data from a CSV file into a weblog.
Usage is similar to FeedGrab, the template:
{exp:csvgrab url="http://www.url.co.uk/products.csv"
weblog="5"
title="1"
skip="6"
delimiter="TAB"
encloser=""
use="2|3"
fields="prod_description|prod_keywords" }
imports a tab delimited CSV file into the weblog with id of 5, skipping the first 6 lines.
It uses column 1 as the title field, and columns 2 and 3 as the custom fields prod_description and prod_keywords.
delimiter is the character that separates the columns, encloser is the character that wraps the column.
eg, “Title”,"Description”,"Keywords" has a comma delimiter and a quote encloser.
EE ‘cleans up’ plugin parameters, so for delimiter and encloser use the following codes rather than the actual character: TAB, SPACE, QUOTE, eg,
delimiter="TAB" encloser="QUOTE"
A forum thread exists on ExpressionEngine for bug reports, feature requests etc.
Download: EE CSVGrab plugin.
Comments
Related articles
- FeedGrab and CSVGrab now multiple site compatible
- Setting up an ExpressionEngine Opensearch plugin
- A simple ExpressionEngine search page
- ExpressionEngine FeedGrab plugin tutorial
- Akismet extension for ExpressionEngine
- FeedGrab ExpressionEngine plugin
Most recent articles
- FeedGrab and CSVGrab now multiple site compatible
- Rejigging brandnewbox
- Safari 3 beta launched for OS X and Window
- Spot the difference
- Setting up an ExpressionEngine Opensearch plugin
1. Sue Crocker
4th Jan 2007 at 7:49 am