ARI Smart Content: ARI CSV Table plugin

Joomla CSV plugin, module, extension, component. Shows CSV file in your Joomla content.

Renders table by data from CSV file. Allows create table with customizable columns containing data from CSV file. This plugin is also a part of ARI Smart Content: DataTable Pack

Features:
  • Customizable columns
  • Could be wrapped by other table plugins, for example Flex Grid or Table Sorter to adjust table look and functionality

Example1:


NameValueDateTime12345
First391.4910/2/20084:00pm0.00N/AN/AN/A150
Second500.0010/1/20084:00pm0.00N/AN/AN/A11543
Third145.0010/5/20085:00pm7.00N/AN/AN/A5143
445.0011/5/20073:00pm5.00N/AN/AN/A6443
315.005/5/20071:00pm9.00N/AN/AN/A6443



Usage1:

{aricsvtable file="data.csv"} {aricsvtablecolumns} {aricsvtablecolumn id="ID" alias="ID" width="20%" className="idg"} {aricsvtablecolumn id="NAME" alias="UserName" headerClassName="head"} {/aricsvtablecolumns} {aricsvtablecolumnspan row="-1,0,2,4" startIndex="0" endIndex="3"} {/aricsvtable}

Example2: ARI CSV Table wrapped by ARI JData Table to add sorting and filtering support:


Number1Number2Number3
390.4955523
11010014
110.520120
1105050
3478.55121
3579.55121
3675.55121
200200141
110.520020
110250520
3478.55123
3479.55122
3475.55124
392.4955524
391.4955575



Usage2:

{arijdatatable} {aricsvtable file="data.csv"} {aricsvtablecolumns} {aricsvtablecolumn id="ID" alias="ID" width="20%" className="idg"} {aricsvtablecolumn id="NAME" alias="UserName" headerClassName="head"} {aricsvtablecolumn alias="Virtual Column" headerClassName="head" virtual="true" pos="1"} {coltemplate}{$NAME} - {$ID}{/coltemplate} {/aricsvtablecolumn} {/aricsvtablecolumns} {/aricsvtable} {/arijdatatable}


aricsvtable parameters:

  • file - CSV file(Required). Values: path to CSV file
  • heading - Use first line/entry as field names. Values: true,false
  • sortBy - Sorting field
  • sortDir - Sorting direction.Values: asc, desc
  • sortType - Sorting type. Values: SORT_REGULAR,SORT_NUMERIC,SORT_STRING
  • autoDetect - Auto-detect delimiter. Values: true, false
  • delimiter - Data delimiter
  • enclosure - Data enclosure
  • offset - Number of rows to ignore from beginning of data. Values: number
  • limit - Limits the number of returned rows to specified amount. Values: number
  • header - Display header or not. Values: true, false
  • footer - Display footer or not. Values: true, false
  • cellPadding - Cell padding. Values: number
  • cellSpacing - Cell spacing. Values: number
  • width - Table width. Values: px or percentage
  • className - CSS class name to be applied to the table
  • inputEncoding - Indicate input encoding. Values: input encoding
  • advancedStyling - If this parameter is enabled, HTML table will contain additional CSS classes for each column and row. Values: true, false

aricsvtablecolumn parameters:

  • id - Column name
  • className - CSS class name to be applied to content cells (td)
  • headerClassName - CSS class name to be applied to header (th)
  • width - Width. Values: px, percentage
  • alias - Columns name to be displayed on UI. Values: string
  • headCellTag - HTML tag. Values: th,td
  • cellTag - HTML tag. Values: th,td
  • virtual - Indicate that this column is virtual. Values: true, false
  • hidden - Indicate that this column will be hidden. Values: true, false
  • pos - Column order. Values: integer

aricsvtablecolumnspan parameters:

  • row - Row index(es). Values: zero-based row index (for header and footer use -1);
  • startIndex - Start column index. Values: zero-based column index;
  • endIndex - End column index. Values: zero-based column index;