前言介紹
- 這款 WordPress 外掛「WP OpenData」是 2013-09-15 上架。
- 目前有 10 個安裝啟用數。
- 上一次更新是 2015-08-02,距離現在已有 3563 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
- 外掛最低要求 WordPress 3.5.1 以上版本才可以安裝。
- 尚未有人給過這款外掛評分。
- 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。
外掛協作開發者
外掛標籤
opendata |
內容簡介
is option may be lost. To create a dataset page, you can modify the template file of the custom post type dataset, usually located in the single.php or page.php file of your theme. To include the metadata of a dataset, use the function wp_opendata_dataset_meta().
Note: Use this plugin if your WordPress website handles open data, such as government data, scientific data, or research data.
原文外掛簡介
This plugin turns your WordPress website into an open data library. By using the dataset post type you can manage descriptions and meta information about open datasets.
It is also possible to add descriptions of projects and apps that are using the datasets.
Available languages
English by oxyva.nl
Dutch by oxyva.nl
Templates
In order to include datasets and projects in your theme you have three options.
1: Enable content filter
When enabling the content filter options in the WP OpenData settings the metadata is printed above the actual content of either a dataset or a project, and a list of (related) projects is printed at the bottom of a dataset.
2: Create your own templates/create a child theme
If you want to customize the template for datasets and project you need to modify your template for the custom post types dataset and project. To do so visit these pages to read more about templates for custom post types:
Post Type Templates – WordPress Codex
Template Hierarchy – WordPress Codex
Child Themes – WordPress Codex
For example, to create a single dataset page you have to create a template file called single-dataset.php.
You can use the following functions in your template:
wp_opendata_entry_meta_dataset(): prints the post entry meta data for a dataset. For example: “This project was posted on April 26, 2013”.
wp_opendata_entry_meta_project(): prints the post entry meta data for a project.
wp_opendata_dataset_meta(): prints the meta data of a dataset in an HTML definition list. This list contains for example the licenses, URL, categories and tags. When the current post is not of type dataset nothing will be printed.
wp_opendata_project_meta(): prints the meta data of a project in an HTML definition list. When the current post is not of type project nothing will be printed.
wp_opendata_meta(): prints the metadata of either a project or a dataset.
wp_opendata_next_post($format = '%link »', $link = '%title', $post_type = ''): prints the next (alphabetically ordered) dataset or project. Change the $post_type parameter to dataset or project.
wp_opendata_previous_post($format = '%link »', $link = '%title', $post_type = ''): prints the previous (alphabetically ordered) dataset or project. Change the $post_type parameter to dataset or project.
wp_opendata_get_dataset_project_list: get an array containing name and url elements of projects that are using the current dataset. Returns null when no projects are found.
wp_opendata_dataset_project_list(): prints an HTML list element containing projects that are using the current dataset.
In order to view an example open the single-dataset.php and content-dataset.php file in wp-content/plugins/wp-opendata/templates/.
3: Edit existing templates of your theme
Caution: it is advised to use this option only if you have developed the theme yourself. When updating a third-party theme changes made to the template files might be lost.
In order to print the meta information of a dataset or a project add the following line in the single.php template file:
The following code can be used to print a list of (related) projects for a dataset (h2 header with an unsorted list):
When the current post is not of type dataset or project nothing will be printed. Make sure the content filter options are turned off in the WP OpenData settings, else the metadata is shown twice.
Disclaimer
The authors are not responsible for the use of the third-party plugins mentioned in this document. We have not validated the code of these plugins, and are not responsible for any harm done to your WordPress installation by these plugins.
Use them at your own risk.
各版本下載點
- 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
- 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「WP OpenData」來進行安裝。
(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。
延伸相關外掛(你可能也想知道)
Politik bei uns for WordPress 》這是一個外掛,可在您的 WordPress 博客上展示政治零我 OPalr 政府數據。由於 OParl 和 Politik bei uns 目前僅限德語,因此我將使用德語繼續。, 透過這個 Wo...。
OpenData Generator 》這是一個簡單的 OpenData 產生器外掛程式。只需要兩個步驟,就可以將 WordPress 自訂欄位資料轉換成 JSON-LD 資料。, 步驟1:安裝並啟用這個外掛程式。步驟2...。
Open Data Viewer for Austria 》Open Data Viewer for Austria 將奧地利開放數據門戶 data.gv.at 的開放數據集集成到您的 WordPress 網站中,使用表格、圖表和地圖呈現。, 試用, 如果您想了...。