From 0cf5bfeb69fc715547001a61ef61ed22da84df38 Mon Sep 17 00:00:00 2001
From: otrok7 <50595291+otrok7@users.noreply.github.com>
Date: Mon, 8 Jan 2024 11:57:53 +0100
Subject: [PATCH] documentation
---
croutonjs/src/js/crouton-default-templates.js | 2 +-
partials/_instructions.php | 30 +++++++++----------
2 files changed, 15 insertions(+), 17 deletions(-)
diff --git a/croutonjs/src/js/crouton-default-templates.js b/croutonjs/src/js/crouton-default-templates.js
index fc98947..abcb38e 100644
--- a/croutonjs/src/js/crouton-default-templates.js
+++ b/croutonjs/src/js/crouton-default-templates.js
@@ -53,7 +53,7 @@ var croutonDefaultTemplates = {
meeting_count_template: [
"{{#if this.config.has_meeting_count}}",
- "{{getWord 'meeting_count'}} {{this.meetings.meetingCount}}",
+ "{{getWord 'meeting_count'}} {{this.meetings.meetingCount}}",
"{{/if}}"
].join('\n'),
diff --git a/partials/_instructions.php b/partials/_instructions.php
index aebb50e..eb61e57 100644
--- a/partials/_instructions.php
+++ b/partials/_instructions.php
@@ -17,9 +17,6 @@
use two different pages. The [service_body_names]
shortcode is useful for generating tabbed UIs for multiple
service bodies (see the "URL Parameters" section).
Detailed instructions for the shortcode parameters follow.
-Caution! The parameters supplied to the first shortcode on a page apply to all other shortcodes on that - page as well. In particular, if the first shortcode has no parameters, then any parameters on subsequent shortcodes on - that page will be silently ignored. To avoid confusion, good practice is to use the same parameters for all of them.
Will return the number of meetings for one or more BMLT service bodies.
-[meeting_count] Will use the default service body (above).
-[meeting_count service_body="2,3,4"]
-[meeting_count service_body_parent="1,2,3"]
-Will return the number of meetings in one or more BMLT parent service bodies.
-[meeting_count service_body="2" subtract="3"]
-subtract = number of meetings to subtract from total meetings (optional)
-Subtract is useful when you are using BMLT for subcommittee meetings and do want to count those meetings.
+Will return the number of meetings in the BMLT query.
+[meeting_count]
+[meeting_count live="0|1"]
+By default, [meeting_count] returns the total number of meetings in the BMLT query. By setting "live" to "1", + the number displayed will be updated to reflect the current filters selection. So, to get the number of meetings in an + area, select the area in the appropriate filter and both the table and the meeting count will be updated. +
Will return the number of Groups for one or more BMLT service bodies.
-[group_count] Will use the default service body (above).
-[group_count service_body="2,3,4"]
-[group_count service_body_parent="1,2,3"]
-Will return the number of Groups in one or more BMLT parent service bodies.
+Will return the number of groups in the BMLT query.
+[group_count]
+[group_count live="0|1"]
+By default, [group_count] returns the total number of groups in the BMLT query. By setting "live" to "1", + the number displayed will be updated to reflect the current filters selection. So, to get the number of groups in an + area, select the area in the appropriate filter and both the table and the group count will be updated. +