Blocks: Shown on the page, in the presentation, or both

- present_show (099) replaces present_hide: only on the page, or only
  in the presentation, kept off the page and its contents list
- Blocks with the old Leave out ticked become Only on the page

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Zaldimmar 2026-11-12 04:59:11 -06:00
parent 2282bee23c
commit ae06cd2b4f
8 changed files with 52 additions and 14 deletions

View file

@ -67,7 +67,9 @@ export function loadLinks(db, ownerKind, ids) {
/* A block's presentation settings (095), or null with none set. */
function presentOf(row) {
const present = {
hide: row.present_hide === 1,
// Where it shows (099).
hide: row.present_show === "page",
only: row.present_show === "presentation",
text: row.present_text,
map_split: row.present_map_split === 1,
map_no_list: row.present_map_no_list === 1,
@ -88,7 +90,7 @@ export function loadBlocks(db, ownerKind, ids, slot = "body", depth = 0) {
.prepare(
`SELECT id, owner_id, type, text, media, href, alt, cite, captions, team_id, venue_id,
word_motion, word_direction, word_seconds, list_style, org_kind,
present_hide, present_text, present_map_split, present_map_no_list,
present_show, present_text, present_map_split, present_map_no_list,
present_map_no_details, present_places, present_place_keys,
present_list_overview, present_list_items
FROM content_blocks