CSV to html – pagination

Pagination

When dealing with large csv-files (or many rows of data given froms several csv-files it could be an idea to use pagination. Pagination links are shown below table as default.
When clicking on first,prev,next or last you see new content in the table without the need of reloading the page. When using pagination a html wrapper (div) is wrapped around the table and pagination part. If you have specified a html id then the this id is appended to the name of wrapper. This wrapper is intended for making it easy to apply css (styling).

Shortcode
[csvtohtml_create
source_type="guess"
path="large"
source_files="*.csv"
pagination="yes"
include_cols="1,4" ]
measuresex
lxFemale
lxFemale
lxFemale
lxFemale
lxFemale
lxFemale
lxFemale
lxFemale
lxFemale
lxFemale

You can easily configure different texts and number of rows for each pagination and tell how many specific number (”specific pages”) where you want to browse to (between prev and next). Every element is set with a class so it’s easy to style the pagination div and the child elements of the pagination wrapper:

Shortcode
[csvtohtml_create
source_type="guess"
path="large"
source_files="*.csv"
pagination="yes"
include_cols="1,4" pagination="yes"
pagination_below_table="yes"
pagination_above_table="yes"
pagination_text_start="Go home "
pagination_text_prev=" Go to previous "
pagination_text_next=" Go to next "
pagination_text_last=" Go to last"
pagination_rows=5
pagination_links_max="3" ]
measuresex
lxFemale
lxFemale
lxFemale
lxFemale
lxFemale