The Joomla! Extensions Directory ™


CSV 2 Table Plugin

CSV 2 table plugin - for example insert into content

{csv}rows;and;values;here
and;second;row;neccessary{/csv}.

and it will replace this text to normal HTML table with sorting by column ablility.

For additional styling use .displaycsv_sortable or .displaycsv_sortable_not classes or ids csvtable0, csvtable1, csvtable2.

You can change default separator in plugin settings. If you upgrade from previous version - reapply the settings. Do not forget to puublish the plugin.

Report

2011-05-26
Reviews: 5
Very basic plugin. Just does what it shall do, without any "plus".

It lacks a demo.

Note that the CSV file has to be a "coma" separated file, and not "semi column" as Excel saves it for example.

All lines shall be separated by the HTML tags.

The best way to enter the data is by edinting the HTML of the article and copy/paste the data you prepared in Notepad in the following format :

{csv}
Gender, Age, Height
M,12,1.36
F,13,1.48
M,10,1.29
{/csv}

In the plugin administration, you can activate the ability to sort the table : put a 1 in the "sortable" box. Then, when you cilck on the header, the table will be sorted.