
內容簡介
Temporary Closures BMLT 是一個 WordPress 外掛,它可以顯示所有存在暫時閉鎖的會議清單。它可以用來查看已發布或未發布的會議。
短碼
基本:[temporary_closures]
屬性:root_server、services、recursive、display_type、custom_query、sortby
— 短碼參數可以結合使用
用法
至少需要 root_server 和 services 屬性。
例如:[temporary_closures root_server="https://www.domain.org/main_server" services="50"]
recursive 屬性加上 recursive="1" 可以遞歸服務機構。
例如:[temporary_closures root_server="https://www.domain.org/main_server" services="50" recursive="1"]
services 屬性如果要添加多個服務機構,只需用逗號分隔。
例如:[temporary_closures root_server="https://www.domain.org/main_server" services="50,37,26"]
display_type 屬性可以用來更改顯示方式,有三種不同的顯示方式:表格、區塊、數據表格。
例如:[temporary_closures root_server="https://www.domain.org/main_server" display_type="table"]
custom_query 屬性可用於添加來自語意 API 的自定義查詢以過濾結果,例如按格式&formats=54。
例如:[temporary_closures root_server="https://www.domain.org/main_server" custom_query="&formats=54"]
sortby 屬性允許您使用自定義排序鍵,默認為 location_municipality,weekday_tinyint,start_time。
例如:[temporary_closures root_server="https://www.domain.org/main_server" sortby="weekday_tinyint,location_municipality,start_time"]
範例
https://sca.charlestonna.org/temporary-closures-bmlt/
更多資訊
https://github.com/bmlt-enabled/temporary-closures-bmlt
外掛標籤
開發者團隊
原文外掛簡介
Temporary Closures BMLT is a plugin that displays a list of all meetings that have temporary closures. It can be used
to view published or unpublished meetings.
SHORTCODE
Basic: [temporary_closures]
Attributes: root_server, services, recursive, display_type, custom_query, sortby
— Shortcode parameters can be combined
Usage
A minimum of root_server, and services attributes are required.
Ex. [temporary_closures root_server="https://www.domain.org/main_server" services="50"]
recursive to recurse service bodies add recursive="1"
Ex. [temporary_closures root_server="https://www.domain.org/main_server" services="50" recursive="1"]
services to add multiple service bodies just separate by a comma.
Ex. [temporary_closures root_server="https://www.domain.org/main_server" services="50,37,26"]
display_type To change the display type add display_type="table" there are three different types table, block, datatables
Ex. [temporary_closures root_server="https://www.domain.org/main_server" display_type="table"]
custom_query You can add a custom query from semantic api to filter results, for ex by format &formats=54.
Ex. [temporary_closures root_server="https://www.domain.org/main_server" custom_query="&formats=54"]
sortby Allows you to use custom sort keys, the default is location_municipality,weekday_tinyint,start_time.
Ex. [temporary_closures root_server="https://www.domain.org/main_server" sortby="weekday_tinyint,location_municipality,start_time"]
EXAMPLES
https://sca.charlestonna.org/temporary-closures-bmlt/
MORE INFORMATION
https://github.com/bmlt-enabled/temporary-closures-bmlt
