Organization cards: list partners, ministries or a hand-picked set (migration 067)
The Partners section's preset gets "Cards: list" (partners by default, ministries, or both) and an optional hand-picked list (page_section_orgs, partners or ministries only, enforced by trigger) that replaces it in its own order. /organizations takes kind=ministry and ids=; the plain list still leaves ministries out. Ministry cards link to their website only. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
635dd21083
commit
fd7e1b6fc1
11 changed files with 146 additions and 23 deletions
|
|
@ -96,6 +96,9 @@ export const OPTION_QUERIES = {
|
|||
"SELECT id, name AS label FROM organizations WHERE kind = 'region' ORDER BY name",
|
||||
ministries:
|
||||
"SELECT id, name AS label FROM organizations WHERE kind = 'ministry' ORDER BY name",
|
||||
// What an organization cards section can hand-pick (067).
|
||||
card_orgs:
|
||||
"SELECT id, name || ' (' || kind || ')' AS label FROM organizations WHERE kind IN ('partner', 'ministry') ORDER BY kind, name",
|
||||
event_scopes: "SELECT id, name AS label FROM event_scopes ORDER BY sort_order",
|
||||
events: "SELECT id, title AS label FROM events ORDER BY starts_on DESC, title",
|
||||
people: "SELECT id, display_name AS label FROM people ORDER BY sort_name, display_name",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue