Add a file library in Google Drive for pages to link to
Tools → Media → Files uploads PDF, Office (.docx, .xlsx, .pptx), MP3, M4A and zip files, up to 50 MB, to the shared drive's Blog folder and shares each as anyone with the link can view (migration 048). A file's name and contents must agree. Content block links get "Choose a file" (paragraph, button and image links, list and link items, link cards). A link card also takes the file's name and Drive's picture of its first page, fetched after upload and saved into the image library; cards to Drive say "Google Drive". Deleting a file says first what still links to it. Setup and the nginx block: docs/google-drive-and-mail.md. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
36c9226bd9
commit
934598f954
13 changed files with 772 additions and 33 deletions
|
|
@ -362,6 +362,8 @@ export const blocksChild = {
|
|||
path: "href",
|
||||
label: "Link",
|
||||
full: true,
|
||||
files: true,
|
||||
filesWhen: { path: "type", value: ["paragraph", "button", "image"] },
|
||||
when: { path: "type", value: ["paragraph", "button", "image", "video"] },
|
||||
help: (row) => HREF_HELP[row?.type],
|
||||
},
|
||||
|
|
@ -405,8 +407,9 @@ export const blocksChild = {
|
|||
label: "Link",
|
||||
widget: "linkPreview",
|
||||
previewFills: { title: "text", blurb: "detail", image: "media" },
|
||||
files: true,
|
||||
full: true,
|
||||
help: "A page on this site (eg. /retreats) or anywhere else. Fetch preview fills the title, description and picture.",
|
||||
help: "A page on this site (eg. /retreats), anywhere else, or a file (Choose a file). Fetch preview fills the title, description and picture from a page; a file fills its name and first-page picture.",
|
||||
when: CARD_ITEM,
|
||||
},
|
||||
{ path: "text", label: "Text", required: true, help: "Schedules: the entry's title. Cards: the card's title" },
|
||||
|
|
@ -427,7 +430,7 @@ export const blocksChild = {
|
|||
},
|
||||
{ path: "detail", label: "Detail", help: "A line under the text. Lists: shown after the text", when: NOT_CARD_ITEM },
|
||||
{ path: "detail", label: "Description", widget: "textarea", full: true, when: CARD_ITEM },
|
||||
{ path: "url", label: "URL", help: "Blank for plain text. Link buttons need one.", when: NOT_CARD_ITEM },
|
||||
{ path: "url", label: "URL", help: "Blank for plain text. Link buttons need one.", files: true, when: NOT_CARD_ITEM },
|
||||
{
|
||||
path: "media",
|
||||
label: "Picture",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue