
內容簡介
List Locations BMLT 外掛可返回來自你的 BMLT 伺服器的所有唯一城鎮或縣的資料,以及給定服务团的相關資訊。
SHORTCODE
基礎用法:[list_locations]
屬性:root_server、services、recursive、state、delimiter、list、state_skip、city_skip
— 可以結合使用不同的 Shortcode 參數
用法
最小限度需要 root_server 和 services 屬性,這會返回以逗號分隔的該服务团的所有城鎮信息。
例如:[list_locations root_server="https://www.domain.org/main_server" services="50"]
Recursive:要遞迴服務团,請添加 recursive="1"
例如:[list_locations root_server="https://www.domain.org/main_server" services="50" recursive="1"]
State:要撤銷狀態附加,則添加 state="0"
例如:[list_locations root_server="https://www.domain.org/main_server" services="50" state="0"]
State Skip:當使用 state="1" 時,要跳過特定州時添加 state_skip="NC"
例如:[list_locations root_server="https://www.domain.org/main_server" services="50" state="1" state_skip="NC"]
City Skip:跳過特定城市時,請添加 city_skip="Indianapolis"。當提及城市次序不對或位於文本的不同部分時,這可能很有用。
例如:[list_locations root_server="https://www.domain.org/main_server" services="50" state="1" city_skip="Indianapolis"]
Services:添加多個服務团時,在服務之間用逗号分隔。
例如:[list_locations root_server="https://www.domain.org/main_server" services="50,37,26"]
分隔符:要更改分隔符以傳回除逗號以外的內容,請添加 delimiter=" – " 或在每個資料之間建立新行,請添加 delimiter="<br>" 或 delimiter="<p></p>"
例如:[list_locations root_server="https://www.domain.org/main_server" delimiter="<br>"]
List:可以按鄉鎮、縣、市、街區列出。預設為鄉鎮。
例如:[list_locations root_server="https://www.domain.org/main_server" list="town"]
範例
https://www.crna.org/area-service-committees/
更多資訊
https://github.com/pjaudiomv/list-locations-bmlt
外掛標籤
開發者團隊
原文外掛簡介
List Locations BMLT is a plugin that returns all unique towns or counties from your BMLT server for a given service body on your site.
SHORTCODE
Basic: [list_locations]
Attributes: root_server, services, recursive, state, delimiter, list, state_skip, city_skip
— Shortcode parameters can be combined
Usage
A minimum of root_server and services attribute are required, which would return all towns for that service body seperated by a comma.
Ex. [list_locations root_server="https://www.domain.org/main_server" services="50"]
Recursive: to recurse service bodies add recursive="1"
Ex. [list_locations root_server="https://www.domain.org/main_server" services="50" recursive="1"]
State: to remove appending of the state add state="0"
Ex. [list_locations root_server="https://www.domain.org/main_server" services="50" state="0"]
State Skip: to skip the inclusion of a state when using state="1" add state_skip="NC"
Ex. [list_locations root_server="https://www.domain.org/main_server" services="50" state="1" state_skip="NC"]
City Skip To skip the inclusion of a city add city_skip="Indianapolis". This can be useful when mentioning a city out of order or in a different part of the text.
Ex. [list_locations root_server="https://www.domain.org/main_server" services="50" state="1" city_skip="Indianapolis"]
Services: to add multiple service bodies just seperate by a comma.
Ex. [list_locations root_server="https://www.domain.org/main_server" services="50,37,26"]
Delimiter: to change the delimiter to something besides a comma I would add delimiter=" – " or to create newlines between each I could do this delimiter="
", or delimiter="
"
Ex. [list_locations root_server="https://www.domain.org/main_server" delimiter="
"]
List: You can list by the following town, county, borough, neighborhood. The default is town.
Ex. [list_locations root_server="https://www.domain.org/main_server" list="town"]
custom_query You can add a custom query from semantic api to filter results, for ex by format &formats=54.
Ex. [list_locations root_server="https://www.domain.org/main_server" custom_query="&formats=54"]
EXAMPLES
https://www.crna.org/area-service-committees/
MORE INFORMATION
https://github.com/bmlt-enabled/list-locations-bmlt
