CSV Plugin

csv plugin by Andreas Gohr
Display CSV as table

Last updated on 2009-05-25. Provides Syntax.
No compatibility info given!

Tagged with csv, tables.

This plugin was originally written by Steven Danz. The current version fixes security bugs and incorporates several patches by other contributors.

Description

This is a simple plugin that will display CSV data in table form. The data can either be inline between <csv> and </csv> or be read from a file in the media area using <csv namespace:test.csv></csv>.

If you are planning to use csv files in the media area, you will most likely need to include the .csv file extension in mime.local.conf so you can upload .csv files. Something like this should get you started:

csv     application/msexcel

The <csv> tag allows for additional options to be specified as well as a file reference.

Option Description
hdr_rows=<n> Format the first <n> rows of data from the CSV as column headers. Default: 1
span_empty_cols=[01] Create colspans for each empty (two adjacent commas) cell following a cell with content. Default: 0
delim=<char> The delimiter used between cells. Specify tab for a tab separated file. Default: ,

Cells that include a comma as part of the data are expected to be contained between double quotes, which is the typical behaviour of most systems when exporting .csv files.

Download

To install this plugin manually or through the plugin manager use the following URL:

Changes

 
plugin/csv.txt · Last modified: 2009/05/25 15:16 by andi
 
Except where otherwise noted, content on this wiki is licensed under the following license:CC Attribution-Noncommercial-Share Alike 3.0 Unported
Imprint Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki
WikiForumIRCBugsDarcsXRefTranslate