DbTable to DataTable
This plugin allows you to display the content of MySql tables into sortable html tables thanks to the DataTable jQuery Plugin. You don’t need any configuration and once installed, it is ready to use. Simply add the shortcode [dbtable] into an article or a page and you will have a nice and clean tabl
About this tool.
This plugin allows you to display the content of MySql tables into sortable html tables thanks to the DataTable jQuery Plugin.
You don’t need any configuration and once installed, it is ready to use.
Simply add the shortcode [dbtable] into an article or a page and you will have a nice and clean table.
Examples:
All parameters that contain more than one value have to be separated by commas without spaces.
Minimum needed : [dbtable from=MysqlTableName]
- select=field1,field2,field3 will display all rows of the table and only specified fields
- except=field1,field2,field3 will display all rows of the table except specified fields
- cssClass=class1,class2 will add class1 and class2 to the class attribut of the table
- comments=true|(false) true will use comments specified in each field of the MySql table as datatable column names. If true and if a comment is missing, the plugin fallback on field name only for the one missing, not for the entire table.
- pagination=true|(false) will show/hide the bottom pagination links. If false, make sure you have the limit parameter large enough to display all your datas
- limit=25 Display 25 rows by default.
Getting started.
From your WordPress dashboard
- 01Visit ‘Plugins > Add New’
- 02Search for ‘DbTable to DataTable’
- 03Activate DbTable to DataTable from your Plugins page.
- 04That’s it!
From WordPress.org
- 05Download DbTable to DataTable.
- 06Upload the ‘DbTable2DataTable’ directory to your ‘/wp-content/plugins/’ directory, using your favorite method (ftp, sftp, scp, etc…)
- 07Activate ‘DbTable to DataTable’ from your Plugins page.
- 08That’s it !