Skip to content

Displays a list of all meetings that have temporary closures. It can be used to view published or unpublished meetings.

License

Notifications You must be signed in to change notification settings

GarrettWeinberg/temporary-closures-bmlt

 
 

Repository files navigation

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.

Use Cases

New England Region created a format TC - Temporary Closure and unpublished then assigned this format to all of them. Then we could display just the unpublished meetings with that format using the custom query Ex. &formats=54. New England did it this way because we have some meetings that are unpublished for other reasons beside temporary closures.

You could also just have it display all unpublished meetings and not use a seperate format.

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 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/

Installation

This section describes how to install the plugin and get it working.

  1. Download and install the plugin from WordPress dashboard. You can also upload the entire Temporary Closures BMLT Plugin folder to the /wp-content/plugins/ directory
  2. Activate the plugin through the Plugins menu in WordPress
  3. Add [temporary_closures] shortcode to your WordPress page/post.
  4. At a minimum assign root_server, and services attributes.

Changelog

1.1.0

  • Added custom sort option sortby.

1.0.1

  • Bug fixes.

1.0.0

  • Initial WordPress submission.

About

Displays a list of all meetings that have temporary closures. It can be used to view published or unpublished meetings.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 63.2%
  • CSS 28.7%
  • Hack 6.6%
  • JavaScript 1.2%
  • Dockerfile 0.3%