這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

AJ CSV to DataTable

外掛說明

WordPress Plugin to present a CSV file in a DataTable. This will import data from a CSV file and display in a DataTable.

How To Use

Insert following code snippet into any page or post using this shortcode, make sure you use an unique id :

[aj-csv2dt src=http://e-innoving.com/samples/SacramentocrimeJanuary2006.csv id=datatable_id]

You can now disable DataTable search, pagination, sorting and displaying of bInfo with the recent 1.1 release. The purpose of this is to render a static looking HTML Table out of a CSV file.

[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]

Save it, just refresh the page and see. Less hassle, all your csv data is inside the DataTable.

Credits

This plugin utilizes some excellent open source scripts, functions and images whose creators deserve to be recognized.

  1. Shaun Scovil, for inspiring me through his CSV to Sortable Plugin.
  2. V.Krishn wrote a handy PHP function that enables users of PHP < 5.3 to utilize the str_getcsv() function that powers this plugin.

Common Errors

  1. If the datatable misbehaves, this is probably due to an incorrect csv format. In that case, open csv file in excel
    and re-save it as a new csv. Most likely this will resolve your issue.

螢幕擷圖

安裝方式

  1. Install and activate the plugin via WP-Admin > Plugins.
  2. Add shortcode to a post or page: [aj-csv2dt src=http://samplecsvs.s3.amazonaws.com/SacramentocrimeJanuary2006.csv id=datatable_id].

常見問題集

Installation Instructions
  1. Install and activate the plugin via WP-Admin > Plugins.
  2. Add shortcode to a post or page: [aj-csv2dt src=http://samplecsvs.s3.amazonaws.com/SacramentocrimeJanuary2006.csv id=datatable_id].

使用者評論

這個外掛目前沒有任何使用者評論。

參與者及開發者

以下人員參與了開源軟體〈AJ CSV to DataTable〉的開發相關工作。

參與者

將〈AJ CSV to DataTable〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

變更記錄

1.1

  • Added options to disable DataTable searching, pagination, sorting and showing of bInfo.

1.0

  • First public release.