HOC SiteDokümantasyon

Sayfa

Route page design. Content is merged design Data for one website locale.

Notes

  • Saved block props are nested. Each block's own settings live under their group (for example typography.size or action.url). A button style is appearance.variant. Visibility and Customize live under shell (for example shell.visibility as an Authored boolean list, shell.anchor.anchorId, shell.box.size). Flat keys and older paths still load; the next save writes the nested shape. The field menu follows that stored tree.

Shared concepts

Categories

Content

Interactive

Layout

Media

Embeds

Root fields

title

Static document title used for the page <title> / SEO title (locale-aware). On dynamic object routes, prefer titleFieldKey when the title comes from the bound entry.

title: "About us"

description

Static SEO meta description string (root.props.description). Distinct from descriptionFieldKey, which binds the meta description to an object field on dynamic routes. Edited in the page root Settings panel alongside title (not a separate sidebar field key).

description: "Short summary for search engines."

titleFieldKey

Object field key whose value overrides the static title for dynamic object routes. Empty means use the static title (or a title-like field fallback).

titleFieldKey: "title"

descriptionFieldKey

Object field key whose value overrides the static description meta for dynamic object routes. Empty means use root.props.description (or a description/body field fallback).

descriptionFieldKey: "description"

ogImage

Public image URL for Open Graph / Twitter when not bound to an object field.

ogImage: "https://cdn.example/share.jpg"

ogImageFieldKey

Object image field key whose value overrides ogImage for dynamic object routes.

ogImageFieldKey: "cover"

variables

Document variables, including type ticker (numeric, manual or automatic, with min, max, start, and automatic intervalMs/step). syncUrl keeps the query parameter equal to the variable name (page 1 is omitted). An older syncQueryKey still turns sync on, but the parameter is the name. scope: "site" is shared by the website; {{var:site.name}} reads it when a surface variable uses the same name. Edited in the Variables plugin. See shared concept variables.

variables: [{ id: "step", name: "Step", type: "ticker", ticker: { mode: "manual", min: 0, max: 3, start: 0 } }]

rules

Page rules. Each rule has when (pageLoad or variableChange), conditions (auth, role label, or variable compare), and ordered actions (update variables, run a named data request, or redirect to an internal path). Edited in the Rules plugin. The Rules section documents the shape.

rules: [{ id: "home", name: "Role home", enabled: true, when: { type: "pageLoad" }, conditions: [{ type: "auth", is: "signedIn" }, { type: "role", roleLabel: "Reception" }], actions: [{ type: "redirect", path: "/reception" }] }]

Blocks

Rules

Rules live at root.props.rules and are edited in the Rules plugin. Each rule has id, name, enabled, when, conditions (every condition must match), and actions (run in order).
when is { "type": "pageLoad" } or { "type": "variableChange", "variableId": "<id>" }.
Conditions:

  • { "type": "auth", "expect": "signedIn" } or "signedOut"
  • { "type": "role", "roleLabel": "Reception" } (case-sensitive label; the visitor must be signed in)
  • { "type": "variable", "variableId": "<id>", "op": "eq", "value": "1" }

Actions:

  • { "type": "updateVariables", "variableUpdates": [{ "variableId": "<id>", "op": "add", "value": "1" }] } — same ops as a button, including ticker set, add, subtract, and clear
  • { "type": "runRequest", "requestName": "search" }
  • { "type": "redirect", "path": "/account" } — internal path only (/ and not //)

Page-load rules run once. Variable-change rules run when that value changes, and a rule does not immediately retrigger itself. Redirects do not run while the canvas is in edit mode.
A signed-in role redirect is a page-load rule: if signed in and the role label matches, redirect to that path, plus a fallback rule for everyone else.