Add a Request form, with files in Google Drive and email notices
One form at /request for blog posts, events, and new or updated chapters, regions (updates only), partners, teams, awards and people. ?type= opens it on one; buttons on the Community sections, blog posts, Retreats and the front page calendar do. Files (.docx, PDF, JPEG, PNG) go to a Google Drive folder through a service account. Requests are feedback rows of type 'content' (migration 046), in a third Forms queue: files download from Drive, a .docx can become a draft blog post, and deleting a request deletes its files. New content and data requests email the addresses in Site settings through Gmail. Setup: docs/google-drive-and-mail.md. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
0e582c236b
commit
dc53af238f
31 changed files with 1318 additions and 113 deletions
|
|
@ -43,6 +43,7 @@ import { fileURLToPath } from "node:url";
|
|||
|
||||
import { loadBlocks, paragraphs } from "./shape.js";
|
||||
import { themeCss } from "./theme.js";
|
||||
import { driveReady } from "./googleService.js";
|
||||
|
||||
const here = path.dirname(fileURLToPath(import.meta.url));
|
||||
|
||||
|
|
@ -112,7 +113,13 @@ export function siteFor(db) {
|
|||
}
|
||||
|
||||
/* What the browser app reads for headings and titles. */
|
||||
const forBrowser = (site) => ({ title: site.title, pages: site.pages, privacyEmail: site.privacyEmail });
|
||||
// requestFiles: whether the Request form can take files (Drive set up).
|
||||
const forBrowser = (site) => ({
|
||||
title: site.title,
|
||||
pages: site.pages,
|
||||
privacyEmail: site.privacyEmail,
|
||||
requestFiles: driveReady(),
|
||||
});
|
||||
|
||||
/* robots.txt for this database's setting, as the build writes it. */
|
||||
export function robotsTxt(site) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue