WordPress Plugin to present a CSV file in a DataTable.
WordPress插件可在数据表中显示CSV文件。
This will import data from a CSV file and display in a DataTable.
这将从CSV文件导入数据并显示在数据表中。 p>
How To Use
使用方法 h3>
Insert following code snippet into any page or post using this shortcode, make sure you use an unique id :
使用此短代码将以下代码段插入任何页面或帖子中,请确保使用唯一的ID: p>
[aj-csv2dt src=http://e-innoving.com/samples/SacramentocrimeJanuary2006.csv id=datatable_id] [aj-csv2dt src = http://e-innoving.com/samples/SacramentocrimeJanuary2006.csv id = datatable_id]
code> pre>
You can now disable DataTable search, pagination, sorting and displaying of bInfo with the recent 1.1 release.
您现在可以使用最新的1.1版本禁用bTable的DataTable搜索,分页,排序和显示。
The purpose of this is to render a static looking HTML Table out of a CSV file.
这样做的目的是从CSV文件中呈现静态外观的HTML表。 p>
[aj-csv2dt src=http://e-innoving.com/samples/SacramentocrimeJanuary2006.csv id=datatable_id disable_search=true disable_paging=true disable_binfo=true disable_sorting=true] [aj-csv2dt src = http://e-innoving.com/samples/SacramentocrimeJanuary2006.csv id = datatable_id disable_search = true disable_paging = true disable_binfo = true disable_sorting = true]
code> pre>
Save it, just refresh the page and see.
保存它,只需刷新页面即可查看。
Less hassle, all your csv data is inside the DataTable.
麻烦一点,您所有的csv数据都在DataTable内部。 p>
Credits
积分 h3>
This plugin utilizes some excellent open source scripts, functions and images whose creators deserve to be recognized.
此插件利用了一些优秀的开源脚本,功能和图像,其创建者值得认可。 p>
- Shaun Scovil, for inspiring me through his CSV to Sortable Plugin.
- Shaun Scovil,通过他的CSV启发我了Sortable插件。 li>
- V.Krishn wrote a handy PHP function that enables users of PHP < 5.3 to utilize the
- V.Krishn编写了一个方便的 PHP函数,使PHP <5.3的用户可以使用
>str_getcsv()
function that powers this plugin.为该插件供电的> str_getcsv() code>函数。 li>
ol>
Common Errors
常见错误 h3>
- If the datatable misbehaves, this is probably due to an incorrect csv format.
- 如果数据表行为异常,则可能是由于csv格式不正确。
In that case, open csv file in excel
在这种情况下,请在excel中打开csv文件
and re-save it as a new csv.
并将其重新保存为新的csv。
Most likely this will resolve your issue.
很有可能会解决您的问题。 li>
ol>