> CSV to SortTable wordpress plugin resources analysis

CSV to SortTable wordpress plugin resources analysis

Download This Plugin
Download Elegant Themes
Name CSV to SortTable
Version 4.2
Author sscovil
Rating 98
Last updated 2013-07-11 11:13:00
Downloads
8220
Download Plugins Speed Test plugin for Wordpress

Home page

Delta: 0%

Post page

Delta: 0%
CSV to SortTable plugin has no negative impact on PageSpeed score.

Home page PageSpeed score has been degraded by 0%, while Post page PageSpeed score has been degraded by 0%

CSV to SortTable plugin added 2 bytes of resources to the Home page and 25 bytes of resources to the sample Post page.

CSV to SortTable plugin added 0 new host(s) to the Home page and 0 new host(s) to the sample Post page.

Great! CSV to SortTable plugin ads no tables to your Wordpress blog database.

CSV to SortTable is great for anyone who wants to display information from a spreadsheet on a WordPress website. This plugin can be used to display product catalogs, inventory lists, leaderboards or anything else that can be stored in a CSV file.

How To Use

Insert a sortable table into any page or post using this shortcode:

[csv src=http://example.com/myfile.csv]

The result will be a beautiful, semantically-correct HTML table populated with the contents of your file.

Optional Features

This plugin automatically does a few things for you, all of which can be disabled:

  1. Adds some CSS to make the table look nice.
  2. Converts image file URLs into clickable image links.
  3. Converts certain file URLs into clickable file-type icons (.doc, .pdf, .ppt, .xls, .zip).

To disable any of these features, use the disable shortcode attribute:

[csv src=http://example.com/myfile.csv disable=css]
[csv src=http://example.com/myfile.csv disable=icons,images]
[csv src=http://example.com/myfile.csv disable=all]

The first example would disable only the plugin CSS; the second would disable both the file-type icons and image links; and the third would disable all optional features. Disable any combination using a comma-separated list (no spaces!).

Table ID

Want to give your table a unique ID? Use the id shortcode attribute:

[csv src=http://example.com/myfile.csv id=my_data_table]

The above example would give the <table> element an id attribute of my_data_table.

Group Classes

Let's say you have a table with three columns: Item, Description and Type. You want all table rows of the same Type to have the same class, so you can highlight them in different colors using CSS or modify them all at once with JavaScript.

This can be done by assigning a column number to the group shortcode attribute:

[csv src=http://example.com/myfile.csv group=3]

The result would be a special class assigned to each table row based on the value of the third column.

Sorting Options

By default, table data is sorted alphabetically. If you want to sort columns numerically or as dates, or disable sorting on certain columns, use the following shortcode attributes:

[csv src=http://example.com/myfile.csv number=2]
[csv src=http://example.com/myfile.csv date=3]
[csv src=http://example.com/myfile.csv unsortable=4,5,6]

The values can be a single column number, or multiple column numbers in a comma-separated list (no spaces!).

Relative File Paths

If the src value is a relative path (beginning with a forward slash), the plugin will refer to the "Site address (URL)" defined in WP-Admin > Settings > General:

[csv src=/mydata/data.csv]

The above example would refer to http://example.com/mydata/data.csv.

Data Array Filter

You may want to manipulate the CSV data after it is imported, but before the HTML table is rendered. To do so, use this filter:

csv_to_sorttable_data_array

Here are some code examples of how to use the data array filter:

  1. Remove First Row (Function)
  2. Add a Header Row (Function)
  3. Add a Header Row (Plugin)
Resources added by plugin to Home page/Post page in kB
Total size of resources for Home page/Post page in kB
Random Theme Tests
Stripay screenshot

Stripay

by: crondeau

11297
0%
Simple Blog Design 2 screenshot

Simple Blog Design 2

by: Blog Design Studio

9270
0%