People directories, ministries, organization contacts (migrations 062 to 064)
- People tags (062): Data → People tags (Musicians seeded); a person's Directories repeater tags them and their Specialty line shows on their tile. A People directory section preset shows a tag's first 12 and links to its full page, /directory/<tag>, with page meta and a sitemap entry. Tiles' details panels show a person's links. - Ministries (063): a new organization kind. A group picks its ministry and its page says "Ministry: <name>", linked to the ministry's website. Ministries have no public page, list, sitemap or timeline entry, and aren't offered where a record links to its organization. organizations is rebuilt for the kind CHECK. - Organization contacts (064): Data → Contact types; a private Contacts repeater on each organization (editors and up, readRole on a child collection). Tools → Newsletter → Recipients filters them by type, kind, region and published and downloads a Mailchimp CSV. - A trigger refusing a save with a sentence is shown as that message. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
07e56bfd20
commit
0ed7315156
38 changed files with 1108 additions and 29 deletions
|
|
@ -28,7 +28,7 @@ export const organizations = {
|
|||
},
|
||||
|
||||
columns: [
|
||||
enumeration("kind", ["national", "region", "group", "partner"], {
|
||||
enumeration("kind", ["national", "region", "group", "partner", "ministry"], {
|
||||
required: true,
|
||||
}),
|
||||
text("name", { required: true }),
|
||||
|
|
@ -62,13 +62,28 @@ export const organizations = {
|
|||
table: "groups",
|
||||
idColumn: "id",
|
||||
when: { column: "kind", value: "group" },
|
||||
columns: [text("region_id"), text("meets"), text("started")],
|
||||
columns: [text("region_id"), text("ministry_id"), text("meets"), text("started")],
|
||||
},
|
||||
],
|
||||
|
||||
children: [
|
||||
linksChild("organization"),
|
||||
blocksChild("organization"),
|
||||
// Who to write to there, by role (064_org_contacts.sql): private,
|
||||
// for the Newsletter's recipient export.
|
||||
{
|
||||
key: "contacts",
|
||||
table: "organization_contacts",
|
||||
owner: { column: "org_id" },
|
||||
order: "sort_order",
|
||||
readRole: "editor",
|
||||
columns: [
|
||||
text("type_id", { required: true }),
|
||||
text("name"),
|
||||
text("email"),
|
||||
text("phone"),
|
||||
],
|
||||
},
|
||||
{
|
||||
key: "region_areas",
|
||||
table: "region_areas",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue