@ebitex/mcp 1.1.0 → 1.1.313
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +201 -201
- package/README.md +144 -144
- package/dist/apps/content/resources/helpCorpus.generated.js +31 -31
- package/dist/apps/content/resources/helpCorpus.generated.js.map +1 -1
- package/dist/main.js +0 -0
- package/package.json +1 -1
|
@@ -6,157 +6,157 @@ export const HELP_TOPICS = [
|
|
|
6
6
|
{
|
|
7
7
|
"slug": "agent-authoring",
|
|
8
8
|
"title": "Building a content model through the API",
|
|
9
|
-
"body": "# Building a content model through the API\r\n\r\nThe rest of this help corpus describes Content as you drive it in Composer — tabs, panels, buttons.\r\nThe concepts all transfer; the steps do not. This page is the same model described in terms of the\r\nAPI, for a script or an agent working through the Content Management API rather than the interface.\r\n\r\nRead this first if you are about to create anything. Everything here is about *what the pieces are*;\r\nthe exact shape of each request is answered live by the API itself, and you should never guess it.\r\n\r\nThen read [Modelling your content: best practices](content-modelling.md) before you decide what the model looks like: it covers what belongs in a Contract and what belongs in a Template, which field to use, naming, allow-lists, containers and shipping a model to others. A model built without it tends to put presentation in the content, which is the hardest mistake to undo.\r\n\r\n## The one rule that saves the most time\r\n\r\n**Ask the server what things look like; do not assume.**\r\n\r\n`GET /field-types` returns every field type this platform has, each with its **own JSON Schema for\r\nits settings**. That schema is generated from the field type's own definition, so it is never out of\r\ndate — Composer's Contract builder renders its settings form from exactly this, rather than\r\nhard-coding a form per type. Use it the same way.\r\n\r\n`GET /contracts` and `GET /templates` tell you what this environment already has. Check before\r\ncreating: a duplicate is much harder to undo than it is to avoid.\r\n\r\nWhen a write is refused, the refusal names the failing field and says what is wrong with it. That\r\nmessage is the fastest route to a correct request. Read it and correct the one thing it names,\r\nrather than rewriting the payload.\r\n\r\n## The pieces, and what each one is for\r\n\r\nContent separates four concerns that many systems collapse into one. The separation is the reason\r\nthe same content can be rendered several ways, and reused in places its author never anticipated.\r\n\r\n### Contract — what content *is*\r\n\r\nA Contract is a type. It has a name, an external id, and a list of **fields**. Each field names a\r\nfield type (short text, rich text, number, date, blob, reference, component, presentation, category,\r\nlink, and so on) and carries that type's own settings.\r\n\r\nContracts support **inheritance**. A Contract may name a parent, and it then has the parent's fields\r\nplus its own. A Contract may be **abstract**, meaning nothing is ever an instance of it directly —\r\nit exists to be inherited from, and to be named where several concrete types should be accepted.\r\n\r\nContracts describe content and nothing about how it looks. No colours, no layout, no \"variant\".\r\n\r\n### Component — an instance of a Contract\r\n\r\nA Component is a piece of content: a Contract, plus a **document** holding a value for each field.\r\nIt has its own name and external id and lives in a folder.\r\n\r\nThe document's shape follows the Contract's fields exactly. What a field's value looks like depends\r\non its type *and* on its modifiers, below.\r\n\r\n### Template — how content is *rendered*\r\n\r\nA Template names which Contracts it can render, and has its own **settings Contract**: an ordinary\r\nContract describing the presentational choices that template offers — a variant, an alignment, how\r\nmany columns.\r\n\r\nThis is why Contracts stay free of presentation. \"A statement, centred, with a ghost button\" is one\r\nTemplate's settings over a plain statement Contract, not three fields on the Contract itself.\r\n\r\n### Presentation — a Template bound to content\r\n\r\nA **presentation value** is where the two meet: it names a Template, binds a Component (or holds an\r\ninline document), and carries settings and contextual values for this one use.\r\n\r\nA page is usually a Component whose fields hold presentation values — a hero, then some sections —\r\nand each of those points at content that may be used elsewhere, rendered differently.\r\n\r\n### Adapter — a reusable mapping between Contracts\r\n\r\nSometimes a Template needs a `card` and what you have is a `blog-page`. An Adapter is a named,\r\nreusable mapping from one Contract to another: one rule per output field, plus a small set of logic\r\nnodes for lists, conditions and type dispatch.\r\n\r\nAn Adapter is applied by the server — at preview, at publish, and at delivery — so the mapping is\r\ndefined once and behaves identically everywhere.\r\n\r\n### Experience — where content lives on the web\r\n\r\nThe Experience tree is the site's address space. A **site** is a root; **nodes** under it are pages,\r\neach with a slug. A node's path is its ancestors' slugs plus its own.\r\n\r\nA node's **payload** says what it renders — usually a presentation value, sometimes a redirect,\r\nsometimes nothing at all (a node with no payload is pure structure, giving its children a path\r\nsegment without being a page itself).\r\n\r\nCreating a node and setting its payload are **two separate calls**. That is not an oversight: a\r\nnode's identity and location change for different reasons than its content does.\r\n\r\n## The five modifiers\r\n\r\nAny field can carry any combination of these. They compose, and each one changes the shape of the\r\nvalue stored in the document — which is the part worth understanding before writing one.\r\n\r\n| Modifier | What it means | Effect on the value |\r\n|---|---|---|\r\n| Mandatory | A value is required | Validation refuses an empty one |\r\n| Enumerable | Many rather than one | The value becomes a list |\r\n| Localizable | Translatable per locale | The value becomes `{ default, translations }` |\r\n| Personalizable | Varies by audience | The value becomes `{ default, variants }` |\r\n| Contextual | Overridable per use | The value may be supplied where the Component is *used*, not only where it is defined |\r\n\r\nCardinality is Enumerable's job, never the field type's. There is no \"list of text\" field type;\r\nthere is a text field that is enumerable.\r\n\r\n**Contextual** is the one worth dwelling on, because it has no counterpart in most systems. A\r\ncontextual field's value can be set on the Component (a default) *and* overridden by whoever binds\r\nthat Component somewhere — a heading that reads one way on the home page and another on a listing,\r\nfrom one Component with one document. Those overrides are the `contextualValues` that travel with a\r\nreference or a presentation value.\r\n\r\n## An order of operations that works\r\n\r\nDependencies run one way, so build in this order and nothing is ever waiting on something that does\r\nnot exist yet.\r\n\r\n1. **Describe.** `GET /field-types`, `/contracts`, `/templates`. Learn what exists before adding to\r\n it.\r\n2. **Contracts.** Parents before children, since a child names its parent.\r\n3. **Templates.** After the Contracts they render, since a Template names them.\r\n4. **Components.** After their Contract, and after any Contract they reference.\r\n5. **A site**, if the environment has none. Then **nodes** under it, parents before children.\r\n6. **Node payloads.** After both the node and the Component it binds.\r\n7. **Publish.** Plan first, read the blockers, then publish.\r\n\r\nTwo ordering facts that are easy to get wrong: a Component referencing another Component needs that\r\none to exist first, and publishing follows the dependency closure automatically — so publishing a\r\npage will normally publish the content it binds, and the plan is where you see exactly what that\r\nmeans before it happens.\r\n\r\n## Publishing\r\n\r\nPublishing is two calls, and collapsing them would hide the thing that matters.\r\n\r\n**Plan** resolves the full dependency closure of what you asked to publish and reports every\r\n**blocker** — an unresolvable reference, a workflow state that forbids publishing, a document that\r\nfails validation. **Execute** publishes what the plan named.\r\n\r\nBoth are jobs: each returns an operation id, and you poll it. A real closure is too large to finish\r\ninside an HTTP request, which is why.\r\n\r\nRead the plan. It is the only place the system tells you what is about to change beyond what you\r\nexplicitly named.\r\n\r\n## Where writes land\r\n\r\nA management key is bound to exactly one organization and one **authoring environment**, and it acts\r\nas one **role**. It cannot reach another environment, and it is subject to the same branch access\r\nrules and workflow gating a person with that role is.\r\n\r\nThat binding is the real safety boundary, so it is worth confirming rather than assuming: ask the\r\nAPI who the key is before writing anything. If the answer is not the environment you expected, stop\r\n— nothing else about the request will tell you.\r\n\r\nThen ask where the environment sits (`GET /topology`, or the `content_topology` tool). It names this\r\nenvironment's direct neighbours, and each one tells you something about your own work:\r\n\r\n- **Publishes to.** Where a publish from here lands. If one of these is a live website, a publish\r\n changes that website. With two or more, a publish has to say which one.\r\n- **Inherited content.** A refusal saying content is inherited means another realm owns it and the\r\n change has to be made there instead (a person can edit it from the app, and the edit is written in\r\n the realm that owns it; a connection never writes through to another realm).\r\n- **Promoted from.** Someone promoting from one of these can overwrite what you write here.\r\n- **Promotes to.** Where this content goes when someone promotes it. You cannot promote yourself.\r\n\r\nNothing in the answer says which environment is production. Judge that from the names, and ask the\r\nperson you are working for when it is not obvious.\r\n\r\n## What an empty answer means\r\n\r\nThe binding governs **reads** exactly as it governs writes, and that changes how an empty result\r\nshould be read. `GET /contracts` returning nothing means *this environment has no Contracts*. It does\r\nnot mean the organization has none, and it certainly does not mean the account has no content.\r\n\r\nThe difference matters because acting on the wrong reading is expensive in one direction: concluding\r\n\"nothing exists\" and creating a model that already exists elsewhere produces duplicates, which are\r\nmuch harder to undo than to avoid. The safe habit is to confirm the scope before concluding anything\r\nfrom an empty list — `GET /whoami`, or the `content_whoami` tool, which needs no permissions at all\r\nprecisely so that a key holding almost nothing can still ask.\r\n\r\nA `404` on a single-entity read is the same fact in another shape: not found *here*. The entity may\r\nexist in another environment, and this key cannot see it.\r\n\r\n## When a write is refused for a permission\r\n\r\nA key has two limits, and they are different. Its **scopes** say which kinds of call it may make at\r\nall (`read`, `authoring`, `publish`). The **role it runs as** says what that role may do, and a few\r\nkinds need a permission on top of the `authoring` scope:\r\n\r\n| To write or delete | The role needs |\r\n|---|---|\r\n| a Contract | `content.contracts.manage` |\r\n| a Template | `content.templates.manage` |\r\n\r\nThe Member role does not hold either. The `ContentSchemaAdmin` role holds both, as does Owner, but\r\nOwner grants far more than an agent needs; prefer `ContentSchemaAdmin` or a custom role with just\r\nthese. Any role in the organization can be chosen as a key's \"run as\" role.\r\n\r\nA refusal for this reason is `403 permission_denied`, and it names the permission. The MCP server\r\nsays so plainly and, when it already knows the role lacks the permission, declines the call without\r\nsending it. `content_whoami` lists the kinds withheld for this role, each with the permission it\r\nneeds. When you see this, tell the person which permission is missing; changing the role is theirs\r\nto do, in the key's settings, and not something to work around.\r\n\r\n## Things that commonly go wrong\r\n\r\n- **Guessing a field type's settings** instead of reading its schema. Every field type declares its\r\n own; there is nothing to guess.\r\n- **Creating a duplicate** because an external id was not checked first. External ids are how a\r\n model refers to itself across environments; a duplicate is a lasting problem.\r\n- **Putting presentation on a Contract.** If you are adding a field called `variant`, `align`,\r\n `theme` or `columns` to a Contract, it almost certainly belongs in a Template's settings.\r\n- **Forgetting a node's payload.** A node created and never given one is a real, published,\r\n completely blank page.\r\n- **Treating a publish plan as a formality.** It is where blockers appear, and they do not appear\r\n anywhere else until something is already wrong.\r\n\r\n## Rendering the site is a separate job\r\n\r\nEverything above builds the content. The site that shows it reads the published result from the\r\nContent Delivery API, and for that there is a client: **`@ebitex/content-sdk`** (npm), or\r\n`Ebitex.Content.Delivery` on a .NET server. Read [Rendering your site](rendering-your-site.md)\r\nbefore you write any code that fetches published content, and do not write a Delivery client by\r\nhand without a reason.\r\n\r\n## Related\r\n\r\n- [Contracts](contracts.md) — the type system in depth\r\n- [Templates](templates.md) — presentation\r\n- [Components](components.md) — authoring content\r\n- [Content Adapters](content-adapters.md) — mappings\r\n- [Composer](content-composer.md) — the Experience tree\r\n- [Publishing](publishing.md) — the publish pipeline\r\n- [Management keys](management-keys.md) — minting and scoping a key\r\n- [Rendering your site](rendering-your-site.md) — the SDK that reads what you publish\r\n"
|
|
9
|
+
"body": "# Building a content model through the API\n\nThe rest of this help corpus describes Content as you drive it in Composer — tabs, panels, buttons.\nThe concepts all transfer; the steps do not. This page is the same model described in terms of the\nAPI, for a script or an agent working through the Content Management API rather than the interface.\n\nRead this first if you are about to create anything. Everything here is about *what the pieces are*;\nthe exact shape of each request is answered live by the API itself, and you should never guess it.\n\nThen read [Modelling your content: best practices](content-modelling.md) before you decide what the model looks like: it covers what belongs in a Contract and what belongs in a Template, which field to use, naming, allow-lists, containers and shipping a model to others. A model built without it tends to put presentation in the content, which is the hardest mistake to undo.\n\n## The one rule that saves the most time\n\n**Ask the server what things look like; do not assume.**\n\n`GET /field-types` returns every field type this platform has, each with its **own JSON Schema for\nits settings**. That schema is generated from the field type's own definition, so it is never out of\ndate — Composer's Contract builder renders its settings form from exactly this, rather than\nhard-coding a form per type. Use it the same way.\n\n`GET /contracts` and `GET /templates` tell you what this environment already has. Check before\ncreating: a duplicate is much harder to undo than it is to avoid.\n\nWhen a write is refused, the refusal names the failing field and says what is wrong with it. That\nmessage is the fastest route to a correct request. Read it and correct the one thing it names,\nrather than rewriting the payload.\n\n## The pieces, and what each one is for\n\nContent separates four concerns that many systems collapse into one. The separation is the reason\nthe same content can be rendered several ways, and reused in places its author never anticipated.\n\n### Contract — what content *is*\n\nA Contract is a type. It has a name, an external id, and a list of **fields**. Each field names a\nfield type (short text, rich text, number, date, blob, reference, component, presentation, category,\nlink, and so on) and carries that type's own settings.\n\nContracts support **inheritance**. A Contract may name a parent, and it then has the parent's fields\nplus its own. A Contract may be **abstract**, meaning nothing is ever an instance of it directly —\nit exists to be inherited from, and to be named where several concrete types should be accepted.\n\nContracts describe content and nothing about how it looks. No colours, no layout, no \"variant\".\n\n### Component — an instance of a Contract\n\nA Component is a piece of content: a Contract, plus a **document** holding a value for each field.\nIt has its own name and external id and lives in a folder.\n\nThe document's shape follows the Contract's fields exactly. What a field's value looks like depends\non its type *and* on its modifiers, below.\n\n### Template — how content is *rendered*\n\nA Template names which Contracts it can render, and has its own **settings Contract**: an ordinary\nContract describing the presentational choices that template offers — a variant, an alignment, how\nmany columns.\n\nThis is why Contracts stay free of presentation. \"A statement, centred, with a ghost button\" is one\nTemplate's settings over a plain statement Contract, not three fields on the Contract itself.\n\n### Presentation — a Template bound to content\n\nA **presentation value** is where the two meet: it names a Template, binds a Component (or holds an\ninline document), and carries settings and contextual values for this one use.\n\nA page is usually a Component whose fields hold presentation values — a hero, then some sections —\nand each of those points at content that may be used elsewhere, rendered differently.\n\n### Adapter — a reusable mapping between Contracts\n\nSometimes a Template needs a `card` and what you have is a `blog-page`. An Adapter is a named,\nreusable mapping from one Contract to another: one rule per output field, plus a small set of logic\nnodes for lists, conditions and type dispatch.\n\nAn Adapter is applied by the server — at preview, at publish, and at delivery — so the mapping is\ndefined once and behaves identically everywhere.\n\n### Experience — where content lives on the web\n\nThe Experience tree is the site's address space. A **site** is a root; **nodes** under it are pages,\neach with a slug. A node's path is its ancestors' slugs plus its own.\n\nA node's **payload** says what it renders — usually a presentation value, sometimes a redirect,\nsometimes nothing at all (a node with no payload is pure structure, giving its children a path\nsegment without being a page itself).\n\nCreating a node and setting its payload are **two separate calls**. That is not an oversight: a\nnode's identity and location change for different reasons than its content does.\n\n## The five modifiers\n\nAny field can carry any combination of these. They compose, and each one changes the shape of the\nvalue stored in the document — which is the part worth understanding before writing one.\n\n| Modifier | What it means | Effect on the value |\n|---|---|---|\n| Mandatory | A value is required | Validation refuses an empty one |\n| Enumerable | Many rather than one | The value becomes a list |\n| Localizable | Translatable per locale | The value becomes `{ default, translations }` |\n| Personalizable | Varies by audience | The value becomes `{ default, variants }` |\n| Contextual | Overridable per use | The value may be supplied where the Component is *used*, not only where it is defined |\n\nCardinality is Enumerable's job, never the field type's. There is no \"list of text\" field type;\nthere is a text field that is enumerable.\n\n**Contextual** is the one worth dwelling on, because it has no counterpart in most systems. A\ncontextual field's value can be set on the Component (a default) *and* overridden by whoever binds\nthat Component somewhere — a heading that reads one way on the home page and another on a listing,\nfrom one Component with one document. Those overrides are the `contextualValues` that travel with a\nreference or a presentation value.\n\n## An order of operations that works\n\nDependencies run one way, so build in this order and nothing is ever waiting on something that does\nnot exist yet.\n\n1. **Describe.** `GET /field-types`, `/contracts`, `/templates`. Learn what exists before adding to\n it.\n2. **Contracts.** Parents before children, since a child names its parent.\n3. **Templates.** After the Contracts they render, since a Template names them.\n4. **Components.** After their Contract, and after any Contract they reference.\n5. **A site**, if the environment has none. Then **nodes** under it, parents before children.\n6. **Node payloads.** After both the node and the Component it binds.\n7. **Publish.** Plan first, read the blockers, then publish.\n\nTwo ordering facts that are easy to get wrong: a Component referencing another Component needs that\none to exist first, and publishing follows the dependency closure automatically — so publishing a\npage will normally publish the content it binds, and the plan is where you see exactly what that\nmeans before it happens.\n\n## Publishing\n\nPublishing is two calls, and collapsing them would hide the thing that matters.\n\n**Plan** resolves the full dependency closure of what you asked to publish and reports every\n**blocker** — an unresolvable reference, a workflow state that forbids publishing, a document that\nfails validation. **Execute** publishes what the plan named.\n\nBoth are jobs: each returns an operation id, and you poll it. A real closure is too large to finish\ninside an HTTP request, which is why.\n\nRead the plan. It is the only place the system tells you what is about to change beyond what you\nexplicitly named.\n\n## Where writes land\n\nA management key is bound to exactly one organization and one **authoring environment**, and it acts\nas one **role**. It cannot reach another environment, and it is subject to the same branch access\nrules and workflow gating a person with that role is.\n\nThat binding is the real safety boundary, so it is worth confirming rather than assuming: ask the\nAPI who the key is before writing anything. If the answer is not the environment you expected, stop\n— nothing else about the request will tell you.\n\nThen ask where the environment sits (`GET /topology`, or the `content_topology` tool). It names this\nenvironment's direct neighbours, and each one tells you something about your own work:\n\n- **Publishes to.** Where a publish from here lands. If one of these is a live website, a publish\n changes that website. With two or more, a publish has to say which one.\n- **Inherited content.** A refusal saying content is inherited means another realm owns it and the\n change has to be made there instead (a person can edit it from the app, and the edit is written in\n the realm that owns it; a connection never writes through to another realm).\n- **Promoted from.** Someone promoting from one of these can overwrite what you write here.\n- **Promotes to.** Where this content goes when someone promotes it. You cannot promote yourself.\n\nNothing in the answer says which environment is production. Judge that from the names, and ask the\nperson you are working for when it is not obvious.\n\n## What an empty answer means\n\nThe binding governs **reads** exactly as it governs writes, and that changes how an empty result\nshould be read. `GET /contracts` returning nothing means *this environment has no Contracts*. It does\nnot mean the organization has none, and it certainly does not mean the account has no content.\n\nThe difference matters because acting on the wrong reading is expensive in one direction: concluding\n\"nothing exists\" and creating a model that already exists elsewhere produces duplicates, which are\nmuch harder to undo than to avoid. The safe habit is to confirm the scope before concluding anything\nfrom an empty list — `GET /whoami`, or the `content_whoami` tool, which needs no permissions at all\nprecisely so that a key holding almost nothing can still ask.\n\nA `404` on a single-entity read is the same fact in another shape: not found *here*. The entity may\nexist in another environment, and this key cannot see it.\n\n## When a write is refused for a permission\n\nA key has two limits, and they are different. Its **scopes** say which kinds of call it may make at\nall (`read`, `authoring`, `publish`). The **role it runs as** says what that role may do, and a few\nkinds need a permission on top of the `authoring` scope:\n\n| To write or delete | The role needs |\n|---|---|\n| a Contract | `content.contracts.manage` |\n| a Template | `content.templates.manage` |\n\nThe Member role does not hold either. The `ContentSchemaAdmin` role holds both, as does Owner, but\nOwner grants far more than an agent needs; prefer `ContentSchemaAdmin` or a custom role with just\nthese. Any role in the organization can be chosen as a key's \"run as\" role.\n\nA refusal for this reason is `403 permission_denied`, and it names the permission. The MCP server\nsays so plainly and, when it already knows the role lacks the permission, declines the call without\nsending it. `content_whoami` lists the kinds withheld for this role, each with the permission it\nneeds. When you see this, tell the person which permission is missing; changing the role is theirs\nto do, in the key's settings, and not something to work around.\n\n## Things that commonly go wrong\n\n- **Guessing a field type's settings** instead of reading its schema. Every field type declares its\n own; there is nothing to guess.\n- **Creating a duplicate** because an external id was not checked first. External ids are how a\n model refers to itself across environments; a duplicate is a lasting problem.\n- **Putting presentation on a Contract.** If you are adding a field called `variant`, `align`,\n `theme` or `columns` to a Contract, it almost certainly belongs in a Template's settings.\n- **Forgetting a node's payload.** A node created and never given one is a real, published,\n completely blank page.\n- **Treating a publish plan as a formality.** It is where blockers appear, and they do not appear\n anywhere else until something is already wrong.\n\n## Rendering the site is a separate job\n\nEverything above builds the content. The site that shows it reads the published result from the\nContent Delivery API, and for that there is a client: **`@ebitex/content-sdk`** (npm), or\n`Ebitex.Content.Delivery` on a .NET server. Read [Rendering your site](rendering-your-site.md)\nbefore you write any code that fetches published content, and do not write a Delivery client by\nhand without a reason.\n\n## Related\n\n- [Contracts](contracts.md) — the type system in depth\n- [Templates](templates.md) — presentation\n- [Components](components.md) — authoring content\n- [Content Adapters](content-adapters.md) — mappings\n- [Composer](content-composer.md) — the Experience tree\n- [Publishing](publishing.md) — the publish pipeline\n- [Management keys](management-keys.md) — minting and scoping a key\n- [Rendering your site](rendering-your-site.md) — the SDK that reads what you publish\n"
|
|
10
10
|
},
|
|
11
11
|
{
|
|
12
12
|
"slug": "blog-series",
|
|
13
13
|
"title": "Blog series",
|
|
14
|
-
"body": "# Blog series\
|
|
14
|
+
"body": "# Blog series\n\nA series groups posts that are meant to be read in order — a tutorial, a multi-part explainer, a\nwalkthrough split across several weeks. Readers get a position (\"Part 3 of 12\"), previous and next\nlinks, and a landing page listing every part.\n\nPosts that aren't part of a series are completely unaffected. Series are opt-in, per post.\n\n## Creating a series\n\n1. In **Content**, create a Component using the **Blog series** Contract.\n2. Fill in:\n - **Heading** — the series name, shown on its landing page and on every part.\n - **Title** and **Description** — the page title and meta description for the landing page.\n - **Summary** *(optional)* — what the series covers. Shown above the list of parts.\n - **Media** *(optional)* — a lead image, also used as the landing page's social preview.\n3. In **Composer**, add a page under **Blog → Series** and bind your new Component to it. Its\n address will be `/blog/series/<slug>`.\n4. Publish the series.\n\nA series with no parts yet is a normal, valid thing — the landing page simply says so.\n\n## Adding posts to a series\n\nOn each post, set:\n\n- **Series** — pick the series.\n- **Part** — the reading position: 1, 2, 3…\n\nThen publish the post.\n\nThat's all. The series doesn't hold a list of its parts, so you never edit the series when adding\none — publishing the post is what puts it in the sequence.\n\n## Things worth knowing\n\n**Order comes from Part, never the publish date.** You can publish part 4 before revising part 3;\nreaders still see them in the right order.\n\n**Changing a part number takes effect when you republish that post.** Part numbers are part of the\npost's published content, so an edit that isn't published yet doesn't move anything. If you\nre-number a part and the order looks unchanged, publish it.\n\n**A part with no number sorts last.** You can add a post to a series before deciding where it goes.\nIt will appear at the end until you give it a number.\n\n**\"Part 3 of 12\" counts published parts only.** While a series is still being written, a reader on\npart 3 of an eventual twelve sees \"Part 3 of 3\". That's deliberate — the count reflects what they\ncan actually reach, and we'd rather understate than offer links that go nowhere.\n\n**Two posts with the same number won't break anything**, but they'll appear in an arbitrary (though\nstable) order relative to each other. Worth fixing when you notice it.\n\n**Unpublishing a part removes it from the sequence**, and the parts either side become adjacent.\nNothing else needs republishing.\n\n## Where a series appears\n\n- **Its landing page** at `/blog/series/<slug>` — the canonical place to read it in order.\n- **On each part** — the position, the series name, and previous/next links.\n- **In the blog archive** at `/blog` — every part is listed individually, each badged with its\n series and part number. The archive isn't collapsed to one entry per series, so a post stays\n findable by search and by topic exactly as any other post would.\n\n## Related\n\n- [Components](components.md) — creating and editing content\n- [Publishing](publishing.md) — how publishing and freezing work\n"
|
|
15
15
|
},
|
|
16
16
|
{
|
|
17
17
|
"slug": "components",
|
|
18
18
|
"title": "Authoring Components",
|
|
19
|
-
"body": "# Authoring Components\r\n\r\nA Component is one piece of content built from a Contract — for example,\r\na specific article. This guide covers creating and editing Components,\r\norganizing them in folders, and the friction the app shows you when a\r\nContract changes underneath a Component you've already created. See\r\n[Modeling content with Contracts](contracts.md) first if you haven't\r\ncreated a Contract yet.\r\n\r\n## Creating a Component\r\n\r\n1. From the Content page, select **New Component** (optionally after\r\n opening the folder you want it created in).\r\n2. Enter a **Name** — the **Id** fills in from it automatically and can\r\n still be edited by hand.\r\n3. Choose a **Contract**. If you started from a specific folder that\r\n restricts which Contracts are allowed there, only those (and their\r\n descendants) are offered.\r\n4. Fill in the form that appears — every field from the Contract, laid\r\n out in order. Fields marked with a red **\\*** are required.\r\n5. Select **Create**. If a required field is missing or a value doesn't\r\n match the Contract's rules, the field is highlighted with an\r\n explanation — fix it and select **Create** again.\r\n\r\n## Filling in fields\r\n\r\nMost fields are a straightforward text box, number box, or checkbox.\r\nA few work differently:\r\n\r\n- **Reference** and **Nested** are older field types kept working for\r\n existing Contracts, but no longer offered when adding a new field — new\r\n Contracts should use **Component** instead (below), which offers the\r\n same two behaviors plus a third, chosen per value instead of committed\r\n to for the whole field.\r\n- **Component** fields ask you to choose, each time you fill one in:\r\n **Choose existing…** to link to an existing Component (same search box as\r\n Reference); or the **Create** menu, whose **Create new…** creates a\r\n brand-new Component and links to it in one step (fill in its name,\r\n Contract, and any required fields right there), and whose **Write\r\n inline…** embeds a value that only ever exists inside this one — pick a\r\n Contract and an **Edit** panel slides in, exactly like Nested below. A\r\n step with only one possible outcome is skipped: if the Create menu would hold\r\n one item, that item is the button; if only one Contract is allowed there is no\r\n Contract to pick; and a new inline value opens for editing straight away. If\r\n the Contract only allows one of these choices, only that one is offered,\r\n and the field says so. Once filled, the value is a card with a **Component** header (and the **✕**\r\n that removes it) over its name and\r\n kind, one main button (**Edit**, which opens a linked Component in a layer\r\n over the page, or the inline value itself), a **⋯** menu holding **Change…** and\r\n **Contextual values**, and a **✕** that removes the value. If a linked Component can't be found — most often because it\r\n was skipped during a promotion into this environment (see\r\n [content-environments.md](content-environments.md)'s \"Unresolved\r\n references\" section) — you'll see a distinct **Unresolved** badge\r\n instead of the usual resolved name, with a link to Component sync to\r\n see the full picture and fix it. **Choose another** and the **✕**\r\n still work normally on an unresolved value.\r\n- **Blob** fields (images and other files) show an **Upload** button.\r\n Once uploaded, you'll see a preview (for images) and a link to download\r\n the file, plus a **Replace** button.\r\n- **Nested** fields show a small **Edit** panel once a Contract is chosen\r\n for them (automatically, if only one is allowed for that field, or via a\r\n picker if more than one is allowed) — selecting **Edit** opens the\r\n nested content in its own panel, sliding in over the current one. Any\r\n unsaved changes you've made — at every level — are kept even if you\r\n drill several levels deep and back out again; nothing is lost until you\r\n actually leave the page without saving. A Component field's own **Create\r\n inline…** choice opens the identical panel.\r\n- Fields marked **Localizable** always show a small translations icon next\r\n to their label — select it to add per-locale overrides alongside the\r\n default value. It's disabled (with an explanation on hover) until your\r\n organization has a language configured under **Localization** settings\r\n with at least one language added under it to translate into; once one\r\n exists, the icon becomes selectable. This works the same way for every\r\n field type, including Blob, Reference, Nested, Component, and\r\n Presentation fields: each locale gets its own independent\r\n **Upload**/**Edit**/**Choose…** affordance, so a Nested value's translated\r\n content — or a different linked Component or uploaded file per locale —\r\n is fully separate from the default. The default-locale row in the\r\n translations panel is always read-only (a reflection of the default\r\n value, not a second copy of it); translate from the other locale rows.\r\n- **Presentation** fields let you instantiate a Template inline — pick a\r\n Template, bind it to a Component, and set contextual values and settings\r\n for this specific placement. See\r\n [Presenting content with Templates](templates.md) for the full flow.\r\n\r\n## Links to the live page\r\n\r\nIf the Contract has **External links**, they appear as buttons under the\r\nComponent's name, and at the top of the quick-edit panel. A button opens that\r\nComponent's page on your site in a new tab. If it is greyed out, the reason is\r\nwritten beside it, usually that the Component has not been published yet. The\r\nlink always shows what is *published*, not the changes you are typing. If your\r\nsite is served from more than one environment (Live and Staging, say) the button\r\nhas a small arrow and opens a menu with one entry per environment, such as\r\n**Open on Live**. Nothing is chosen for you and your choice is not remembered. See\r\n[Links to your site](contracts.md) to set them up.\r\n\r\n## Noting which channels a Component is made for\r\n\r\nOn a Component's **Settings** tab, **Made for** lets you note that it suits **Email**, **Web**, or\r\nboth. It is optional and only advises: it never stops you saving or publishing, and a Component with\r\nno note is \"unknown\". Pages that are noted for a channel warn about Components that say they are not\r\nmade for it. The **Made for** column in the Components list shows the note. See\r\n[Building your site in Composer](content-composer.md#made-for).\r\n\r\n## Status, and what to do next\r\n\r\nUnder the Component's name, one **status strip** says whether it can be published and, if not, why. It also\r\nholds the next step, so you do not have to hunt for it:\r\n\r\n- **Draft**, **Published** or **Modified since it was published**, with one line about the live site\r\n (\"The live site shows an older version\").\r\n- If your organization uses an [editorial workflow](content-workflow.md) for this folder, the strip shows the\r\n workflow's state beside the headline. While that state does not allow publishing it reads **Can't be\r\n published yet**, and the workflow's next step (for example **Approve**) sits beside it. Choose it, add an\r\n optional comment and confirm, all without leaving the Content tab. **Republish…** stays available, but it is\r\n no longer the highlighted button; its tooltip gives the reason, and the publish panel explains the block.\r\n- Once the state allows publishing it reads **Ready to publish** and **Publish…** is highlighted instead.\r\n- If you have edited since a review was started, the strip says so, and that publishing will use the version\r\n that was reviewed.\r\n- A Component that no longer fits its folder's rules gets a **Move it…** row.\r\n- If the Component has translations in progress, they are listed here too, with **Review…** for one that is\r\n waiting for you.\r\n\r\nThe full workflow panel, with its comment box and **Cancel run**, and the complete translations list stay on the\r\n**Settings** tab. Where the Component is used (**Used in N places**) and whether it is **Inherited** are in the line\r\nunder the name.\r\n\r\n## Version history\r\n\r\nEvery time a Component's content is saved, ebitex keeps a copy, so you can\r\nsee what changed, who changed it, and undo an unwanted edit.\r\n\r\nOpen the **More actions** menu near the top of a Component and choose\r\n**Version history…**. Each entry shows a version number, who saved it and\r\nwhen. Select an entry to see what changed compared to the version before\r\nit: the fields that were added, removed or changed, named as you see them\r\nin the editor. The very first version has nothing to compare against.\r\n\r\nSaving the exact same content twice in a row doesn't add an entry: only a\r\nsave that actually changes something does. Entries can show **Unknown**\r\ninstead of a name when none was recorded, which is the case for changes\r\nmade by promotion, import or inheritance rather than by a person typing in\r\nthe editor. It doesn't mean the person has left your organization.\r\n\r\n**Restoring** a version puts that version's name and document back as the\r\nComponent's current content. Its folder stays where it is. Nothing is\r\ndeleted: restoring adds a *new* entry to the history, marked **restored**,\r\nso you can undo a restore by restoring again. Any unsaved edits on the page\r\nare discarded when you restore, and the confirmation says so. A restore\r\ndoes not publish anything. If the restored content differs from what is live\r\nthe Component reads **Modified** until you publish it; if it matches what is\r\nlive, it reads Published again.\r\n\r\nRestoring needs a permission beyond the one for viewing history (today,\r\nOwners hold it), and the same edit access on the folder that saving does.\r\nWithout them the option is shown but disabled, with the reason on hover.\r\nIt is also unavailable on an inherited Component: its history belongs to the\r\nenvironment that owns it, so restore it there. Viewing history needs the version-history permission, which Members\r\nhold; a role you manage that should see history needs it added on the\r\nRoles page.\r\n\r\nTwo things worth knowing before you restore:\r\n\r\n- **Referenced items aren't included.** A version remembers this Component's\r\n own name and document, not what an item it references looked like at that\r\n time. A restored version shows those items as they are today.\r\n- **A version can become unrestorable.** If it was written against a version\r\n of its Contract that no longer exists, or points at content that has since\r\n been deleted, restoring explains why and leaves the Component unchanged.\r\n\r\nIf someone else saves the Component while you have its history open, a\r\nrestore is rejected like an ordinary save would be. Reload to see the latest\r\ncontent, then try again.\r\n\r\nPages in the Composer have the same **Version history…** action. Their history\r\nis read-only for now: you can see what changed and who changed it, but not\r\nrestore a page.\r\n\r\n## Jumping to a field\r\n\r\nWhen a Contract has eight or more fields, a **Jump to field** menu appears beside the **Content** and **Settings**\r\ntabs. Choosing a field scrolls to it and puts the cursor there. A red dot marks a field that needs attention after\r\na failed save.\r\n\r\n## Sharing a link to a place in Content\r\n\r\nTo show a colleague where something is, open the Component and choose **More actions** > **Copy link**. The link opens that Component in the same realm and environment you are working in, so it lands in the right place even if their last visit was somewhere else. It changes nothing and gives no access: someone who cannot see the Component is told so, as usual.\r\n\r\nA link can also point at one thing on the page. When you open such a link, Content scrolls to the item and draws a ring around it that pulses a couple of times; a screen reader announces \"Highlighted:\" and the item's name. Press any key or click anywhere to clear the ring, or just wait a few seconds. If your device is set to reduce motion, the ring stays still.\r\n\r\nYou can write these links by hand. They are the address of the page followed by these parameters:\r\n\r\n| Parameter | What it does |\r\n|---|---|\r\n| `realm=<id>` | Opens in that realm |\r\n| `env=<id>` | Opens in that authoring environment |\r\n| `folderId=<id>` | On the Components list, opens that folder |\r\n| `focus=component:<id>` | On the Components list, rings that Component |\r\n| `focus=external-links` | In the editor, rings the row of links to the live page |\r\n| `focus=external-link:<label>` | In the editor, rings one of those links, for example `focus=external-link:Pedigree` |\r\n\r\nEach parameter is used once and then removed from the address, so reloading the page, or switching realm or environment afterwards, is not undone by an old link. A value that does not exist is ignored.\r\n\r\n## Editing a tree of Components\r\n\r\nWhen a Contract is set up to be edited as a tree (see\r\n[Editing fields as a tree](contracts.md)), its Component editor shows one\r\nsection, such as **Pedigree**, in place of the separate pickers. The Component\r\nyou are editing is the root, and each slot is a Component of its own.\r\n\r\n- **Chart or outline.** A slot-based tree such as a pedigree is drawn as a chart,\r\n one column per generation, or as an outline. Choose with the buttons above it;\r\n the outline is used on narrow screens. **Generations** shows fewer levels\r\n without changing anything. A list, such as the parts of a product, is always\r\n an outline you can collapse and expand.\r\n- **Fill a slot.** Select an empty slot to search for an existing Component, or\r\n **Create new** to make one on the spot. A slot only lists Components it can\r\n hold, such as dogs for a sire.\r\n- **Options you can't choose are greyed out, with the reason.** *Would become its\r\n own ancestor* or *Would contain itself* means choosing it would make something\r\n its own ancestor. *Already used elsewhere in this tree* appears when the\r\n Contract doesn't allow repeats. *Already in this list* means it is there\r\n already. If the server still refuses a change, the reason is shown above the\r\n tree.\r\n- **Edit without leaving.** **Edit** on a filled slot opens that Component in a\r\n panel over the page. Change it, save it and close the panel, and you are back\r\n in the tree.\r\n- **Change or remove.** Point at a filled slot for **Change** and the remove\r\n button. Removing only empties the slot; the Component itself is kept.\r\n- **A slot under an empty parent is greyed out**, because there is nothing to\r\n attach it to yet. Fill the parent first.\r\n- **A name with ×2 or \"in 2\"** is one Component that appears in more than one\r\n place. Editing it changes it everywhere.\r\n\r\n**Records from another app.** A field can take records that another app owns, such as dogs held in\r\nData, instead of Components. The tree draws them the same way, and the first level (the slots of the\r\nComponent you are editing) is changed like any other. What is beneath it belongs to the other app, and\r\nwhat you can do to it is decided by that app, record by record. Where it lets you edit a record, **Edit**\r\nopens that record in a panel and **Save** saves it **there**, under its own rules (a refusal is shown on the\r\nfield it names); slots beneath it can be added, changed and removed, and are saved there too. Where it does\r\nnot, the record is shown but cannot be changed: a slot it has not filled reads *not set*, and **Edit**\r\nbecomes **Open in** the other app, which opens its own screen for that record in a new tab. If the other app has no screen for a\r\nrecord, no link is offered. When a slot takes only that app's records, the picker also offers **Create a {record kind} in {app}** (only for a kind you are allowed to create there): it opens that app's own form, starts with the name you typed in the search box, and **Save** makes the record **there** and puts it in the slot. Cancelling makes nothing. A record it cannot return, because it was deleted or because you may not see it, is shown as *Unavailable* and does not stop the page.\r\n\r\n**A slot can be described inline.** Some fields accept a description written\r\nin place instead of an existing Component, for example a dam who is not in your\r\narchive and never will be. Where a field allows it, the picker has an\r\n**Enter … inline instead** button. An inline slot is drawn with a dashed\r\noutline and an **Inline** chip, and its own slots (her sire and dam, say) are\r\ndrawn under it and filled in the same way as any other.\r\n\r\n- **Edit** on an inline slot opens its own fields in a panel at the side. The\r\n slots the tree draws are not repeated there. Choose **Done** to keep your\r\n changes.\r\n- **Change** or the remove button on an inline slot replaces or removes it\r\n *together with everything under it*. The picker says how many entries that\r\n is before you choose, and a notice with **Undo** appears for a few seconds\r\n afterwards. Undo puts the whole description back.\r\n- A field that only accepts an existing Component has no inline button.\r\n- Nothing else can point at an inline description, so it shows no ×2 count.\r\n\r\n**What saves when.** The first level, the slots of the Component you have open,\r\nis part of that Component: it is saved with **Save**, like any other field.\r\nSlots deeper down belong to the Components above them, so filling one saves that\r\nComponent straight away, and a **Saved as you go** note under the tree says so.\r\nA slot under an inline description belongs to the Component that holds the\r\ndescription, so it follows the same rule: with **Save** when that Component is\r\nthe one you have open, at once otherwise.\r\n\r\n## Contextual defaults\r\n\r\nFields marked Contextual on the Contract appear in a separate\r\n**\"Defaults for usage sites\"** section, clearly labeled optional — even if\r\nthe Contract also marks them Mandatory. That's intentional: a Contextual\r\nfield's real value is supplied wherever the content is *used*, not here;\r\nwhat you set in this section is only a fallback for places that don't\r\nsupply their own value.\r\n\r\n### Setting per-usage values on a Reference\r\n\r\nWhen you link to another Component via a Reference field (or a Component\r\nfield's **Choose existing…**/**Create new…** path — both link the same way),\r\nopen the card's **⋯** menu and select **Contextual values** to open a panel listing that target's own Contextual\r\nfields, each with three distinct states you can switch between:\r\n\r\n- **Inheriting the Component's default** — nothing set here; the linked\r\n Component's own default value is used.\r\n- **Overridden** — set a value here to use instead of the default, just\r\n for this one link. This works for every field type the target Contract\r\n declares as Contextual, not just simple text/number/checkbox fields — a\r\n Contextual Reference field gets the same **Choose…** picker, a Contextual\r\n Blob field the same **Upload** button, and a Contextual Nested field the\r\n same drill-in **Edit** panel you'd see editing that field directly on a\r\n Component.\r\n- **Explicitly cleared** — select **Clear** to force \"no value\" at this\r\n usage, ignoring the default entirely (only available when the field\r\n isn't required).\r\n\r\nSelect **Reset to default** at any time to go back to inheriting. The same\r\nthree states and the same per-type widgets apply to a Presentation field's\r\nown contextual-values panel (see\r\n[Presenting content with Templates](templates.md)).\r\n\r\n### Editing the linked Component itself\r\n\r\nA linked Component's main button is **Edit** (the layer is titled Quick edit), which opens that Component in a layer over the page you're on —\r\nits own fields, its own **Save**, and a note of everywhere else it's used,\r\nsince saving changes it there too. How layers stack, and the difference\r\nbetween a layer that saves on its own and one that's part of your page, is\r\nexplained in\r\n[Editing something from where it's used](content-authoring.md#editing-something-from-where-its-used).\r\n\r\n## Organizing with folders\r\n\r\nThe **Components** page (under **Authoring**) shows your folder tree on the left. At the top are **All components** (everything in\r\nthis environment, across every folder) and **Top level** (Components that aren't in any folder). Below them\r\nare your folders, each with a count; a folder's count includes everything beneath it. A long folder name wraps\r\nrather than being cut off.\r\n\r\nPoint at a folder to see its actions: the **+** icon creates a subfolder inside it, the pencil renames it or\r\nmoves it (choose where it goes under **Inside**), the trash icon deletes it (only possible once it's empty,\r\nand it asks first), and the handle drags it. Selecting a folder shows two tabs: **Contents** (the Components\r\ninside it) and, if you have the right permissions, **Settings** (that folder's **Access rules**, **Allowed\r\nContracts**, and editorial workflow assignment). The double-arrow at the top of the panel collapses the whole\r\ntree to a narrow rail of icons with count badges; select one to open that folder, or the arrow to bring the\r\npanel back.\r\n\r\nEach Component is a row with its title (its id underneath), Contract, publish status (**Draft**, **Published**,\r\n**Changed** or **Unpublished**), and who last updated it and when. Select the **Title** or **Updated** heading\r\nto sort by it. Above the list, a search box matches a title, id or Contract, and the **Contract**,\r\n**Category** and **Status** chips narrow further; **Clear filters** resets them. **Status** lets you tick\r\none or more of Draft, Published, Changed and Unpublished, for example to find everything that has changed since\r\nit was published. The count under the list follows the filter, so it is the number that match, not the number\r\non the page. **Import**, beside **New Component**, opens the [bundle import](export-import.md) for bringing\r\nComponents in from another environment. Beneath the list, **Rows per page** and\r\n**Previous / Next** page through long folders, and a line says how many of the total you are looking at.\r\n\r\n### Moving Components by dragging, or with the menu\r\n\r\nDrag a Component by the handle at the start of its row onto a folder in the tree — or onto **Top level** to take\r\nit out of its folder — to move it. If you've ticked several rows, dragging one drags them all. A message\r\nconfirms what moved and offers **Undo**, which puts each Component back where it came from.\r\n\r\nTo move without dragging, open the row's **⋯** menu and choose **Move to folder…**, then pick the folder. When\r\nthe row is part of a selection, the menu says \"Move 3 selected to folder…\" and moves all of them. A folder you\r\ncan't edit is shown but not choosable. A move is not all-or-nothing: if a Component can't go there (the folder\r\ndoesn't allow its Contract, say, or you can't edit it), the message names it and why, and the rest still move.\r\nDragging a folder onto another moves the whole folder inside it; a folder can't be dropped into itself or one\r\nof its own subfolders. Folders are always listed alphabetically, so there is no manual order to drag into.\r\n\r\n### Working on several Components at once\r\n\r\nTick rows (the box in the heading ticks every row on the page) and a bar replaces the search tools, showing how\r\nmany are selected and in which publish states:\r\n\r\n- **Publish** applies to everything selected, and reads **Republish** when none of the selection is a draft.\r\n It opens the usual publish dialog, which lists what else would be published with them.\r\n- **Unpublish** applies only to what is published or changed. It shows \"2 of 5\" when some of the selection\r\n can't be unpublished, is switched off with the reason when none can, and asks you to confirm, with a breakdown\r\n of what comes off the live site.\r\n- **Move to folder…** moves what you can edit and says how many of the selection that is.\r\n\r\nUnder **Settings**:\r\n\r\n- **Access rules** restrict which roles can view, edit, delete, or publish\r\n content in that folder and everything below it (until a subfolder sets\r\n its own, narrower rules). No rules anywhere on a branch means it's open\r\n to every member. Select **Add Rule** to grant a role access: pick the\r\n role from the list and check whichever of View/Edit/Delete/Publish it\r\n should have. Editing, deleting, or publishing all imply viewing, so you\r\n don't need to check View separately for those.\r\n- **Allowed Contracts** restrict which Contracts new Components in that\r\n folder (and its subfolders, unless they set their own) can use — useful\r\n for keeping a folder focused on one kind of content. Select **Add\r\n Contract** and search for the Contract to allow; select **Remove** next\r\n to an already-allowed Contract to take it off the list. This only\r\n affects *new* or *moved* Components; it never breaks ones already there,\r\n though they'll show a **Non-conforming** badge as a reminder.\r\n\r\nIf you don't have permission to manage a folder's access rules or allowed\r\nContracts, you can still see what you're allowed to do there — the panel\r\njust won't let you change it.\r\n\r\n### Moving a Component from its own page\r\n\r\nOpen the Component, select the **Settings** tab, and select **Move…**\r\nnext to the **Folder** label. A picker lists every folder (and **Root**);\r\npick one to move the Component there once you save. A folder you don't\r\nhave edit access to is shown but disabled, with an explanation. A folder\r\nwhose **Allowed Contracts** don't include this Component's Contract is\r\ndisabled too — unlike an *existing* Component whose folder's rules later\r\nchange (the **Non-conforming** badge case above), a move that would\r\nviolate the target folder's rules is rejected outright, so the picker\r\nwon't offer it as an option in the first place.\r\n\r\n### Making copies of a Component\r\n\r\nWhen you need several near-identical records (a litter, a series of events,\r\nproduct variants), build one and **duplicate** it. Open the Component and\r\nselect **Duplicate…** next to **Edit in context…**. The button is there whenever you\r\ncould create a Component in the same folder, and absent when you couldn't.\r\n\r\nChoose a **number of copies** (1 to 25) and a **name**. Each copy is named\r\nwith a number after it (`Puppy A 1`, `Puppy A 2`, …), and the dialog previews\r\nthe first three, with their external ids, before you start.\r\n\r\n- **Values are copied, references are shared.** A copy gets its own\r\n copy of every value in the document. A Component it *references* is not\r\n copied: every copy points at the same one, so changing that referenced\r\n Component changes it in all of them.\r\n- **Copies are drafts.** They are not published, and carry none of the\r\n original's published state, history, workflow state, or where it is used.\r\n They sit in the same folder and use the same Contract as the original.\r\n- **Copies are made from the saved version.** If you have unsaved edits, the\r\n dialog says so; save first if you want them included.\r\n- **External ids** follow the original's (`puppy-a-copy-1`) and move to the\r\n next free number if one is taken, so a batch never fails over a clash.\r\n\r\nCopies are created one at a time. If your plan only has room for some of them,\r\nthe dialog says how many fit and won't start until the number is lowered. If\r\nsomething goes wrong part-way, it lists which copies exist, which failed and\r\nwhich were never attempted, and offers **Create the remaining N**, which\r\ncarries on from where it stopped instead of making extras. If the original no\r\nlonger matches the latest version of its Contract, nothing is created and the\r\ndialog names the field to fix first.\r\n\r\n### Finding your way back to a folder\r\n\r\nThe Component editor shows a breadcrumb above its title (**Content** /\r\nthe folder it's in / the Component's name) — select the folder name to\r\nreturn straight to that folder's Contents tab, rather than using your\r\nbrowser's back button.\r\n\r\n## The upgrade badge\r\n\r\nIf a Contract changes after a Component was created from it, that\r\nComponent keeps working exactly as it did — nothing breaks automatically.\r\nInstead:\r\n\r\n- If the Component still satisfies the Contract's latest version, you'll\r\n see a badge offering **Upgrade to v_N_** — select it to move the\r\n Component onto the latest version immediately.\r\n- If it no longer satisfies the latest version, you'll see a\r\n **Not valid against latest** badge listing exactly what's wrong. Select\r\n **Start guided upgrade** to switch into editing against the latest\r\n version, fix the listed issues, and save — the Component moves onto the\r\n new version as part of that save.\r\n\r\nYou're never forced to upgrade; an older Component keeps validating against\r\nthe version it was created with until you choose to move it forward.\r\n\r\n## Asking the assistant to edit this Component\r\n\r\nThe assistant (open it from the magenta ebitex-mark icon in the header, beside **?**) can see and edit the\r\nComponent you have open, not only answer questions about it — see **The assistant** in\r\n[Getting help](../general/getting-help.md). A field edit it makes saves immediately with the same\r\nversion history a manual edit gets; anything bigger, like deleting the Component, is proposed for\r\nyou to review first.\r\n"
|
|
19
|
+
"body": "# Authoring Components\n\nA Component is one piece of content built from a Contract — for example,\na specific article. This guide covers creating and editing Components,\norganizing them in folders, and the friction the app shows you when a\nContract changes underneath a Component you've already created. See\n[Modeling content with Contracts](contracts.md) first if you haven't\ncreated a Contract yet.\n\n## Creating a Component\n\n1. From the Content page, select **New Component** (optionally after\n opening the folder you want it created in).\n2. Enter a **Name** — the **Id** fills in from it automatically and can\n still be edited by hand.\n3. Choose a **Contract**. If you started from a specific folder that\n restricts which Contracts are allowed there, only those (and their\n descendants) are offered.\n4. Fill in the form that appears — every field from the Contract, laid\n out in order. Fields marked with a red **\\*** are required.\n5. Select **Create**. If a required field is missing or a value doesn't\n match the Contract's rules, the field is highlighted with an\n explanation — fix it and select **Create** again.\n\n## Filling in fields\n\nMost fields are a straightforward text box, number box, or checkbox.\nA few work differently:\n\n- **Reference** and **Nested** are older field types kept working for\n existing Contracts, but no longer offered when adding a new field — new\n Contracts should use **Component** instead (below), which offers the\n same two behaviors plus a third, chosen per value instead of committed\n to for the whole field.\n- **Component** fields ask you to choose, each time you fill one in:\n **Choose existing…** to link to an existing Component (same search box as\n Reference); or the **Create** menu, whose **Create new…** creates a\n brand-new Component and links to it in one step (fill in its name,\n Contract, and any required fields right there), and whose **Write\n inline…** embeds a value that only ever exists inside this one — pick a\n Contract and an **Edit** panel slides in, exactly like Nested below. A\n step with only one possible outcome is skipped: if the Create menu would hold\n one item, that item is the button; if only one Contract is allowed there is no\n Contract to pick; and a new inline value opens for editing straight away. If\n the Contract only allows one of these choices, only that one is offered,\n and the field says so. Once filled, the value is a card with a **Component** header (and the **✕**\n that removes it) over its name and\n kind, one main button (**Edit**, which opens a linked Component in a layer\n over the page, or the inline value itself), a **⋯** menu holding **Change…** and\n **Contextual values**, and a **✕** that removes the value. If a linked Component can't be found — most often because it\n was skipped during a promotion into this environment (see\n [content-environments.md](content-environments.md)'s \"Unresolved\n references\" section) — you'll see a distinct **Unresolved** badge\n instead of the usual resolved name, with a link to Component sync to\n see the full picture and fix it. **Choose another** and the **✕**\n still work normally on an unresolved value.\n- **Blob** fields (images and other files) show an **Upload** button.\n Once uploaded, you'll see a preview (for images) and a link to download\n the file, plus a **Replace** button.\n- **Nested** fields show a small **Edit** panel once a Contract is chosen\n for them (automatically, if only one is allowed for that field, or via a\n picker if more than one is allowed) — selecting **Edit** opens the\n nested content in its own panel, sliding in over the current one. Any\n unsaved changes you've made — at every level — are kept even if you\n drill several levels deep and back out again; nothing is lost until you\n actually leave the page without saving. A Component field's own **Create\n inline…** choice opens the identical panel.\n- Fields marked **Localizable** always show a small translations icon next\n to their label — select it to add per-locale overrides alongside the\n default value. It's disabled (with an explanation on hover) until your\n organization has a language configured under **Localization** settings\n with at least one language added under it to translate into; once one\n exists, the icon becomes selectable. This works the same way for every\n field type, including Blob, Reference, Nested, Component, and\n Presentation fields: each locale gets its own independent\n **Upload**/**Edit**/**Choose…** affordance, so a Nested value's translated\n content — or a different linked Component or uploaded file per locale —\n is fully separate from the default. The default-locale row in the\n translations panel is always read-only (a reflection of the default\n value, not a second copy of it); translate from the other locale rows.\n- **Presentation** fields let you instantiate a Template inline — pick a\n Template, bind it to a Component, and set contextual values and settings\n for this specific placement. See\n [Presenting content with Templates](templates.md) for the full flow.\n\n## Links to the live page\n\nIf the Contract has **External links**, they appear as buttons under the\nComponent's name, and at the top of the quick-edit panel. A button opens that\nComponent's page on your site in a new tab. If it is greyed out, the reason is\nwritten beside it, usually that the Component has not been published yet. The\nlink always shows what is *published*, not the changes you are typing. If your\nsite is served from more than one environment (Live and Staging, say) the button\nhas a small arrow and opens a menu with one entry per environment, such as\n**Open on Live**. Nothing is chosen for you and your choice is not remembered. See\n[Links to your site](contracts.md) to set them up.\n\n## Noting which channels a Component is made for\n\nOn a Component's **Settings** tab, **Made for** lets you note that it suits **Email**, **Web**, or\nboth. It is optional and only advises: it never stops you saving or publishing, and a Component with\nno note is \"unknown\". Pages that are noted for a channel warn about Components that say they are not\nmade for it. The **Made for** column in the Components list shows the note. See\n[Building your site in Composer](content-composer.md#made-for).\n\n## Status, and what to do next\n\nUnder the Component's name, one **status strip** says whether it can be published and, if not, why. It also\nholds the next step, so you do not have to hunt for it:\n\n- **Draft**, **Published** or **Modified since it was published**, with one line about the live site\n (\"The live site shows an older version\").\n- If your organization uses an [editorial workflow](content-workflow.md) for this folder, the strip shows the\n workflow's state beside the headline. While that state does not allow publishing it reads **Can't be\n published yet**, and the workflow's next step (for example **Approve**) sits beside it. Choose it, add an\n optional comment and confirm, all without leaving the Content tab. **Republish…** stays available, but it is\n no longer the highlighted button; its tooltip gives the reason, and the publish panel explains the block.\n- Once the state allows publishing it reads **Ready to publish** and **Publish…** is highlighted instead.\n- If you have edited since a review was started, the strip says so, and that publishing will use the version\n that was reviewed.\n- A Component that no longer fits its folder's rules gets a **Move it…** row.\n- If the Component has translations in progress, they are listed here too, with **Review…** for one that is\n waiting for you.\n\nThe full workflow panel, with its comment box and **Cancel run**, and the complete translations list stay on the\n**Settings** tab. Where the Component is used (**Used in N places**) and whether it is **Inherited** are in the line\nunder the name.\n\n## Version history\n\nEvery time a Component's content is saved, ebitex keeps a copy, so you can\nsee what changed, who changed it, and undo an unwanted edit.\n\nOpen the **More actions** menu near the top of a Component and choose\n**Version history…**. Each entry shows a version number, who saved it and\nwhen. Select an entry to see what changed compared to the version before\nit: the fields that were added, removed or changed, named as you see them\nin the editor. The very first version has nothing to compare against.\n\nSaving the exact same content twice in a row doesn't add an entry: only a\nsave that actually changes something does. Entries can show **Unknown**\ninstead of a name when none was recorded, which is the case for changes\nmade by promotion, import or inheritance rather than by a person typing in\nthe editor. It doesn't mean the person has left your organization.\n\n**Restoring** a version puts that version's name and document back as the\nComponent's current content. Its folder stays where it is. Nothing is\ndeleted: restoring adds a *new* entry to the history, marked **restored**,\nso you can undo a restore by restoring again. Any unsaved edits on the page\nare discarded when you restore, and the confirmation says so. A restore\ndoes not publish anything. If the restored content differs from what is live\nthe Component reads **Modified** until you publish it; if it matches what is\nlive, it reads Published again.\n\nRestoring needs a permission beyond the one for viewing history (today,\nOwners hold it), and the same edit access on the folder that saving does.\nWithout them the option is shown but disabled, with the reason on hover.\nIt is also unavailable on an inherited Component: its history belongs to the\nenvironment that owns it, so restore it there. Viewing history needs the version-history permission, which Members\nhold; a role you manage that should see history needs it added on the\nRoles page.\n\nTwo things worth knowing before you restore:\n\n- **Referenced items aren't included.** A version remembers this Component's\n own name and document, not what an item it references looked like at that\n time. A restored version shows those items as they are today.\n- **A version can become unrestorable.** If it was written against a version\n of its Contract that no longer exists, or points at content that has since\n been deleted, restoring explains why and leaves the Component unchanged.\n\nIf someone else saves the Component while you have its history open, a\nrestore is rejected like an ordinary save would be. Reload to see the latest\ncontent, then try again.\n\nPages in the Composer have the same **Version history…** action. Their history\nis read-only for now: you can see what changed and who changed it, but not\nrestore a page.\n\n## Jumping to a field\n\nWhen a Contract has eight or more fields, a **Jump to field** menu appears beside the **Content** and **Settings**\ntabs. Choosing a field scrolls to it and puts the cursor there. A red dot marks a field that needs attention after\na failed save.\n\n## Sharing a link to a place in Content\n\nTo show a colleague where something is, open the Component and choose **More actions** > **Copy link**. The link opens that Component in the same realm and environment you are working in, so it lands in the right place even if their last visit was somewhere else. It changes nothing and gives no access: someone who cannot see the Component is told so, as usual.\n\nA link can also point at one thing on the page. When you open such a link, Content scrolls to the item and draws a ring around it that pulses a couple of times; a screen reader announces \"Highlighted:\" and the item's name. Press any key or click anywhere to clear the ring, or just wait a few seconds. If your device is set to reduce motion, the ring stays still.\n\nYou can write these links by hand. They are the address of the page followed by these parameters:\n\n| Parameter | What it does |\n|---|---|\n| `realm=<id>` | Opens in that realm |\n| `env=<id>` | Opens in that authoring environment |\n| `folderId=<id>` | On the Components list, opens that folder |\n| `focus=component:<id>` | On the Components list, rings that Component |\n| `focus=external-links` | In the editor, rings the row of links to the live page |\n| `focus=external-link:<label>` | In the editor, rings one of those links, for example `focus=external-link:Pedigree` |\n\nEach parameter is used once and then removed from the address, so reloading the page, or switching realm or environment afterwards, is not undone by an old link. A value that does not exist is ignored.\n\n## Editing a tree of Components\n\nWhen a Contract is set up to be edited as a tree (see\n[Editing fields as a tree](contracts.md)), its Component editor shows one\nsection, such as **Pedigree**, in place of the separate pickers. The Component\nyou are editing is the root, and each slot is a Component of its own.\n\n- **Chart or outline.** A slot-based tree such as a pedigree is drawn as a chart,\n one column per generation, or as an outline. Choose with the buttons above it;\n the outline is used on narrow screens. **Generations** shows fewer levels\n without changing anything. A list, such as the parts of a product, is always\n an outline you can collapse and expand.\n- **Fill a slot.** Select an empty slot to search for an existing Component, or\n **Create new** to make one on the spot. A slot only lists Components it can\n hold, such as dogs for a sire.\n- **Options you can't choose are greyed out, with the reason.** *Would become its\n own ancestor* or *Would contain itself* means choosing it would make something\n its own ancestor. *Already used elsewhere in this tree* appears when the\n Contract doesn't allow repeats. *Already in this list* means it is there\n already. If the server still refuses a change, the reason is shown above the\n tree.\n- **Edit without leaving.** **Edit** on a filled slot opens that Component in a\n panel over the page. Change it, save it and close the panel, and you are back\n in the tree.\n- **Change or remove.** Point at a filled slot for **Change** and the remove\n button. Removing only empties the slot; the Component itself is kept.\n- **A slot under an empty parent is greyed out**, because there is nothing to\n attach it to yet. Fill the parent first.\n- **A name with ×2 or \"in 2\"** is one Component that appears in more than one\n place. Editing it changes it everywhere.\n\n**Records from another app.** A field can take records that another app owns, such as dogs held in\nData, instead of Components. The tree draws them the same way, and the first level (the slots of the\nComponent you are editing) is changed like any other. What is beneath it belongs to the other app, and\nwhat you can do to it is decided by that app, record by record. Where it lets you edit a record, **Edit**\nopens that record in a panel and **Save** saves it **there**, under its own rules (a refusal is shown on the\nfield it names); slots beneath it can be added, changed and removed, and are saved there too. Where it does\nnot, the record is shown but cannot be changed: a slot it has not filled reads *not set*, and **Edit**\nbecomes **Open in** the other app, which opens its own screen for that record in a new tab. If the other app has no screen for a\nrecord, no link is offered. When a slot takes only that app's records, the picker also offers **Create a {record kind} in {app}** (only for a kind you are allowed to create there): it opens that app's own form, starts with the name you typed in the search box, and **Save** makes the record **there** and puts it in the slot. Cancelling makes nothing. A record it cannot return, because it was deleted or because you may not see it, is shown as *Unavailable* and does not stop the page.\n\n**A slot can be described inline.** Some fields accept a description written\nin place instead of an existing Component, for example a dam who is not in your\narchive and never will be. Where a field allows it, the picker has an\n**Enter … inline instead** button. An inline slot is drawn with a dashed\noutline and an **Inline** chip, and its own slots (her sire and dam, say) are\ndrawn under it and filled in the same way as any other.\n\n- **Edit** on an inline slot opens its own fields in a panel at the side. The\n slots the tree draws are not repeated there. Choose **Done** to keep your\n changes.\n- **Change** or the remove button on an inline slot replaces or removes it\n *together with everything under it*. The picker says how many entries that\n is before you choose, and a notice with **Undo** appears for a few seconds\n afterwards. Undo puts the whole description back.\n- A field that only accepts an existing Component has no inline button.\n- Nothing else can point at an inline description, so it shows no ×2 count.\n\n**What saves when.** The first level, the slots of the Component you have open,\nis part of that Component: it is saved with **Save**, like any other field.\nSlots deeper down belong to the Components above them, so filling one saves that\nComponent straight away, and a **Saved as you go** note under the tree says so.\nA slot under an inline description belongs to the Component that holds the\ndescription, so it follows the same rule: with **Save** when that Component is\nthe one you have open, at once otherwise.\n\n## Contextual defaults\n\nFields marked Contextual on the Contract appear in a separate\n**\"Defaults for usage sites\"** section, clearly labeled optional — even if\nthe Contract also marks them Mandatory. That's intentional: a Contextual\nfield's real value is supplied wherever the content is *used*, not here;\nwhat you set in this section is only a fallback for places that don't\nsupply their own value.\n\n### Setting per-usage values on a Reference\n\nWhen you link to another Component via a Reference field (or a Component\nfield's **Choose existing…**/**Create new…** path — both link the same way),\nopen the card's **⋯** menu and select **Contextual values** to open a panel listing that target's own Contextual\nfields, each with three distinct states you can switch between:\n\n- **Inheriting the Component's default** — nothing set here; the linked\n Component's own default value is used.\n- **Overridden** — set a value here to use instead of the default, just\n for this one link. This works for every field type the target Contract\n declares as Contextual, not just simple text/number/checkbox fields — a\n Contextual Reference field gets the same **Choose…** picker, a Contextual\n Blob field the same **Upload** button, and a Contextual Nested field the\n same drill-in **Edit** panel you'd see editing that field directly on a\n Component.\n- **Explicitly cleared** — select **Clear** to force \"no value\" at this\n usage, ignoring the default entirely (only available when the field\n isn't required).\n\nSelect **Reset to default** at any time to go back to inheriting. The same\nthree states and the same per-type widgets apply to a Presentation field's\nown contextual-values panel (see\n[Presenting content with Templates](templates.md)).\n\n### Editing the linked Component itself\n\nA linked Component's main button is **Edit** (the layer is titled Quick edit), which opens that Component in a layer over the page you're on —\nits own fields, its own **Save**, and a note of everywhere else it's used,\nsince saving changes it there too. How layers stack, and the difference\nbetween a layer that saves on its own and one that's part of your page, is\nexplained in\n[Editing something from where it's used](content-authoring.md#editing-something-from-where-its-used).\n\n## Organizing with folders\n\nThe **Components** page (under **Authoring**) shows your folder tree on the left. At the top are **All components** (everything in\nthis environment, across every folder) and **Top level** (Components that aren't in any folder). Below them\nare your folders, each with a count; a folder's count includes everything beneath it. A long folder name wraps\nrather than being cut off.\n\nPoint at a folder to see its actions: the **+** icon creates a subfolder inside it, the pencil renames it or\nmoves it (choose where it goes under **Inside**), the trash icon deletes it (only possible once it's empty,\nand it asks first), and the handle drags it. Selecting a folder shows two tabs: **Contents** (the Components\ninside it) and, if you have the right permissions, **Settings** (that folder's **Access rules**, **Allowed\nContracts**, and editorial workflow assignment). The double-arrow at the top of the panel collapses the whole\ntree to a narrow rail of icons with count badges; select one to open that folder, or the arrow to bring the\npanel back.\n\nEach Component is a row with its title (its id underneath), Contract, publish status (**Draft**, **Published**,\n**Changed** or **Unpublished**), and who last updated it and when. Select the **Title** or **Updated** heading\nto sort by it. Above the list, a search box matches a title, id or Contract, and the **Contract**,\n**Category** and **Status** chips narrow further; **Clear filters** resets them. **Status** lets you tick\none or more of Draft, Published, Changed and Unpublished, for example to find everything that has changed since\nit was published. The count under the list follows the filter, so it is the number that match, not the number\non the page. **Import**, beside **New Component**, opens the [bundle import](export-import.md) for bringing\nComponents in from another environment. Beneath the list, **Rows per page** and\n**Previous / Next** page through long folders, and a line says how many of the total you are looking at.\n\n### Moving Components by dragging, or with the menu\n\nDrag a Component by the handle at the start of its row onto a folder in the tree — or onto **Top level** to take\nit out of its folder — to move it. If you've ticked several rows, dragging one drags them all. A message\nconfirms what moved and offers **Undo**, which puts each Component back where it came from.\n\nTo move without dragging, open the row's **⋯** menu and choose **Move to folder…**, then pick the folder. When\nthe row is part of a selection, the menu says \"Move 3 selected to folder…\" and moves all of them. A folder you\ncan't edit is shown but not choosable. A move is not all-or-nothing: if a Component can't go there (the folder\ndoesn't allow its Contract, say, or you can't edit it), the message names it and why, and the rest still move.\nDragging a folder onto another moves the whole folder inside it; a folder can't be dropped into itself or one\nof its own subfolders. Folders are always listed alphabetically, so there is no manual order to drag into.\n\n### Working on several Components at once\n\nTick rows (the box in the heading ticks every row on the page) and a bar replaces the search tools, showing how\nmany are selected and in which publish states:\n\n- **Publish** applies to everything selected, and reads **Republish** when none of the selection is a draft.\n It opens the usual publish dialog, which lists what else would be published with them.\n- **Unpublish** applies only to what is published or changed. It shows \"2 of 5\" when some of the selection\n can't be unpublished, is switched off with the reason when none can, and asks you to confirm, with a breakdown\n of what comes off the live site.\n- **Move to folder…** moves what you can edit and says how many of the selection that is.\n\nUnder **Settings**:\n\n- **Access rules** restrict which roles can view, edit, delete, or publish\n content in that folder and everything below it (until a subfolder sets\n its own, narrower rules). No rules anywhere on a branch means it's open\n to every member. Select **Add Rule** to grant a role access: pick the\n role from the list and check whichever of View/Edit/Delete/Publish it\n should have. Editing, deleting, or publishing all imply viewing, so you\n don't need to check View separately for those.\n- **Allowed Contracts** restrict which Contracts new Components in that\n folder (and its subfolders, unless they set their own) can use — useful\n for keeping a folder focused on one kind of content. Select **Add\n Contract** and search for the Contract to allow; select **Remove** next\n to an already-allowed Contract to take it off the list. This only\n affects *new* or *moved* Components; it never breaks ones already there,\n though they'll show a **Non-conforming** badge as a reminder.\n\nIf you don't have permission to manage a folder's access rules or allowed\nContracts, you can still see what you're allowed to do there — the panel\njust won't let you change it.\n\n### Moving a Component from its own page\n\nOpen the Component, select the **Settings** tab, and select **Move…**\nnext to the **Folder** label. A picker lists every folder (and **Root**);\npick one to move the Component there once you save. A folder you don't\nhave edit access to is shown but disabled, with an explanation. A folder\nwhose **Allowed Contracts** don't include this Component's Contract is\ndisabled too — unlike an *existing* Component whose folder's rules later\nchange (the **Non-conforming** badge case above), a move that would\nviolate the target folder's rules is rejected outright, so the picker\nwon't offer it as an option in the first place.\n\n### Making copies of a Component\n\nWhen you need several near-identical records (a litter, a series of events,\nproduct variants), build one and **duplicate** it. Open the Component and\nselect **Duplicate…** next to **Edit in context…**. The button is there whenever you\ncould create a Component in the same folder, and absent when you couldn't.\n\nChoose a **number of copies** (1 to 25) and a **name**. Each copy is named\nwith a number after it (`Puppy A 1`, `Puppy A 2`, …), and the dialog previews\nthe first three, with their external ids, before you start.\n\n- **Values are copied, references are shared.** A copy gets its own\n copy of every value in the document. A Component it *references* is not\n copied: every copy points at the same one, so changing that referenced\n Component changes it in all of them.\n- **Copies are drafts.** They are not published, and carry none of the\n original's published state, history, workflow state, or where it is used.\n They sit in the same folder and use the same Contract as the original.\n- **Copies are made from the saved version.** If you have unsaved edits, the\n dialog says so; save first if you want them included.\n- **External ids** follow the original's (`puppy-a-copy-1`) and move to the\n next free number if one is taken, so a batch never fails over a clash.\n\nCopies are created one at a time. If your plan only has room for some of them,\nthe dialog says how many fit and won't start until the number is lowered. If\nsomething goes wrong part-way, it lists which copies exist, which failed and\nwhich were never attempted, and offers **Create the remaining N**, which\ncarries on from where it stopped instead of making extras. If the original no\nlonger matches the latest version of its Contract, nothing is created and the\ndialog names the field to fix first.\n\n### Finding your way back to a folder\n\nThe Component editor shows a breadcrumb above its title (**Content** /\nthe folder it's in / the Component's name) — select the folder name to\nreturn straight to that folder's Contents tab, rather than using your\nbrowser's back button.\n\n## The upgrade badge\n\nIf a Contract changes after a Component was created from it, that\nComponent keeps working exactly as it did — nothing breaks automatically.\nInstead:\n\n- If the Component still satisfies the Contract's latest version, you'll\n see a badge offering **Upgrade to v_N_** — select it to move the\n Component onto the latest version immediately.\n- If it no longer satisfies the latest version, you'll see a\n **Not valid against latest** badge listing exactly what's wrong. Select\n **Start guided upgrade** to switch into editing against the latest\n version, fix the listed issues, and save — the Component moves onto the\n new version as part of that save.\n\nYou're never forced to upgrade; an older Component keeps validating against\nthe version it was created with until you choose to move it forward.\n\n## Asking the assistant to edit this Component\n\nThe assistant (open it from the magenta ebitex-mark icon in the header, beside **?**) can see and edit the\nComponent you have open, not only answer questions about it — see **The assistant** in\n[Getting help](../general/getting-help.md). A field edit it makes saves immediately with the same\nversion history a manual edit gets; anything bigger, like deleting the Component, is proposed for\nyou to review first.\n"
|
|
20
20
|
},
|
|
21
21
|
{
|
|
22
22
|
"slug": "content-adapters",
|
|
23
23
|
"title": "Bridging Contracts with Adapters",
|
|
24
|
-
"body": "# Bridging Contracts with Adapters\r\n\r\n> **Undo, leaving and saving over someone else's work:** see [Undo, leaving a page, and when someone else saved first](../general/undo-leaving-and-conflicts.md) (the Adapter canvas has an Outline view, Connect to… and Connect from…).\r\n\r\nWhen you bind a Component to a Template (see [Authoring a presentation](content-authoring.md)), the\r\nComponent's Contract normally has to be exactly what the Template needs, or a more specific kind of\r\nit. Sometimes the Component you want to use has a *different* Contract entirely — an **Adapter**\r\nbridges that gap by mapping the mismatched Contract's fields onto the ones the Template expects.\r\n\r\n## When the wizard offers one\r\n\r\nIn the Presentation wizard's **Select existing** tab, a Component whose Contract the Template\r\ndoesn't recognize at all lands in the **Needs an Adapter** group. Selecting one shows why it doesn't\r\nfit, and three buttons appear:\r\n\r\n- **Use existing Adapter** — pick an already-created Adapter that maps this Component's Contract onto\r\n something the Template accepts.\r\n- **Create Adapter** — build a new, reusable, named Adapter right there in the wizard, for this\r\n Contract pairing. It's saved to the **Adapters** page (under Model) so anyone can reuse it\r\n later.\r\n- **Connect manually** — build a one-off mapping that's saved directly on this Presentation only,\r\n never listed on the Adapters page. Useful for a mapping you don't expect to need again. A **Save as\r\n Adapter…** action turns it into a named one later, without redoing the mapping.\r\n\r\nEither way, once a mapping is attached the field-by-field connections are drawn between the\r\nComponent's fields and the Template's, Complete becomes available, and the banner reads \"Mapped via\r\n*Adapter name*\" (or \"Mapped manually\" for a one-off).\r\n\r\nA Component that's already Compatible can still get an Adapter attached deliberately — useful when\r\nyou want to reshape its content on the way into this particular Template, even though it didn't\r\nstrictly need mapping.\r\n\r\n## After it's mapped\r\n\r\nOnce a mapping is attached, the set-value card offers a few more actions beside the Adapter's name:\r\n\r\n- **Edit mapping** — reopens the same field-by-field canvas, already filled in with the current\r\n mapping, so you can adjust it without starting over. This never changes *which* Component is\r\n bound, and editing a named Adapter's mapping this way never touches the shared Adapter itself (so\r\n every other Presentation using it is unaffected) — it becomes this Presentation's own one-off\r\n mapping instead, which you can turn back into a named Adapter with **Save as Adapter…** if you\r\n want to reuse it elsewhere.\r\n- **Change** — picks a different Component for this Presentation entirely. If the new Component's\r\n Contract still works with the mapping that was already in place, it's kept automatically; if not,\r\n it's dropped and the reason is explained right there, so you can map fresh.\r\n- **Save as Adapter…** — only shown for a one-off (\"manual mapping\") — turns it into a named,\r\n reusable Adapter without redoing any of the mapping work.\r\n\r\n## The four rule kinds, in plain language\r\n\r\nEvery field the Template needs gets exactly one rule saying where its value comes from:\r\n\r\n- **Copy** — take the value straight from one of the Component's own fields (the field types have to\r\n be compatible — see below).\r\n- **Compute** — build the value from a small set of building blocks: one of the Component's fields, a\r\n fixed piece of text, joining a few things together with an optional separator, falling back\r\n through a list of options until one isn't empty, converting a value from one field type to a\r\n compatible one (e.g. plain text into rich text), taking just the first item of a list, reading a\r\n field out of a referenced/nested item, mapping every item of a list, dispatching on which kind of\r\n item you have, or a simple condition/comparison — see **Logic and structure blocks** below for all\r\n of these. There's no free-text formula box — you build the computation visually, block by block, on\r\n the canvas.\r\n- **Map inner content** — for a field that holds another whole piece of content inside it (a nested\r\n or embedded Component), apply a second, smaller Adapter to that inner content: pick an existing\r\n named Adapter, or **Connect manually** to name that inner content's own two Contracts and map them\r\n right there, the same way you'd map the outer fields. (This is also available as the **For each\r\n item** block's own \"Adapt to another Contract\" mode — see below — which is the way to reach it when\r\n you're adding a fresh block rather than mapping a whole field.)\r\n- **Look up a fixed item** — instead of taking a value from the Component being mapped, always pull it\r\n from one specific, chosen Component or item.\r\n\r\n## Field compatibility\r\n\r\nTwo fields need to either already match, or be *coercible*, to connect — you can't map a text field\r\nstraight onto a number field, for example, but a few kinds of mismatch have a small conversion block\r\nthe canvas offers to insert for you automatically:\r\n\r\n- A single value can feed a field that accepts multiple values (it becomes a one-item list) — no\r\n extra block needed.\r\n- A field that accepts multiple values can feed a single-value field by inserting a **Take first\r\n item** block, which uses the first value and drops the rest.\r\n- Some field types can be converted into others by inserting a **Convert** block — plain text into\r\n rich text, plain text into a number (fails at delivery time if the text isn't actually numeric), a\r\n number into text, or rich text into plain text (its formatting is discarded).\r\n- A field that isn't translatable can feed a translatable one (it becomes that language's default,\r\n with no translations yet).\r\n- A field restricted to certain kinds of related content requires the source to already be\r\n restricted to the same (or a more specific) set.\r\n\r\nWhen you connect two fields that need one of these conversions, a small prompt appears offering to\r\ninsert the right block between them — accept it and the connection completes with that block already\r\nwired in place. Everything else — a translatable field into a non-translatable one, a personalizable\r\nfield into a non-personalizable one (or vice versa), or two field types with no registered\r\nconversion at all — isn't allowed, and the canvas explains why right there instead of drawing a\r\nconnection (incompatible fields are also visibly dimmed while you have a source selected).\r\n\r\n## What \"unmapped — delivers null\" means\r\n\r\nEvery field the Template *requires* needs a rule — the canvas won't let you save until they all do.\r\nA field that's merely optional can be left unmapped; the card for it reads **unmapped — delivers\r\nnull**, meaning a person or system reading this content afterward will see that field as empty,\r\nexactly as if it had no value at all. This is often exactly what you want for a field the source\r\nContract has no equivalent of.\r\n\r\n## The mapping canvas\r\n\r\nWhether you're on the standalone **Adapters** page (Model → Adapters → New Adapter) or inside the\r\nwizard, mapping works the same way: every building block you add is its own node on one draggable,\r\nzoomable canvas — the **Input document** card starts on the left, the Template's (or the other\r\nContract's) fields on the right. Drag a line from one connector to another to connect them, or click a\r\nname to select it as the starting point and then click the one it should feed — both do exactly\r\nthe same thing, so use whichever is easier at the time. Click an existing connection, or the field's own\r\ndelete button, to remove it. `Escape` cancels a pending click-to-connect selection.\r\n\r\nThe **Input document** card is everything you're mapping *from*, in one place. It's always there, and\r\nit has three parts:\r\n\r\n- **Fields** — one connector per field of the Contract you're mapping from. This is the everyday\r\n one: drag a field straight across to the output it should fill.\r\n- **Input document** — the whole piece of content, as one thing. Use this when the same Adapter runs\r\n over several *different* kinds of content (a search result over every kind of page, say) and you\r\n need to branch on which kind each one actually is — connect it to a **Switch on Contract** block.\r\n- **System** — facts about the run itself rather than about the content: **Source contract external\r\n id** and **Source contract id**, which tell a consumer *which kind* of content a result came from.\r\n\r\nThe **+ Add node** button opens a menu of building blocks in four groups: **Combine and convert** (**Join text**,\r\n**First non-null**, **Constant value**, **Convert type**), **Pull in related content** (**Look up in**, **Expand\r\nfields**, **Expand Linked Experience**, **Build value**), **Work with lists** (**For each item**, **Take first item**)\r\nand **Decide** (**If / else**, **Switch on Contract**, **Equals**, **Exists**). Type in the search box to filter,\r\nuse the arrow keys to move, and press Escape to close it. The logic and structure blocks are covered in **Logic and\r\nstructure blocks** below. Drag or click to\r\nwire fields into and out of it just like any other node; each block has its own small settings right on\r\nthe node itself (which characters to join with, what to convert into, and so on). Delete a block with\r\nthe **✕** in its own corner.\r\n\r\nA required field the Template needs that's still unconnected is called out in red at the bottom of the\r\ncanvas, and saving stays disabled until every one of them has a rule.\r\n\r\nWhen something stops the mapping from being saved, a panel above the canvas counts the issues and warnings and lists\r\neach one with the field it is about. **Show** selects that field on the canvas and brings it into view.\r\n\r\nA **Full screen** button, above the canvas, expands it to fill the whole screen for a more complex\r\nmapping that needs more room to work in — nothing about the mapping is lost switching in or out, and\r\n`Escape` exits back to the normal view.\r\n\r\nA **Preview** button lets you pick a sample piece of content of the source Contract and see exactly\r\nwhat the mapped result looks like, using the real mapping engine — no guessing.\r\n\r\nThe canvas remembers however you arrange the nodes — drag them into a layout that makes sense to\r\nyou, save, and it's still that way next time you (or anyone else) open this mapping, whether it's a\r\nnamed Adapter or a one-off mapping on a single Presentation. Dragging snaps each node to a light\r\ngrid so things line up cleanly. A node you add but never connect to anything doesn't have its\r\nposition remembered, since it isn't part of the saved mapping at all yet.\r\n\r\n## Logic and structure blocks\r\n\r\n**Lists always go through a \"For each item\" block.** None of the other blocks below — Expand fields,\r\nSwitch on Contract, If/else, Equals, Exists — ever work directly on a list; each expects one item.\r\nWhen the field you're reading from holds a list, add a **For each item** block first: it's the one\r\nblock that turns a list into \"one item at a time\" and back into a list again. Everything else you\r\nconnect after it (an Expand, a Switch, a comparison, whatever the mapping needs for one item) runs\r\nonce per item automatically.\r\n\r\n- **Expand fields** — reads a field out of something that isn't a plain value: a referenced item, a\r\n nested piece of content, or a component field. Pick which Contract you're expecting (skipped\r\n automatically when there's only one possibility), and the block grows one output for each of that\r\n Contract's own fields — connect whichever ones you need onward, just like any other field.\r\n- **Expand Linked Experience** — for a link field that points at a page in your Experience tree:\r\n opens the linked page in one step. Its outputs are the page's **Name**, **URL**, **Component** (the\r\n content it's built from — pick a Contract under \"Read content as…\" to get that content's own fields\r\n as further outputs) and **Presentation** — the page's own rendering, exactly as it's configured\r\n (its Template, its content, its settings). Connect **Presentation** to a Presentation-typed output\r\n to show that page's presentation inline on yours — a \"featured pages\" section that re-hosts each\r\n page's real rendering rather than rebuilding a card from its fields. An outside link, or a page\r\n with no presentation of its own, gives nothing here; inside a **For each item**, pair it with\r\n **Keep item when** (below) to drop those. If the output field only allows certain Templates, a\r\n relayed presentation built on a different Template comes out empty (with a warning) rather than\r\n slipping through — widen the field's allowed Templates if that's not what you want.\r\n- **Build value** — the opposite of Expand fields: assembles a nested piece of content, or a component\r\n field's inline value, out of other fields in this mapping. Pick which Contract you're building, and\r\n the block grows one input for each of that Contract's own fields (fields with no separate override —\r\n the \"context\" ones you'd only ever fill in on a specific usage — never appear here at all). Fields\r\n marked **Required** need a connection before the mapping can be saved; anything else is optional and\r\n comes out empty if you leave it unconnected. Pick **Nested** or **Component** to match whatever field\r\n you're feeding the result into.\r\n- **For each item** — the only block that crosses a list boundary, as above. Choose one of two modes:\r\n - **Map each item** — click **Edit mapping** to open a dedicated screen (it takes over the whole\r\n canvas, with a **Back** button to return) where you build the per-item transformation using an\r\n **Item** starting point and a **Result** ending point, with any of the other blocks in between —\r\n including another **For each item**, for a list inside a list. That screen also has a second\r\n ending point, **Keep item when**: wire a yes/no value into it (an Exists or Equals block,\r\n usually) and only the items where it comes out *yes* make it into the list — the rest are left\r\n out entirely, with no empty placeholder and no warning for them. Leave it unconnected to keep\r\n every item. The typical use is a list of links that mixes pages with outside links: **Expand\r\n Linked Experience → Component → Exists → Keep item when** drops everything that isn't a real\r\n page, instead of shipping an empty card for it. One output can feed several blocks at once, so\r\n the same Expand can supply both the check and the result.\r\n - **Adapt to another Contract** — apply a whole second, smaller Adapter to each item, exactly like\r\n **Map inner content** above (pick an existing named Adapter, or **Connect manually**).\r\n- **Switch on Contract** — for a field that could hold more than one kind of thing (several different\r\n Contracts), branch the mapping by which one it actually is. Add a case for each Contract you want to\r\n handle by name; each case gets its own **As *(Contract name)*** output (typically feeding an Expand\r\n fields block for that specific Contract) and its own **Value for this case** input for what should\r\n come out when it matches. An optional **Default** input covers any Contract you didn't add a case\r\n for. See **Reading one page type's fields into several outputs**, below, for the two ways to wire\r\n it up.\r\n- **If / else** — picks between two values based on a yes/no condition: wire something into **When**\r\n (must resolve to yes/no — an Exists or Equals block is the usual source), and one value each into\r\n **Then** and **Else**.\r\n- **Equals** — compares two values and outputs yes/no; both sides need to already be the same field\r\n type (no automatic conversion here — insert a Convert type block first if they aren't).\r\n- **Exists** — outputs yes unless the value it's checking is completely missing or an empty piece of\r\n text; useful as the condition for an If/else block (\"only use this if there's actually something\r\n there\").\r\n\r\n## Reading one page type's fields into several outputs\r\n\r\nA common shape: the same Adapter runs over several kinds of content, and one of those kinds has a\r\nhandful of extra fields you want to carry through. A search result over every kind of page, where a\r\nblog post additionally has a heading, an author, a publish date, an image, topics and an excerpt, is\r\nthe worked example.\r\n\r\nWire it exactly the way you'd draw it:\r\n\r\n1. **Input document → Switch on Contract** (its **Value to switch on** connector). Add one case,\r\n *Blog post*.\r\n2. **As Blog post → Expand fields.** The Expand grows one output per field a blog post has.\r\n3. Connect each of those outputs **straight across to the output field it fills** — heading to\r\n Heading, author to Author, and so on. You do not wire anything back into the Switch.\r\n\r\nThat's it. Behind the scenes each of those outputs becomes its own rule, gated on \"only when this\r\nreally is a blog post\"; anything that isn't a blog post simply leaves those fields empty, which is\r\nwhat you want. Reopening the Adapter later shows you the same one Switch and one Expand you drew.\r\n\r\n**Fields every kind of content has come off the Input document, not through the Switch.** Title and\r\nDescription exist on every page, so wire them straight from the Input document's **Fields** section.\r\nRouting them through a case would gain nothing and would leave them empty for anything the Switch\r\ndoesn't have a case for.\r\n\r\n**When one output needs a *different* value per type**, that's the Switch's own arms — \"Title is the\r\nblog post's heading if it's a blog post, otherwise the page's own title\":\r\n\r\n1. **Expand fields → heading → Value for this case** (the *Blog post* arm).\r\n2. **Input document → Fields → Title → Default.**\r\n3. **Switch → Result → Title.**\r\n\r\nOne connector can feed several places at once, so the same Expand's *heading* output can go to both\r\nthe Heading output field and the Switch's arm — it's still one Switch and one Expand on the canvas.\r\n\r\n**One thing the canvas won't do:** read *two different cases'* fields into a single output without\r\ngoing through the arms. If you try, that output field shows \"Fields read from different cases of one\r\nSwitch must go through the case arms and Output\" and saving is blocked until you rewire it — combining\r\nper-case values is exactly what the arms and **Result** are for. Every other output field keeps\r\nworking normally in the meantime.\r\n\r\n## Suggest rules (Early Access)\r\n\r\nFor an organization with this Early Access feature turned on, a **Suggest rules** button appears\r\nabove the mapping canvas. Describe what you want in plain language — \"map the product's name to the\r\ncard's title, and its price to the subtitle as a formatted string\" — and it reads the two Contracts\r\ninvolved, drafts a candidate mapping, and checks its own work against the same validation the canvas\r\nalready runs, retrying until it's valid or it gives up and says so.\r\n\r\n**Nothing is written until you say so.** The panel shows the proposed rules — never the saved\r\nAdapter — with **Accept** and **Dismiss**. Accept merges the proposal into the mapping you're\r\ncurrently editing; you still have to press **Save** afterward, exactly as if you'd drawn the\r\nconnections yourself. Dismiss discards the proposal with no trace. If you already have some of the\r\nmapping done, describe what's missing — it's told what's already there and builds on it rather than\r\nstarting over.\r\n\r\nIf it can't produce a valid mapping, it says so rather than proposing something broken. If your\r\norganization has connected its own AI provider credential (see the **AI** section of your\r\norganization's settings), suggestions run on that provider instead of ebitex's, and a provider-side\r\nproblem (an expired key, exhausted credit) is reported by name so you know where to look.\r\n\r\n## Editing a named Adapter later\r\n\r\nAdapters created via **Create Adapter**, or saved via **Save as Adapter…**, live on the **Adapters**\r\npage (Model → Adapters), listed with their input and output Contracts. Editing one there updates\r\nevery Presentation using it — but only once each of those is **published again**. Content that's\r\nalready published keeps its existing shape until republished, so a mapping change never silently\r\nchanges something a visitor is looking at right now.\r\n\r\nIf a named Adapter is deleted while still bound to a Presentation, the field-by-field connections stop\r\nresolving correctly — a warning appears on the affected field, and saving is blocked until you either\r\nrestore the Adapter, pick a different one, or unbind it.\r\n"
|
|
24
|
+
"body": "# Bridging Contracts with Adapters\n\n> **Undo, leaving and saving over someone else's work:** see [Undo, leaving a page, and when someone else saved first](../general/undo-leaving-and-conflicts.md) (the Adapter canvas has an Outline view, Connect to… and Connect from…).\n\nWhen you bind a Component to a Template (see [Authoring a presentation](content-authoring.md)), the\nComponent's Contract normally has to be exactly what the Template needs, or a more specific kind of\nit. Sometimes the Component you want to use has a *different* Contract entirely — an **Adapter**\nbridges that gap by mapping the mismatched Contract's fields onto the ones the Template expects.\n\n## When the wizard offers one\n\nIn the Presentation wizard's **Select existing** tab, a Component whose Contract the Template\ndoesn't recognize at all lands in the **Needs an Adapter** group. Selecting one shows why it doesn't\nfit, and three buttons appear:\n\n- **Use existing Adapter** — pick an already-created Adapter that maps this Component's Contract onto\n something the Template accepts.\n- **Create Adapter** — build a new, reusable, named Adapter right there in the wizard, for this\n Contract pairing. It's saved to the **Adapters** page (under Model) so anyone can reuse it\n later.\n- **Connect manually** — build a one-off mapping that's saved directly on this Presentation only,\n never listed on the Adapters page. Useful for a mapping you don't expect to need again. A **Save as\n Adapter…** action turns it into a named one later, without redoing the mapping.\n\nEither way, once a mapping is attached the field-by-field connections are drawn between the\nComponent's fields and the Template's, Complete becomes available, and the banner reads \"Mapped via\n*Adapter name*\" (or \"Mapped manually\" for a one-off).\n\nA Component that's already Compatible can still get an Adapter attached deliberately — useful when\nyou want to reshape its content on the way into this particular Template, even though it didn't\nstrictly need mapping.\n\n## After it's mapped\n\nOnce a mapping is attached, the set-value card offers a few more actions beside the Adapter's name:\n\n- **Edit mapping** — reopens the same field-by-field canvas, already filled in with the current\n mapping, so you can adjust it without starting over. This never changes *which* Component is\n bound, and editing a named Adapter's mapping this way never touches the shared Adapter itself (so\n every other Presentation using it is unaffected) — it becomes this Presentation's own one-off\n mapping instead, which you can turn back into a named Adapter with **Save as Adapter…** if you\n want to reuse it elsewhere.\n- **Change** — picks a different Component for this Presentation entirely. If the new Component's\n Contract still works with the mapping that was already in place, it's kept automatically; if not,\n it's dropped and the reason is explained right there, so you can map fresh.\n- **Save as Adapter…** — only shown for a one-off (\"manual mapping\") — turns it into a named,\n reusable Adapter without redoing any of the mapping work.\n\n## The four rule kinds, in plain language\n\nEvery field the Template needs gets exactly one rule saying where its value comes from:\n\n- **Copy** — take the value straight from one of the Component's own fields (the field types have to\n be compatible — see below).\n- **Compute** — build the value from a small set of building blocks: one of the Component's fields, a\n fixed piece of text, joining a few things together with an optional separator, falling back\n through a list of options until one isn't empty, converting a value from one field type to a\n compatible one (e.g. plain text into rich text), taking just the first item of a list, reading a\n field out of a referenced/nested item, mapping every item of a list, dispatching on which kind of\n item you have, or a simple condition/comparison — see **Logic and structure blocks** below for all\n of these. There's no free-text formula box — you build the computation visually, block by block, on\n the canvas.\n- **Map inner content** — for a field that holds another whole piece of content inside it (a nested\n or embedded Component), apply a second, smaller Adapter to that inner content: pick an existing\n named Adapter, or **Connect manually** to name that inner content's own two Contracts and map them\n right there, the same way you'd map the outer fields. (This is also available as the **For each\n item** block's own \"Adapt to another Contract\" mode — see below — which is the way to reach it when\n you're adding a fresh block rather than mapping a whole field.)\n- **Look up a fixed item** — instead of taking a value from the Component being mapped, always pull it\n from one specific, chosen Component or item.\n\n## Field compatibility\n\nTwo fields need to either already match, or be *coercible*, to connect — you can't map a text field\nstraight onto a number field, for example, but a few kinds of mismatch have a small conversion block\nthe canvas offers to insert for you automatically:\n\n- A single value can feed a field that accepts multiple values (it becomes a one-item list) — no\n extra block needed.\n- A field that accepts multiple values can feed a single-value field by inserting a **Take first\n item** block, which uses the first value and drops the rest.\n- Some field types can be converted into others by inserting a **Convert** block — plain text into\n rich text, plain text into a number (fails at delivery time if the text isn't actually numeric), a\n number into text, or rich text into plain text (its formatting is discarded).\n- A field that isn't translatable can feed a translatable one (it becomes that language's default,\n with no translations yet).\n- A field restricted to certain kinds of related content requires the source to already be\n restricted to the same (or a more specific) set.\n\nWhen you connect two fields that need one of these conversions, a small prompt appears offering to\ninsert the right block between them — accept it and the connection completes with that block already\nwired in place. Everything else — a translatable field into a non-translatable one, a personalizable\nfield into a non-personalizable one (or vice versa), or two field types with no registered\nconversion at all — isn't allowed, and the canvas explains why right there instead of drawing a\nconnection (incompatible fields are also visibly dimmed while you have a source selected).\n\n## What \"unmapped — delivers null\" means\n\nEvery field the Template *requires* needs a rule — the canvas won't let you save until they all do.\nA field that's merely optional can be left unmapped; the card for it reads **unmapped — delivers\nnull**, meaning a person or system reading this content afterward will see that field as empty,\nexactly as if it had no value at all. This is often exactly what you want for a field the source\nContract has no equivalent of.\n\n## The mapping canvas\n\nWhether you're on the standalone **Adapters** page (Model → Adapters → New Adapter) or inside the\nwizard, mapping works the same way: every building block you add is its own node on one draggable,\nzoomable canvas — the **Input document** card starts on the left, the Template's (or the other\nContract's) fields on the right. Drag a line from one connector to another to connect them, or click a\nname to select it as the starting point and then click the one it should feed — both do exactly\nthe same thing, so use whichever is easier at the time. Click an existing connection, or the field's own\ndelete button, to remove it. `Escape` cancels a pending click-to-connect selection.\n\nThe **Input document** card is everything you're mapping *from*, in one place. It's always there, and\nit has three parts:\n\n- **Fields** — one connector per field of the Contract you're mapping from. This is the everyday\n one: drag a field straight across to the output it should fill.\n- **Input document** — the whole piece of content, as one thing. Use this when the same Adapter runs\n over several *different* kinds of content (a search result over every kind of page, say) and you\n need to branch on which kind each one actually is — connect it to a **Switch on Contract** block.\n- **System** — facts about the run itself rather than about the content: **Source contract external\n id** and **Source contract id**, which tell a consumer *which kind* of content a result came from.\n\nThe **+ Add node** button opens a menu of building blocks in four groups: **Combine and convert** (**Join text**,\n**First non-null**, **Constant value**, **Convert type**), **Pull in related content** (**Look up in**, **Expand\nfields**, **Expand Linked Experience**, **Build value**), **Work with lists** (**For each item**, **Take first item**)\nand **Decide** (**If / else**, **Switch on Contract**, **Equals**, **Exists**). Type in the search box to filter,\nuse the arrow keys to move, and press Escape to close it. The logic and structure blocks are covered in **Logic and\nstructure blocks** below. Drag or click to\nwire fields into and out of it just like any other node; each block has its own small settings right on\nthe node itself (which characters to join with, what to convert into, and so on). Delete a block with\nthe **✕** in its own corner.\n\nA required field the Template needs that's still unconnected is called out in red at the bottom of the\ncanvas, and saving stays disabled until every one of them has a rule.\n\nWhen something stops the mapping from being saved, a panel above the canvas counts the issues and warnings and lists\neach one with the field it is about. **Show** selects that field on the canvas and brings it into view.\n\nA **Full screen** button, above the canvas, expands it to fill the whole screen for a more complex\nmapping that needs more room to work in — nothing about the mapping is lost switching in or out, and\n`Escape` exits back to the normal view.\n\nA **Preview** button lets you pick a sample piece of content of the source Contract and see exactly\nwhat the mapped result looks like, using the real mapping engine — no guessing.\n\nThe canvas remembers however you arrange the nodes — drag them into a layout that makes sense to\nyou, save, and it's still that way next time you (or anyone else) open this mapping, whether it's a\nnamed Adapter or a one-off mapping on a single Presentation. Dragging snaps each node to a light\ngrid so things line up cleanly. A node you add but never connect to anything doesn't have its\nposition remembered, since it isn't part of the saved mapping at all yet.\n\n## Logic and structure blocks\n\n**Lists always go through a \"For each item\" block.** None of the other blocks below — Expand fields,\nSwitch on Contract, If/else, Equals, Exists — ever work directly on a list; each expects one item.\nWhen the field you're reading from holds a list, add a **For each item** block first: it's the one\nblock that turns a list into \"one item at a time\" and back into a list again. Everything else you\nconnect after it (an Expand, a Switch, a comparison, whatever the mapping needs for one item) runs\nonce per item automatically.\n\n- **Expand fields** — reads a field out of something that isn't a plain value: a referenced item, a\n nested piece of content, or a component field. Pick which Contract you're expecting (skipped\n automatically when there's only one possibility), and the block grows one output for each of that\n Contract's own fields — connect whichever ones you need onward, just like any other field.\n- **Expand Linked Experience** — for a link field that points at a page in your Experience tree:\n opens the linked page in one step. Its outputs are the page's **Name**, **URL**, **Component** (the\n content it's built from — pick a Contract under \"Read content as…\" to get that content's own fields\n as further outputs) and **Presentation** — the page's own rendering, exactly as it's configured\n (its Template, its content, its settings). Connect **Presentation** to a Presentation-typed output\n to show that page's presentation inline on yours — a \"featured pages\" section that re-hosts each\n page's real rendering rather than rebuilding a card from its fields. An outside link, or a page\n with no presentation of its own, gives nothing here; inside a **For each item**, pair it with\n **Keep item when** (below) to drop those. If the output field only allows certain Templates, a\n relayed presentation built on a different Template comes out empty (with a warning) rather than\n slipping through — widen the field's allowed Templates if that's not what you want.\n- **Build value** — the opposite of Expand fields: assembles a nested piece of content, or a component\n field's inline value, out of other fields in this mapping. Pick which Contract you're building, and\n the block grows one input for each of that Contract's own fields (fields with no separate override —\n the \"context\" ones you'd only ever fill in on a specific usage — never appear here at all). Fields\n marked **Required** need a connection before the mapping can be saved; anything else is optional and\n comes out empty if you leave it unconnected. Pick **Nested** or **Component** to match whatever field\n you're feeding the result into.\n- **For each item** — the only block that crosses a list boundary, as above. Choose one of two modes:\n - **Map each item** — click **Edit mapping** to open a dedicated screen (it takes over the whole\n canvas, with a **Back** button to return) where you build the per-item transformation using an\n **Item** starting point and a **Result** ending point, with any of the other blocks in between —\n including another **For each item**, for a list inside a list. That screen also has a second\n ending point, **Keep item when**: wire a yes/no value into it (an Exists or Equals block,\n usually) and only the items where it comes out *yes* make it into the list — the rest are left\n out entirely, with no empty placeholder and no warning for them. Leave it unconnected to keep\n every item. The typical use is a list of links that mixes pages with outside links: **Expand\n Linked Experience → Component → Exists → Keep item when** drops everything that isn't a real\n page, instead of shipping an empty card for it. One output can feed several blocks at once, so\n the same Expand can supply both the check and the result.\n - **Adapt to another Contract** — apply a whole second, smaller Adapter to each item, exactly like\n **Map inner content** above (pick an existing named Adapter, or **Connect manually**).\n- **Switch on Contract** — for a field that could hold more than one kind of thing (several different\n Contracts), branch the mapping by which one it actually is. Add a case for each Contract you want to\n handle by name; each case gets its own **As *(Contract name)*** output (typically feeding an Expand\n fields block for that specific Contract) and its own **Value for this case** input for what should\n come out when it matches. An optional **Default** input covers any Contract you didn't add a case\n for. See **Reading one page type's fields into several outputs**, below, for the two ways to wire\n it up.\n- **If / else** — picks between two values based on a yes/no condition: wire something into **When**\n (must resolve to yes/no — an Exists or Equals block is the usual source), and one value each into\n **Then** and **Else**.\n- **Equals** — compares two values and outputs yes/no; both sides need to already be the same field\n type (no automatic conversion here — insert a Convert type block first if they aren't).\n- **Exists** — outputs yes unless the value it's checking is completely missing or an empty piece of\n text; useful as the condition for an If/else block (\"only use this if there's actually something\n there\").\n\n## Reading one page type's fields into several outputs\n\nA common shape: the same Adapter runs over several kinds of content, and one of those kinds has a\nhandful of extra fields you want to carry through. A search result over every kind of page, where a\nblog post additionally has a heading, an author, a publish date, an image, topics and an excerpt, is\nthe worked example.\n\nWire it exactly the way you'd draw it:\n\n1. **Input document → Switch on Contract** (its **Value to switch on** connector). Add one case,\n *Blog post*.\n2. **As Blog post → Expand fields.** The Expand grows one output per field a blog post has.\n3. Connect each of those outputs **straight across to the output field it fills** — heading to\n Heading, author to Author, and so on. You do not wire anything back into the Switch.\n\nThat's it. Behind the scenes each of those outputs becomes its own rule, gated on \"only when this\nreally is a blog post\"; anything that isn't a blog post simply leaves those fields empty, which is\nwhat you want. Reopening the Adapter later shows you the same one Switch and one Expand you drew.\n\n**Fields every kind of content has come off the Input document, not through the Switch.** Title and\nDescription exist on every page, so wire them straight from the Input document's **Fields** section.\nRouting them through a case would gain nothing and would leave them empty for anything the Switch\ndoesn't have a case for.\n\n**When one output needs a *different* value per type**, that's the Switch's own arms — \"Title is the\nblog post's heading if it's a blog post, otherwise the page's own title\":\n\n1. **Expand fields → heading → Value for this case** (the *Blog post* arm).\n2. **Input document → Fields → Title → Default.**\n3. **Switch → Result → Title.**\n\nOne connector can feed several places at once, so the same Expand's *heading* output can go to both\nthe Heading output field and the Switch's arm — it's still one Switch and one Expand on the canvas.\n\n**One thing the canvas won't do:** read *two different cases'* fields into a single output without\ngoing through the arms. If you try, that output field shows \"Fields read from different cases of one\nSwitch must go through the case arms and Output\" and saving is blocked until you rewire it — combining\nper-case values is exactly what the arms and **Result** are for. Every other output field keeps\nworking normally in the meantime.\n\n## Suggest rules (Early Access)\n\nFor an organization with this Early Access feature turned on, a **Suggest rules** button appears\nabove the mapping canvas. Describe what you want in plain language — \"map the product's name to the\ncard's title, and its price to the subtitle as a formatted string\" — and it reads the two Contracts\ninvolved, drafts a candidate mapping, and checks its own work against the same validation the canvas\nalready runs, retrying until it's valid or it gives up and says so.\n\n**Nothing is written until you say so.** The panel shows the proposed rules — never the saved\nAdapter — with **Accept** and **Dismiss**. Accept merges the proposal into the mapping you're\ncurrently editing; you still have to press **Save** afterward, exactly as if you'd drawn the\nconnections yourself. Dismiss discards the proposal with no trace. If you already have some of the\nmapping done, describe what's missing — it's told what's already there and builds on it rather than\nstarting over.\n\nIf it can't produce a valid mapping, it says so rather than proposing something broken. If your\norganization has connected its own AI provider credential (see the **AI** section of your\norganization's settings), suggestions run on that provider instead of ebitex's, and a provider-side\nproblem (an expired key, exhausted credit) is reported by name so you know where to look.\n\n## Editing a named Adapter later\n\nAdapters created via **Create Adapter**, or saved via **Save as Adapter…**, live on the **Adapters**\npage (Model → Adapters), listed with their input and output Contracts. Editing one there updates\nevery Presentation using it — but only once each of those is **published again**. Content that's\nalready published keeps its existing shape until republished, so a mapping change never silently\nchanges something a visitor is looking at right now.\n\nIf a named Adapter is deleted while still bound to a Presentation, the field-by-field connections stop\nresolving correctly — a warning appears on the affected field, and saving is blocked until you either\nrestore the Adapter, pick a different one, or unbind it.\n"
|
|
25
25
|
},
|
|
26
26
|
{
|
|
27
27
|
"slug": "content-authoring",
|
|
28
28
|
"title": "Authoring a presentation",
|
|
29
|
-
"body": "# Authoring a presentation\
|
|
29
|
+
"body": "# Authoring a presentation\n\nA Contract field with the **Presentation** field type lets a Component\ninstantiate a Template inline — the common pattern for a page's body is an\n*enumerable* Presentation field, so the page becomes a list of presented\nsections. See [Presenting content with Templates](templates.md) for what a\nTemplate and a Presentation are; this page walks through the wizard you use\nto create or change one.\n\n## Adding a presentation\n\nWhen you reach an empty Presentation field while editing a Component (or an\nExperience node's payload, or a presentation embed in a Rich Text field),\nselect **Add presentation…** to open the wizard.\n\n### Step 1 — Choose Template\n\nA searchable, sortable list of the Templates this field allows. Type to\nfilter by name or Id, or filter to Templates that support a specific\nContract. Select a row to move on to step 2.\n\nIf nothing is eligible yet, a link takes you to the Templates page to create\none.\n\n### Step 2 — Bind Component\n\nTwo tabs:\n\n- **Select existing** — a three-column view: the Component you're\n considering on the left, a compatibility summary in the middle, and what\n the Template needs on the right.\n- **Create new** — the same on-the-spot creation flow as before: pick a\n Contract the Template accepts and fill in the required fields, without\n leaving the page.\n\nOn **Select existing**, the left column lists every Component, grouped:\n\n- **Compatible** — a Component whose Contract is exactly what the Template\n needs, or a more specific kind of it (a subtype). Selecting one shows\n every field lining up on the right, marks Complete as ready, and you're\n done.\n- **Needs an Adapter** — everything else, collapsed by default with a count\n so the list stays short. A Component here has a Contract the Template\n doesn't recognize at all. Selecting one shows *why* it doesn't fit, and\n three buttons let you bridge the gap: **Use existing Adapter**, **Create\n Adapter**, or **Connect manually** — see [Bridging Contracts with\n Adapters](content-adapters.md) for what each does and how the field\n mapping works. Until you attach one, Complete stays disabled — there's no\n way to force a mismatched binding through unmapped.\n\nA Template that doesn't restrict which Contracts it accepts treats every\nComponent as compatible. A Template that accepts more than one Contract\nshows a small switcher on the right so you can see the fields for each one\nit supports.\n\nSelect **Complete** once you're happy with the binding. Nothing is saved to\nthe field until you do — closing the wizard at any point beforehand leaves\nthings exactly as they were.\n\n## Changing or removing a presentation\n\nOnce bound, the field shows one card with a **Template** and a **Content**\nside by side (stacked in a narrow panel), and the Adapter between them when\nthere is one. Each names what is bound, with one main button and a **⋯** menu:\n\n- **Quick edit** on the Content row opens the bound Component itself, right\n here — see\n [Editing something from where it's used](#editing-something-from-where-its-used)\n below. (An inline value has **Edit** instead; a Component that can no\n longer be found has **Choose another**.)\n- **Change content…** in the Content row's menu re-opens the wizard\n directly on step 2, so you can pick a different Component. **Change\n template…** in the Template row's menu re-opens it on step 1 — doing so\n resets any per-usage Contextual values and settings, the same as a\n first-time pick. When the Template has a newer version, an **Update available**\n badge shows on the Template and **Update to vN** is in the same menu.\n- **Contextual values** (Content row menu) opens a panel for the bound\n Component's own Contextual fields — present only when the bound Contract\n actually has any. **Template settings** (Template row menu) opens the\n Template's own settings form for this specific placement.\n- Anything you still need to act on shows as a line at the foot of the\n card with its own button: **The content needs a value** or **The Template\n needs a value** (a mandatory Contextual value is missing, so you hear\n about it before you try to save) and **Mapping needs attention**.\n The Template's line follows the same rule as the content's: a mandatory\n Contextual setting must be filled in by the Presentation that uses the\n Template, wherever that Presentation is, including a Presentation inside\n another Presentation (the sections of a page), not only on a page.\n- **✕**, in the card's header, clears the Presentation value\n entirely.\n\nIf the Template has been updated to a newer version since this Presentation\nwas created, a small notice appears — **Update to v_N_** moves it onto the\nnew version. Until you do, the existing Presentation keeps working exactly\nas before.\n\n## Editing something from where it's used\n\nAnything you open *from inside* an editor — a Component bound to a\nPresentation, a Component linked through a Reference field, the page a\nLink points at, a Nested value, a set of Contextual values — opens as a\n**layer** over the page you're on, instead of taking you somewhere else.\nLayers stack: open a Component from a page, then a Link target from inside\nthat Component, and you're three deep, with each layer you came through\ncollapsed to a title strip above the one you're in. Select any strip, or\nany name in the trail at the top of a layer, to go back to it.\n\nEvery layer says what it is and whose save it belongs to:\n\n- **Own save** (the pink chip) — this layer is a *separate thing*: a shared\n Component, or a page in the Experience tree. It has its own **Save**\n button, and saving changes it *everywhere it's used* — the panel on the\n right lists every place, and the sentence at the bottom names exactly\n what does and doesn't change. **Cancel** throws the layer's edits away and\n leaves the page you came from untouched. Use **Open full editor** when you\n need more than a quick change (publishing, workflow, moving folders).\n- **Part of …** (the blue chip) — this layer is a *view into the page you're\n on*: a Nested value, Contextual values, Presentation settings. There's no\n Save here — select **Done** and the edit rides along with the page's own\n Save, exactly as if you'd made it in the page directly.\n\nClosing a layer that has unsaved changes asks first, inside the layer\nitself — **Keep editing** is selected by default, so a stray Enter never\ndiscards work. **Esc** closes one layer at a time. Quick edit is only offered\nfor content that lives in this organization; an item from a connected\nexternal provider has no editor here.\n\n## Working with lists of values\n\nA field that holds several values (the sections of a page, a set of tags) is a list. In Content and in Data every list works the same way:\n\n- **Add** puts a new item at the end. To put one *between* two items, point at the thin gap between them and select the **+** that appears\n (it also appears when you tab to it). For a list of Presentations or references, the chooser opens first.\n- **Reorder** by dragging an item by its handle (the dotted grip on the left) to a gap. To reorder without dragging, focus the handle and\n press the up or down arrow, or open the **⋯** menu on the item and choose **Move up** or **Move down**.\n- **Remove** takes the item out of the list with the **✕** on its row. A Presentation card in a list has no Remove of its own.\n\nAnything you have typed is kept with its item when it moves, and a drill-in panel you have open stays on the same item.\n"
|
|
30
30
|
},
|
|
31
31
|
{
|
|
32
32
|
"slug": "content-composer",
|
|
33
33
|
"title": "Building your site in Composer",
|
|
34
|
-
"body": "# Building your site in Composer\r\n\r\nComposer is where content becomes a website. A **site** is a named tree of\r\n**pages**; each page's slug (and its ancestors' slugs) form its **path** —\r\nthe URL it will eventually be served at. A page can be pure structure (a\r\n**Folder**, with no page of its own, just a place to organize its\r\nchildren), or it can carry a payload: either a **Presentation** (content\r\nshown at that path) or a **Redirect** (send visitors somewhere else).\r\nContracts, Components, and Templates (see\r\n[Modeling content with Contracts](contracts.md),\r\n[Authoring Components](components.md), and\r\n[Presenting content with Templates](templates.md)) define *what* content\r\nis and *how* it's presented; Composer decides *where* it lives. Nothing\r\nbuilt here is publicly visible yet — publishing is a later phase.\r\n\r\nComposer is the suite's *top-down* authoring surface — site, then tree,\r\nthen page. [Content](content-authoring.md) is its *bottom-up* counterpart:\r\nthe Component library, edited independently of any one page. Both appear\r\nas their own item in the sidebar.\r\n\r\n## Choosing a site\r\n\r\nComposer's header has a site switcher — select it to see every site in\r\nthis organization and pick one, or select **Manage sites →** to create,\r\nrename, or delete a site. Composer's tree always shows exactly one site's\r\npages at a time; switching sites swaps the whole tree beneath it.\r\n\r\nSites themselves are managed from **Settings > Sites**: create a new one\r\nby name, rename an existing one, or delete one (deleting a site deletes\r\nits entire page tree, including every page's payload — typing the site's\r\nname confirms you mean it).\r\n\r\n## The four modes\r\n\r\nComposer is one site, looked at four ways. The tabs across the top switch between them, and each has its own address, so a link or the browser's Back button opens the same place:\r\n\r\n- **Structure** is the whole page tree, full width. Arrange it here: add, move, rename and delete pages.\r\n- **Page** is the selected page's editor, with the tree beside it. Its Experience and Configuration tabs, the save bar and Edit in context… are here.\r\n- **Preview** shows the selected page's draft, with Edit in context… one click away.\r\n- **Publish** shows what publishing the selected page does, the pages it pulls in and where it goes, and publishes it.\r\n\r\nThe selected page and any unsaved edits carry from one mode to the next. If you switch away from a page with unsaved edits, Composer asks first. Use the arrow keys to move across the tabs and Enter or Space to open one.\r\n\r\n## Building the tree\r\n\r\nA large tree can be searched by category — see \"Filtering by category\" in\r\n[Taxonomy](content-taxonomy.md) for how the tree's own **Filter by\r\ncategory** control auto-expands to reveal matches without hiding anything\r\nelse.\r\n\r\nTo add a page:\r\n\r\n1. Select the parent page (the site's own root, shown at the top of the\r\n tree, or any page under it), then select **+ Add page** at the top of\r\n the tree panel.\r\n2. Pick a type — **Presentation**, **Redirect**, or **Folder** —\r\n Presentation is pre-selected, since it's what most new pages are for.\r\n You can change a page's type at any time later, from its own\r\n Experience tab.\r\n3. Enter a **Name** — the path preview beneath it fills in from it\r\n automatically (`/campaigns-launch`, for example). You can give the page\r\n a different slug later, from its **Configuration** tab.\r\n4. Select **Create**.\r\n\r\nEvery page shows its computed **path** at the top of the detail panel —\r\nthe site root's own path is always `/`.\r\n\r\n### Localized slugs\r\n\r\nA page's slug can have a different value per locale, just like other\r\nlocalizable content — select the translate icon beside **Slug** (in the\r\n**Configuration** tab) to add per-locale overrides. Two sibling pages can\r\nnever resolve to the same slug in the same locale, whether that's their\r\nshared default or one sibling's override colliding with another's\r\ndefault; you'll see exactly which locale and which sibling conflicts if\r\nthat happens.\r\n\r\n### Moving and reordering pages\r\n\r\nThe tree supports two different drags, depending on where you drop:\r\n\r\n- Drop a page **onto** another page to reparent it there — the dropped\r\n page becomes that page's child.\r\n- Drop a page **between** two sibling rows to reorder it among its\r\n current siblings, without changing its parent.\r\n\r\nEither kind of drag can also be done without a mouse: select **Move…** in\r\na page's **Configuration** tab and pick a target the same way dragging\r\nwould. You can't move a page into itself or one of its own descendants,\r\nand a site's root can't be moved or reordered at all — it has no grip\r\nhandle to drag by, and its Configuration tab shows no **Move…** button.\r\n\r\nIf someone else changes the tree while you're mid-drag, Composer notices,\r\nrefreshes the sibling list automatically, and asks you to try again rather\r\nthan silently applying a stale order.\r\n\r\nDeleting a page requires it to have no children first, and it has to be unpublished; a page that's the\r\ntarget of a **Redirect** elsewhere in the tree can't be deleted until that\r\nredirect is removed or repointed. A site's root can't be deleted from\r\nComposer at all — that's a **Settings > Sites** action, since it deletes\r\nthe whole tree beneath it.\r\n\r\n### Working the tree from the keyboard\r\n\r\nEverything the drag does has a key, and the tree reads out each page's level and position. Move to a page with the arrow keys, then:\r\n\r\n| Key | What it does |\r\n|---|---|\r\n| Up, Down | Move to the page above or below |\r\n| Right, Left | Open a folder, or go into it; close it, or go to the page that holds it |\r\n| Home, End | First or last page shown |\r\n| Enter | Open the page for editing (Page mode) |\r\n| Space | Select the page without opening it |\r\n| Shift + Up, Shift + Down | Move the page up or down among its siblings |\r\n| Ctrl or Cmd + Right | Indent: move the page inside the page above it |\r\n| Ctrl or Cmd + Left | Outdent: move the page out to just after the page that holds it |\r\n| F2 | Rename in place. Enter saves, Escape cancels |\r\n| Delete | Delete the page (see below) |\r\n| Shift + F10 or the Menu key | Open the page's **⋯** menu, which has the same commands |\r\n| Ctrl or Cmd + Z, then add Shift to redo | Undo or redo the last change |\r\n\r\n**Undo** covers adding, moving, reordering, indenting, outdenting and renaming a page. Each of these is saved as you do it, and Undo puts the opposite change back, so a page you undo is back where it was for everyone. The **Undo** and **Redo** buttons above the tree name the change they would reverse.\r\n\r\n**Delete** takes the page out of the tree at once and shows an Undo toast for eight seconds. Nothing is deleted until the toast goes: Undo (the button, or Ctrl or Cmd + Z) inside that time puts the page back exactly where it was, and nothing was ever sent. If you go to another part of the app before the eight seconds are up, the delete is sent then; if you close the tab or reload, it is not sent and the page is still there. The tree will not start a delete it knows will be refused: a page with pages inside it (move or delete those first), a published page (unpublish it first), a page you do not have delete access to, and the site's root. If a delete is refused after all, because another page redirects to this one, the page comes back and the message says why.\r\n\r\n### Big folders and finding a page\r\n\r\nA folder with a lot of pages shows 50 at first, with **Showing 50 of 4,812** and a **Show 50 more** button at its foot. **Search pages**, above the tree, finds a page by name anywhere in the site, including inside folders you have never opened, and shows where it sits (**Northwind › Products › Accessories › Insoles**). Choosing a result opens the folders down to it and selects it.\r\n\r\n## The Experience tab\r\n\r\nA page's **Experience** tab opens with one question: **What does `/path` do?** The three\r\nanswers are the page's type, and exactly one is true of an address at a time:\r\n\r\n- **Presentation** shows a page built from a Template and a Component.\r\n- **Redirect** sends visitors to another page.\r\n- **Folder** only groups the pages beneath it, and has no content of its own.\r\n\r\nWhat sits below the question is only the chosen type's settings. Choosing a different type is an\r\nedit like any other: it shows in the save bar, and nothing changes until you save. Use the arrow\r\nkeys to move between the three.\r\n\r\nFor a **Presentation** page, the card below the question shows how the page is built, as pieces\r\nthat fit together from top to bottom:\r\n\r\n- **Template, sets the shape.** The layout. It decides the shape of content the page needs: a\r\n Contract, which is a list of fields. It shows the shape it **needs**.\r\n- **Adapter, reshapes to fit.** Only there when the Component's shape is not the one the Template\r\n needs. It shows the shape it **takes** and the shape it **gives**. See\r\n [Adapters](content-adapters.md) if that's new to you.\r\n- **Component, fills the shape.** The content itself: its text, images and fields. It shows the\r\n shape it **is**.\r\n\r\nBetween each pair is a joint. A tick means the shapes fit. A red mark means they do not, and a row\r\nbeneath offers **Add an Adapter…** to bridge them. Each piece keeps its own actions: **Quick edit**\r\nis the Component's main button, and **Change**, **Configure** (where there are settings or\r\ncontextual values to fill in) and **Mapping** are in the **⋯** menu on the Template, Component or\r\nAdapter row. Anything that still needs a value or a review appears as a line at the foot of the\r\ncard with its own button. See\r\n[Presenting content with Templates](templates.md) for the **Contextual values** and **Settings**\r\npanels. If the Template declares a settings field that's both mandatory and Contextual, it must be\r\nfilled in here: a page is the last stop for that value, so there's nowhere further downstream to\r\ninherit it from. **Quick edit** opens the\r\n bound Component itself in a layer over the tree — and the same layer\r\n opens *this* page from any Link or Experience-reference field elsewhere\r\n that points at it; see\r\n [Editing something from where it's used](content-authoring.md#editing-something-from-where-its-used).\r\n\r\nSwitching a page's type here always lands you on that type's own normal\r\nstarting point (no Template chosen yet, no redirect target chosen yet) —\r\nit never carries over or invents a binding from whatever the page was\r\nbefore.\r\n\r\nFor a **Redirect** page, select **Pick a target page…** and browse to it.\r\nA page can't redirect to itself. A **Folder** page has no payload of its\r\nown — it exists only to organize the pages beneath it.\r\n\r\n## Version history for a page\r\n\r\nChoose **Version history…** from **More actions** to see every saved version of\r\nthe selected page: who changed it, when, and what changed (its name, address,\r\nand content). Page history is read-only: it shows you what the page used to\r\nsay, but restoring an earlier version isn't available yet. See\r\n[Version history](components.md#version-history) for how history works for\r\nComponents.\r\n\r\n## The Configuration tab\r\n\r\nEverything about a page other than what it renders lives in **Configuration**. The settings most\r\npeople use stay in view: the page's **Name** and **Made for** (below), its **Slug**, its **Location**\r\nin the tree (parent, Move…), and its **Categories**. Everything else is folded into **Advanced**, a single row that\r\nsays how those settings are set while it is closed, for example *Access: no rules · Templates: any ·\r\nReview: none · Search engines: listed*. Open it for:\r\n\r\n- **Who can work on this branch**: access rules.\r\n- **Templates pages here can use**: which Templates new pages here may use.\r\n- **Review before publishing**: the editorial workflow assigned to this page.\r\n- **Search engines**: whether the page is listed in your sitemap.\r\n\r\n**Delete this page**, for a non-root page, stays separate at the bottom and asks you to confirm\r\nfirst.\r\n\r\n### Made for\r\n\r\nUnder **Name**, **Made for** notes which channels the page is built for: **Email**, **Web**, or\r\nboth. It is optional and only advises. It never stops you saving or publishing, and a page with no\r\nnote is simply \"unknown\", which warns about nothing.\r\n\r\nWhen a page is made for a channel, the **Experience** tab warns you about any Component it uses that\r\nsays it is not (for example a page made for email that uses a Component marked **Web** only). The\r\nwarning lists those Components, and it also covers Components used inside other Components. It follows\r\nthe note as you change it, before you save. A Component with no note never triggers it.\r\n\r\nOther apps read the note too. Audience's template picker shows each page as **Made for email**, **Made\r\nfor web only** or **No channel noted**, and still lets you choose a web-only page after a warning.\r\n\r\nA page has one **Save** bar along the bottom, whichever tab is open. It counts\r\neverything you have changed on the page (name, slug, search visibility, page\r\ntype and what it shows) and lists each change when you select the count.\r\n**Save** writes them all; **Discard** puts them back. If part of a save is\r\nrefused, for example a slug a sibling page already uses, the bar keeps listing\r\nwhat is still unsaved and says why. If you select another page while this one\r\nhas unsaved edits, Composer asks\r\nbefore it drops them.\r\n\r\nUnder the page's name, one **status strip** says whether the page can be published. It reads\r\n**Draft**, **Published** or **Modified since it was published**, with a line about what the live site\r\nshows, and it holds **Publish…** or **Republish…**. If the page has an editorial workflow, the strip\r\nshows the workflow's state and its next step (for example **Approve**) beside it, so you can move it\r\non without leaving the tab. While the state does not allow publishing it reads **Can't be published\r\nyet**; **Republish…** is still there, but it is not the highlighted button, and the publish panel\r\nexplains the block. The page's other actions, **Preview**, **Promote…** and **Unpublish**, are in the\r\nrow above, and **Used in N places** is beside the path. The full workflow panel, with its comment box\r\nand **Cancel run**, is in **Configuration**.\r\n\r\nIf you have **unsaved changes**, the strip says so and offers **Save changes**. Publishing and\r\npromoting use the *saved* page, so pressing **Publish…** or **Promote…** with unsaved changes asks\r\nfirst, naming each change. Choose **Save and publish** to save and then publish, **Publish the saved\r\nversion** to publish without them, or **Cancel**. The Component editor asks the same question.\r\n\r\n## Preview and in-context editing\r\n\r\nTwo things show you your draft on your own site. Neither publishes anything.\r\n\r\n- **Preview** is a read-only view of your draft beside the form. Click\r\n **Preview** at the top of a page or Component to open it; click it again,\r\n or the **X** on the pane, to close it. It shows your unsaved edits and\r\n refreshes a moment after you stop typing, with the status **Updating…**\r\n then **Updated**. You can't click anything in it: no pins, and links don't\r\n go anywhere. It starts closed, and Composer and the Component editor each\r\n remember whether you left it open. The pane has the same host picker and\r\n **Phone**, **Tablet** and **Full** widths as in-context editing, and, in\r\n the Component editor, the same **Framed in** picker. On a narrow screen it\r\n sits under the form instead of beside it.\r\n- **In-context editing** is the full editing view: your site with numbered\r\n pins you click to change that part. Open it with **Edit in context…**. The\r\n rest of this section describes it. While it is open, the Preview pane steps\r\n aside, and comes back when you close it.\r\n\r\n## In-context editing\r\n\r\nClick **Edit in context…** on any page to open in-context editing: your site, rendered\r\nright there in Composer, showing your unsaved draft — not what's actually\r\npublished. Nothing you do here goes live until you choose to publish it.\r\n\r\nAcross the top of in-context editing:\r\n\r\n- **The host.** The address of the site being previewed, with what it does\r\n underneath: **Click-to-edit** (the site can show pins and be clicked\r\n through) or **Reloads on change** (the site builds its pages on its own\r\n server; see below). If your site has more than one address, choose one\r\n here. The list is managed under **Settings › Sites**.\r\n- **Edit and Browse.** Hover either for what it does. **Edit** shows pins\r\n you can click to change content; **Browse** hides them so you can click\r\n through the site like a visitor.\r\n- **Phone, Tablet and Full** set how wide the page is. You can also drag the\r\n page's left or right edge to any width, with a readout and a snap to\r\n Phone and Tablet. The panel on the right has its own handle on its left\r\n edge, so you can make the page phone-sized and still keep room to edit.\r\n Press an arrow key on a handle to move it 10 px (50 with Shift), or\r\n double-click it to reset. Both widths are remembered.\r\n- **Language and audience** (for example *Default language · Everyone*)\r\n opens **Preview as a visitor**, to see the page as a visitor in another\r\n language or audience would, or to show referenced content in full.\r\n- **Open site** opens the page in its own browser tab.\r\n\r\nOn a phone-sized screen the header has three rows: the page name and status\r\nwith **Close**, then the host with **Pins** and **⋯** (Open site, Language and\r\naudience), then Edit and Browse. **Pins** opens the panel as a sheet from the\r\nbottom, and the width handles are not shown.\r\n\r\nPress **Esc** to close an open Quick edit form; press it again to close live\r\npreview.\r\n\r\n### Preview a section, a header or a shared Component\r\n\r\nYou do not need a page to preview a presentation.\r\n\r\n- **A section on a page.** On the card of any presentation field, click\r\n **Edit in context**. In-context editing opens on that page with the section's pin already\r\n selected. If the page does not draw that section, the panel says\r\n **Not on this page** beside it.\r\n- **A shared Component.** In the Component editor, **Preview…** opens live\r\n preview with the Component shown inside a real page that uses it. The\r\n **Framed in** chip switches to another page that uses it, and your choice is\r\n remembered for that Component. If only one page uses it, you are not asked.\r\n Pages that use it through another Component are included.\r\n- **A site header or footer.** A Component your site draws around every page\r\n (for example `ebitex-site-chrome`) is previewed on any page of the site,\r\n the site's home page by default, and the page you pick is remembered for the\r\n site. If the page you picked does not show it, the preview says so and\r\n offers another page.\r\n\r\nWhat a preview of one page proves: how your draft looks there. Another page\r\nmay place the same Component differently, so use **Framed in** to check a\r\nsecond one. Things only your site's code controls, such as a sticky header or\r\nfonts, are judged on the live site.\r\n\r\n**A Component no page uses yet.** If the page you framed does not show your\r\nComponent, the preview says so and offers **Show it in a Context instead**. The\r\n**Context** is the Templates that would hold it, such as a section inside a\r\npage, built for the preview and never saved. The **Context** chip names it:\r\nopen it to choose another when more than one is possible, and to edit\r\n**Context settings**, the settings of those Templates (a theme, a section's\r\nappearance) as they will apply on a real page. Under **Shown as** you choose\r\nthe Template that presents your Component and its settings; that choice is\r\nyours, the Context's is not. **Browse** is hidden, because the page was made\r\nfor the preview and has nowhere to go. A pin on the Context itself opens\r\nnothing and says so. In the Template builder, **Edit in context…** asks for a\r\nComponent and opens the same view. **Show the resolved output instead** still\r\nopens the raw result.\r\n\r\nThe page renders with numbered pins over anything you can edit. Shape\r\ntells you what a pin is, so it reads even in black and white:\r\n\r\n- A **magenta circle** is a single field — a headline, a paragraph, a date.\r\n- A **solid blue rounded rectangle** is a whole Component — either the\r\n Presentation bound at that spot, or something rendered outside the page\r\n itself (see \"Also on this page\" below).\r\n- A **dashed blue rounded rectangle** is content produced by an Adapter —\r\n mapped in from somewhere else, with no field of its own on this page.\r\n- A **red rectangle** marks something that couldn't be resolved.\r\n\r\nEvery pinned part of the page also gets a light outline in its pin's own\r\ncolor the whole time you're in Edit mode, not just on hover — so you can\r\nsee everything on the page that's editable at a glance, before you click\r\nanything. Hovering or selecting a pin (from the page or from its row in\r\nthe panel on the right) strengthens that outline and shows a tag naming\r\nwhat it is.\r\n\r\nWhat clicking a pin does depends on its shape:\r\n\r\n- A **field** pin opens a small **docked editor** right at the top of the\r\n panel — no matter how deep inside the page's content that field actually\r\n lives — with its name, its type, and a magenta **Own save** badge, above\r\n the rest of the page summary (dimmed while you're editing). Deep inside\r\n something (a section, a card, a list item), the docked editor also shows\r\n a breadcrumb (\"Referenced by *the page* → *Section 4* *Statement* →\r\n `actions`\") so you know exactly where you are. What docks depends on the\r\n field:\r\n - A **Component**, **Reference**, or **Presentation** field — the kind\r\n that points at other content — gets a compact list: one row per item,\r\n with a label, where it links to (if anywhere), a drag handle to\r\n reorder, an edit button, a remove button, and an **Add item** row at\r\n the bottom. Click a row's edit button to open that item — an item\r\n authored right here opens its own full editor; an item that's really a\r\n separate, shared Component re-targets this same panel to that\r\n Component instead of opening a second one.\r\n - Every other field (Rich text, a plain text field, a date, and so on)\r\n gets its own usual editor, docked as a single row.\r\n Type, then **Save** or **Cancel** — or **Open full editor** if you'd\r\n rather see the whole Component or page it belongs to.\r\n A pin whose field can't be matched this way falls back to opening the\r\n whole Component or page in full, with that field already focused.\r\n- A **Component** pin (solid rectangle) opens that Component for editing\r\n in full, the same as clicking **Quick edit** next to it — a magenta\r\n **Own save** badge marks it while you're in it.\r\n- An **Adapter-mapped** pin (dashed rectangle) never opens an editor\r\n directly — there's no field of yours behind it. Instead it explains\r\n where the content comes from: which Adapter produced it, and a look at\r\n the actual source underneath. From there, **Edit source field** jumps\r\n straight to the one field that's a direct, one-to-one copy (when there\r\n is one), and **Edit mapping…** opens the mapping itself for a deeper\r\n change.\r\n- A **red (unresolved)** pin opens on whatever it belongs to, so you can\r\n see and fix why it isn't resolving.\r\n\r\nType in a docked or full editor, and the page updates within a second or\r\nso either way.\r\n\r\n**Browse** switches off the pins so you can click around the page the way a\r\nvisitor would — following links to see other pages of the same site, still\r\nagainst your unsaved drafts. The panel says the pins are hidden on purpose;\r\nswitch back to **Edit** to see them.\r\n\r\n**Also on this page** lists anything the site renders that isn't part of\r\nthe page itself — a shared header or footer, for instance. These are\r\nedited and saved the same way as anything else with a pin: click **Quick\r\nedit** next to it, make your change, and save. Because a shared header or\r\nfooter isn't part of any one page, saving it doesn't publish it along with\r\nthe page — after saving, use the **Publish…** button that appears right\r\nthere to make the change live. If a site is set up to show something\r\nthat doesn't exist in the environment you're working in, it's listed as\r\n**not in this environment** — nothing to worry about, and never something\r\nthat stops the rest of the page from previewing normally.\r\n\r\n### Previewing a site that renders on its server\r\n\r\nSome sites build every page on their own server and send finished pages to\r\nthe browser, with nothing re-drawn in the browser afterwards. In-context editing\r\ncan't hand those sites your draft directly, so it works a little\r\ndifferently there.\r\n\r\nYour developer sets it up once:\r\n\r\n- Under **Settings › Sites**, open the site and set its host's **Live\r\n preview** to **Server**.\r\n- Under **Deliver → API keys**, the site's key needs **Allow draft preview** turned\r\n on. Only a server-side key can have it.\r\n\r\nAfter that, in-context editing on that host behaves like this:\r\n\r\n- Composer starts a private preview session for you. Your draft, unsaved\r\n edits included, goes to that session, and the site's server reads it from\r\n there.\r\n- Each time you pause typing, the page reloads with your latest edits. That\r\n takes a moment longer than on other sites.\r\n- **Pins work if the site adds one script.** Out of the box a\r\n server-rendered site has nothing running in the browser to draw pins.\r\n Where Edit and Browse would be, in-context editing shows **Reloads on change**,\r\n and the panel says pins aren't available on this site — use it to edit\r\n the page and the Component it shows.\r\n If your developer adds ebitex's preview script to the site (a single\r\n `<script>` tag, and marks which part of the page shows which field), you\r\n get the same numbered pins and click-to-edit as any other site. Nothing\r\n changes for visitors: the script does nothing unless Composer is framing\r\n the page. Ask them for \"the ebitex preview script\" and point them at\r\n developers.ebitex.io.\r\n- Only the page you're previewing shows your draft. Follow a link and the\r\n other page shows what's published — and if the site runs the script,\r\n Composer follows you there and starts previewing that page instead.\r\n- If the preview says **The site is showing its published page, not your\r\n draft**, what you're looking at isn't your draft. Usually the site isn't\r\n set up for server previews yet, its key doesn't allow draft preview, or\r\n your browser blocked the site's cookie inside Composer. **Open the site in\r\n a new tab** gets around that last one. **Copy details for your developer**\r\n puts what they need on your clipboard, and **Technical details** shows it\r\n on screen.\r\n- The Preview pane uses the same kind of session and reloads the same way.\r\n Closing the pane, like closing in-context editing, ends the session straight\r\n away. Nobody can use it\r\n afterwards.\r\n\r\n### If the preview can't reach the site\r\n\r\nIf the site isn't answering, a message appears above the page: **The site\r\nisn't answering at *address***. It may not be running, or it may not be set\r\nup for preview yet. **Try again** checks again, **Open the site in a new tab**\r\nshows you what the site itself does, and **Copy details for your developer**\r\nputs the likely causes on your clipboard to send on. The same causes are\r\nunder **Technical details**.\r\n\r\n## Opening a page from the site itself\r\n\r\nWhen you're signed in to Content and browsing one of your own published sites, a small **Click to\r\nedit** button appears in the corner of the page. It takes you straight to that page in Composer, with\r\nin-context editing already open.\r\n\r\nIf the page belongs to a **different organization** than the one you're currently working in, Content\r\nswitches for you and shows a notice saying so, with a **Switch back** button. That switch applies to\r\nyour whole ebitex session — Hub and Forms in other tabs will show the new organization the next time\r\nyou navigate in them — so the notice stays until you dismiss it.\r\n\r\nA few cases where the link won't open a page, and what each means:\r\n\r\n- **\"This page no longer exists, or belongs to an organization you are not currently signed in to.\"**\r\n Either the page was deleted, or it belongs to an organization you're not a member of. If a\r\n colleague sent you the link, ask them to add you to that organization.\r\n- **Nothing switches and the page doesn't load.** The site's hostname isn't mapped to a site in any\r\n organization you belong to. Check **Settings > Delivery** for that organization's host mappings.\r\n- **Two organizations claim the same hostname.** Content won't guess which one you meant. Fix the\r\n duplicate mapping in **Settings > Delivery**, then follow the link again.\r\n\r\n## Restricting what can go where\r\n\r\nTwo governance controls apply to a branch of the tree, the same way they\r\napply to Component folders (see \"Folders and access rules\" in\r\n[Authoring Components](components.md)) — both live in the **Configuration**\r\ntab's **Advanced** section:\r\n\r\n- **Who can work on this branch** (access rules) grants specific roles view/edit/delete/publish on a\r\n branch — no rules anywhere on the branch means it's open to everyone; a\r\n rule anywhere on a root even restricts an entire site. A role needs view\r\n to see a branch at all; edit, delete, and publish are each independent\r\n beyond that.\r\n- **Templates pages here can use** restricts which Templates a Presentation payload\r\n can use anywhere at or beneath a page — useful for keeping, say, a\r\n campaigns section limited to a handful of approved layouts. Leaving it\r\n unset allows any Template. Tightening this later never breaks a payload\r\n already in place; it's only checked when a payload is assigned or\r\n changed.\r\n\r\nBoth panels are only editable by someone with elevated access-management\r\npermission; everyone else sees a read-only summary of what they\r\npersonally can do on that branch.\r\n"
|
|
34
|
+
"body": "# Building your site in Composer\n\nComposer is where content becomes a website. A **site** is a named tree of\n**pages**; each page's slug (and its ancestors' slugs) form its **path** —\nthe URL it will eventually be served at. A page can be pure structure (a\n**Folder**, with no page of its own, just a place to organize its\nchildren), or it can carry a payload: either a **Presentation** (content\nshown at that path) or a **Redirect** (send visitors somewhere else).\nContracts, Components, and Templates (see\n[Modeling content with Contracts](contracts.md),\n[Authoring Components](components.md), and\n[Presenting content with Templates](templates.md)) define *what* content\nis and *how* it's presented; Composer decides *where* it lives. Nothing\nbuilt here is publicly visible yet — publishing is a later phase.\n\nComposer is the suite's *top-down* authoring surface — site, then tree,\nthen page. [Content](content-authoring.md) is its *bottom-up* counterpart:\nthe Component library, edited independently of any one page. Both appear\nas their own item in the sidebar.\n\n## Choosing a site\n\nComposer's header has a site switcher — select it to see every site in\nthis organization and pick one, or select **Manage sites →** to create,\nrename, or delete a site. Composer's tree always shows exactly one site's\npages at a time; switching sites swaps the whole tree beneath it.\n\nSites themselves are managed from **Settings > Sites**: create a new one\nby name, rename an existing one, or delete one (deleting a site deletes\nits entire page tree, including every page's payload — typing the site's\nname confirms you mean it).\n\n## The four modes\n\nComposer is one site, looked at four ways. The tabs across the top switch between them, and each has its own address, so a link or the browser's Back button opens the same place:\n\n- **Structure** is the whole page tree, full width. Arrange it here: add, move, rename and delete pages.\n- **Page** is the selected page's editor, with the tree beside it. Its Experience and Configuration tabs, the save bar and Edit in context… are here.\n- **Preview** shows the selected page's draft, with Edit in context… one click away.\n- **Publish** shows what publishing the selected page does, the pages it pulls in and where it goes, and publishes it.\n\nThe selected page and any unsaved edits carry from one mode to the next. If you switch away from a page with unsaved edits, Composer asks first. Use the arrow keys to move across the tabs and Enter or Space to open one.\n\n## Building the tree\n\nA large tree can be searched by category — see \"Filtering by category\" in\n[Taxonomy](content-taxonomy.md) for how the tree's own **Filter by\ncategory** control auto-expands to reveal matches without hiding anything\nelse.\n\nTo add a page:\n\n1. Select the parent page (the site's own root, shown at the top of the\n tree, or any page under it), then select **+ Add page** at the top of\n the tree panel.\n2. Pick a type — **Presentation**, **Redirect**, or **Folder** —\n Presentation is pre-selected, since it's what most new pages are for.\n You can change a page's type at any time later, from its own\n Experience tab.\n3. Enter a **Name** — the path preview beneath it fills in from it\n automatically (`/campaigns-launch`, for example). You can give the page\n a different slug later, from its **Configuration** tab.\n4. Select **Create**.\n\nEvery page shows its computed **path** at the top of the detail panel —\nthe site root's own path is always `/`.\n\n### Localized slugs\n\nA page's slug can have a different value per locale, just like other\nlocalizable content — select the translate icon beside **Slug** (in the\n**Configuration** tab) to add per-locale overrides. Two sibling pages can\nnever resolve to the same slug in the same locale, whether that's their\nshared default or one sibling's override colliding with another's\ndefault; you'll see exactly which locale and which sibling conflicts if\nthat happens.\n\n### Moving and reordering pages\n\nThe tree supports two different drags, depending on where you drop:\n\n- Drop a page **onto** another page to reparent it there — the dropped\n page becomes that page's child.\n- Drop a page **between** two sibling rows to reorder it among its\n current siblings, without changing its parent.\n\nEither kind of drag can also be done without a mouse: select **Move…** in\na page's **Configuration** tab and pick a target the same way dragging\nwould. You can't move a page into itself or one of its own descendants,\nand a site's root can't be moved or reordered at all — it has no grip\nhandle to drag by, and its Configuration tab shows no **Move…** button.\n\nIf someone else changes the tree while you're mid-drag, Composer notices,\nrefreshes the sibling list automatically, and asks you to try again rather\nthan silently applying a stale order.\n\nDeleting a page requires it to have no children first, and it has to be unpublished; a page that's the\ntarget of a **Redirect** elsewhere in the tree can't be deleted until that\nredirect is removed or repointed. A site's root can't be deleted from\nComposer at all — that's a **Settings > Sites** action, since it deletes\nthe whole tree beneath it.\n\n### Working the tree from the keyboard\n\nEverything the drag does has a key, and the tree reads out each page's level and position. Move to a page with the arrow keys, then:\n\n| Key | What it does |\n|---|---|\n| Up, Down | Move to the page above or below |\n| Right, Left | Open a folder, or go into it; close it, or go to the page that holds it |\n| Home, End | First or last page shown |\n| Enter | Open the page for editing (Page mode) |\n| Space | Select the page without opening it |\n| Shift + Up, Shift + Down | Move the page up or down among its siblings |\n| Ctrl or Cmd + Right | Indent: move the page inside the page above it |\n| Ctrl or Cmd + Left | Outdent: move the page out to just after the page that holds it |\n| F2 | Rename in place. Enter saves, Escape cancels |\n| Delete | Delete the page (see below) |\n| Shift + F10 or the Menu key | Open the page's **⋯** menu, which has the same commands |\n| Ctrl or Cmd + Z, then add Shift to redo | Undo or redo the last change |\n\n**Undo** covers adding, moving, reordering, indenting, outdenting and renaming a page. Each of these is saved as you do it, and Undo puts the opposite change back, so a page you undo is back where it was for everyone. The **Undo** and **Redo** buttons above the tree name the change they would reverse.\n\n**Delete** takes the page out of the tree at once and shows an Undo toast for eight seconds. Nothing is deleted until the toast goes: Undo (the button, or Ctrl or Cmd + Z) inside that time puts the page back exactly where it was, and nothing was ever sent. If you go to another part of the app before the eight seconds are up, the delete is sent then; if you close the tab or reload, it is not sent and the page is still there. The tree will not start a delete it knows will be refused: a page with pages inside it (move or delete those first), a published page (unpublish it first), a page you do not have delete access to, and the site's root. If a delete is refused after all, because another page redirects to this one, the page comes back and the message says why.\n\n### Big folders and finding a page\n\nA folder with a lot of pages shows 50 at first, with **Showing 50 of 4,812** and a **Show 50 more** button at its foot. **Search pages**, above the tree, finds a page by name anywhere in the site, including inside folders you have never opened, and shows where it sits (**Northwind › Products › Accessories › Insoles**). Choosing a result opens the folders down to it and selects it.\n\n## The Experience tab\n\nA page's **Experience** tab opens with one question: **What does `/path` do?** The three\nanswers are the page's type, and exactly one is true of an address at a time:\n\n- **Presentation** shows a page built from a Template and a Component.\n- **Redirect** sends visitors to another page.\n- **Folder** only groups the pages beneath it, and has no content of its own.\n\nWhat sits below the question is only the chosen type's settings. Choosing a different type is an\nedit like any other: it shows in the save bar, and nothing changes until you save. Use the arrow\nkeys to move between the three.\n\nFor a **Presentation** page, the card below the question shows how the page is built, as pieces\nthat fit together from top to bottom:\n\n- **Template, sets the shape.** The layout. It decides the shape of content the page needs: a\n Contract, which is a list of fields. It shows the shape it **needs**.\n- **Adapter, reshapes to fit.** Only there when the Component's shape is not the one the Template\n needs. It shows the shape it **takes** and the shape it **gives**. See\n [Adapters](content-adapters.md) if that's new to you.\n- **Component, fills the shape.** The content itself: its text, images and fields. It shows the\n shape it **is**.\n\nBetween each pair is a joint. A tick means the shapes fit. A red mark means they do not, and a row\nbeneath offers **Add an Adapter…** to bridge them. Each piece keeps its own actions: **Quick edit**\nis the Component's main button, and **Change**, **Configure** (where there are settings or\ncontextual values to fill in) and **Mapping** are in the **⋯** menu on the Template, Component or\nAdapter row. Anything that still needs a value or a review appears as a line at the foot of the\ncard with its own button. See\n[Presenting content with Templates](templates.md) for the **Contextual values** and **Settings**\npanels. If the Template declares a settings field that's both mandatory and Contextual, it must be\nfilled in here: a page is the last stop for that value, so there's nowhere further downstream to\ninherit it from. **Quick edit** opens the\n bound Component itself in a layer over the tree — and the same layer\n opens *this* page from any Link or Experience-reference field elsewhere\n that points at it; see\n [Editing something from where it's used](content-authoring.md#editing-something-from-where-its-used).\n\nSwitching a page's type here always lands you on that type's own normal\nstarting point (no Template chosen yet, no redirect target chosen yet) —\nit never carries over or invents a binding from whatever the page was\nbefore.\n\nFor a **Redirect** page, select **Pick a target page…** and browse to it.\nA page can't redirect to itself. A **Folder** page has no payload of its\nown — it exists only to organize the pages beneath it.\n\n## Version history for a page\n\nChoose **Version history…** from **More actions** to see every saved version of\nthe selected page: who changed it, when, and what changed (its name, address,\nand content). Page history is read-only: it shows you what the page used to\nsay, but restoring an earlier version isn't available yet. See\n[Version history](components.md#version-history) for how history works for\nComponents.\n\n## The Configuration tab\n\nEverything about a page other than what it renders lives in **Configuration**. The settings most\npeople use stay in view: the page's **Name** and **Made for** (below), its **Slug**, its **Location**\nin the tree (parent, Move…), and its **Categories**. Everything else is folded into **Advanced**, a single row that\nsays how those settings are set while it is closed, for example *Access: no rules · Templates: any ·\nReview: none · Search engines: listed*. Open it for:\n\n- **Who can work on this branch**: access rules.\n- **Templates pages here can use**: which Templates new pages here may use.\n- **Review before publishing**: the editorial workflow assigned to this page.\n- **Search engines**: whether the page is listed in your sitemap.\n\n**Delete this page**, for a non-root page, stays separate at the bottom and asks you to confirm\nfirst.\n\n### Made for\n\nUnder **Name**, **Made for** notes which channels the page is built for: **Email**, **Web**, or\nboth. It is optional and only advises. It never stops you saving or publishing, and a page with no\nnote is simply \"unknown\", which warns about nothing.\n\nWhen a page is made for a channel, the **Experience** tab warns you about any Component it uses that\nsays it is not (for example a page made for email that uses a Component marked **Web** only). The\nwarning lists those Components, and it also covers Components used inside other Components. It follows\nthe note as you change it, before you save. A Component with no note never triggers it.\n\nOther apps read the note too. Audience's template picker shows each page as **Made for email**, **Made\nfor web only** or **No channel noted**, and still lets you choose a web-only page after a warning.\n\nA page has one **Save** bar along the bottom, whichever tab is open. It counts\neverything you have changed on the page (name, slug, search visibility, page\ntype and what it shows) and lists each change when you select the count.\n**Save** writes them all; **Discard** puts them back. If part of a save is\nrefused, for example a slug a sibling page already uses, the bar keeps listing\nwhat is still unsaved and says why. If you select another page while this one\nhas unsaved edits, Composer asks\nbefore it drops them.\n\nUnder the page's name, one **status strip** says whether the page can be published. It reads\n**Draft**, **Published** or **Modified since it was published**, with a line about what the live site\nshows, and it holds **Publish…** or **Republish…**. If the page has an editorial workflow, the strip\nshows the workflow's state and its next step (for example **Approve**) beside it, so you can move it\non without leaving the tab. While the state does not allow publishing it reads **Can't be published\nyet**; **Republish…** is still there, but it is not the highlighted button, and the publish panel\nexplains the block. The page's other actions, **Preview**, **Promote…** and **Unpublish**, are in the\nrow above, and **Used in N places** is beside the path. The full workflow panel, with its comment box\nand **Cancel run**, is in **Configuration**.\n\nIf you have **unsaved changes**, the strip says so and offers **Save changes**. Publishing and\npromoting use the *saved* page, so pressing **Publish…** or **Promote…** with unsaved changes asks\nfirst, naming each change. Choose **Save and publish** to save and then publish, **Publish the saved\nversion** to publish without them, or **Cancel**. The Component editor asks the same question.\n\n## Preview and in-context editing\n\nTwo things show you your draft on your own site. Neither publishes anything.\n\n- **Preview** is a read-only view of your draft beside the form. Click\n **Preview** at the top of a page or Component to open it; click it again,\n or the **X** on the pane, to close it. It shows your unsaved edits and\n refreshes a moment after you stop typing, with the status **Updating…**\n then **Updated**. You can't click anything in it: no pins, and links don't\n go anywhere. It starts closed, and Composer and the Component editor each\n remember whether you left it open. The pane has the same host picker and\n **Phone**, **Tablet** and **Full** widths as in-context editing, and, in\n the Component editor, the same **Framed in** picker. On a narrow screen it\n sits under the form instead of beside it.\n- **In-context editing** is the full editing view: your site with numbered\n pins you click to change that part. Open it with **Edit in context…**. The\n rest of this section describes it. While it is open, the Preview pane steps\n aside, and comes back when you close it.\n\n## In-context editing\n\nClick **Edit in context…** on any page to open in-context editing: your site, rendered\nright there in Composer, showing your unsaved draft — not what's actually\npublished. Nothing you do here goes live until you choose to publish it.\n\nAcross the top of in-context editing:\n\n- **The host.** The address of the site being previewed, with what it does\n underneath: **Click-to-edit** (the site can show pins and be clicked\n through) or **Reloads on change** (the site builds its pages on its own\n server; see below). If your site has more than one address, choose one\n here. The list is managed under **Settings › Sites**.\n- **Edit and Browse.** Hover either for what it does. **Edit** shows pins\n you can click to change content; **Browse** hides them so you can click\n through the site like a visitor.\n- **Phone, Tablet and Full** set how wide the page is. You can also drag the\n page's left or right edge to any width, with a readout and a snap to\n Phone and Tablet. The panel on the right has its own handle on its left\n edge, so you can make the page phone-sized and still keep room to edit.\n Press an arrow key on a handle to move it 10 px (50 with Shift), or\n double-click it to reset. Both widths are remembered.\n- **Language and audience** (for example *Default language · Everyone*)\n opens **Preview as a visitor**, to see the page as a visitor in another\n language or audience would, or to show referenced content in full.\n- **Open site** opens the page in its own browser tab.\n\nOn a phone-sized screen the header has three rows: the page name and status\nwith **Close**, then the host with **Pins** and **⋯** (Open site, Language and\naudience), then Edit and Browse. **Pins** opens the panel as a sheet from the\nbottom, and the width handles are not shown.\n\nPress **Esc** to close an open Quick edit form; press it again to close live\npreview.\n\n### Preview a section, a header or a shared Component\n\nYou do not need a page to preview a presentation.\n\n- **A section on a page.** On the card of any presentation field, click\n **Edit in context**. In-context editing opens on that page with the section's pin already\n selected. If the page does not draw that section, the panel says\n **Not on this page** beside it.\n- **A shared Component.** In the Component editor, **Preview…** opens live\n preview with the Component shown inside a real page that uses it. The\n **Framed in** chip switches to another page that uses it, and your choice is\n remembered for that Component. If only one page uses it, you are not asked.\n Pages that use it through another Component are included.\n- **A site header or footer.** A Component your site draws around every page\n (for example `ebitex-site-chrome`) is previewed on any page of the site,\n the site's home page by default, and the page you pick is remembered for the\n site. If the page you picked does not show it, the preview says so and\n offers another page.\n\nWhat a preview of one page proves: how your draft looks there. Another page\nmay place the same Component differently, so use **Framed in** to check a\nsecond one. Things only your site's code controls, such as a sticky header or\nfonts, are judged on the live site.\n\n**A Component no page uses yet.** If the page you framed does not show your\nComponent, the preview says so and offers **Show it in a Context instead**. The\n**Context** is the Templates that would hold it, such as a section inside a\npage, built for the preview and never saved. The **Context** chip names it:\nopen it to choose another when more than one is possible, and to edit\n**Context settings**, the settings of those Templates (a theme, a section's\nappearance) as they will apply on a real page. Under **Shown as** you choose\nthe Template that presents your Component and its settings; that choice is\nyours, the Context's is not. **Browse** is hidden, because the page was made\nfor the preview and has nowhere to go. A pin on the Context itself opens\nnothing and says so. In the Template builder, **Edit in context…** asks for a\nComponent and opens the same view. **Show the resolved output instead** still\nopens the raw result.\n\nThe page renders with numbered pins over anything you can edit. Shape\ntells you what a pin is, so it reads even in black and white:\n\n- A **magenta circle** is a single field — a headline, a paragraph, a date.\n- A **solid blue rounded rectangle** is a whole Component — either the\n Presentation bound at that spot, or something rendered outside the page\n itself (see \"Also on this page\" below).\n- A **dashed blue rounded rectangle** is content produced by an Adapter —\n mapped in from somewhere else, with no field of its own on this page.\n- A **red rectangle** marks something that couldn't be resolved.\n\nEvery pinned part of the page also gets a light outline in its pin's own\ncolor the whole time you're in Edit mode, not just on hover — so you can\nsee everything on the page that's editable at a glance, before you click\nanything. Hovering or selecting a pin (from the page or from its row in\nthe panel on the right) strengthens that outline and shows a tag naming\nwhat it is.\n\nWhat clicking a pin does depends on its shape:\n\n- A **field** pin opens a small **docked editor** right at the top of the\n panel — no matter how deep inside the page's content that field actually\n lives — with its name, its type, and a magenta **Own save** badge, above\n the rest of the page summary (dimmed while you're editing). Deep inside\n something (a section, a card, a list item), the docked editor also shows\n a breadcrumb (\"Referenced by *the page* → *Section 4* *Statement* →\n `actions`\") so you know exactly where you are. What docks depends on the\n field:\n - A **Component**, **Reference**, or **Presentation** field — the kind\n that points at other content — gets a compact list: one row per item,\n with a label, where it links to (if anywhere), a drag handle to\n reorder, an edit button, a remove button, and an **Add item** row at\n the bottom. Click a row's edit button to open that item — an item\n authored right here opens its own full editor; an item that's really a\n separate, shared Component re-targets this same panel to that\n Component instead of opening a second one.\n - Every other field (Rich text, a plain text field, a date, and so on)\n gets its own usual editor, docked as a single row.\n Type, then **Save** or **Cancel** — or **Open full editor** if you'd\n rather see the whole Component or page it belongs to.\n A pin whose field can't be matched this way falls back to opening the\n whole Component or page in full, with that field already focused.\n- A **Component** pin (solid rectangle) opens that Component for editing\n in full, the same as clicking **Quick edit** next to it — a magenta\n **Own save** badge marks it while you're in it.\n- An **Adapter-mapped** pin (dashed rectangle) never opens an editor\n directly — there's no field of yours behind it. Instead it explains\n where the content comes from: which Adapter produced it, and a look at\n the actual source underneath. From there, **Edit source field** jumps\n straight to the one field that's a direct, one-to-one copy (when there\n is one), and **Edit mapping…** opens the mapping itself for a deeper\n change.\n- A **red (unresolved)** pin opens on whatever it belongs to, so you can\n see and fix why it isn't resolving.\n\nType in a docked or full editor, and the page updates within a second or\nso either way.\n\n**Browse** switches off the pins so you can click around the page the way a\nvisitor would — following links to see other pages of the same site, still\nagainst your unsaved drafts. The panel says the pins are hidden on purpose;\nswitch back to **Edit** to see them.\n\n**Also on this page** lists anything the site renders that isn't part of\nthe page itself — a shared header or footer, for instance. These are\nedited and saved the same way as anything else with a pin: click **Quick\nedit** next to it, make your change, and save. Because a shared header or\nfooter isn't part of any one page, saving it doesn't publish it along with\nthe page — after saving, use the **Publish…** button that appears right\nthere to make the change live. If a site is set up to show something\nthat doesn't exist in the environment you're working in, it's listed as\n**not in this environment** — nothing to worry about, and never something\nthat stops the rest of the page from previewing normally.\n\n### Previewing a site that renders on its server\n\nSome sites build every page on their own server and send finished pages to\nthe browser, with nothing re-drawn in the browser afterwards. In-context editing\ncan't hand those sites your draft directly, so it works a little\ndifferently there.\n\nYour developer sets it up once:\n\n- Under **Settings › Sites**, open the site and set its host's **Live\n preview** to **Server**.\n- Under **Deliver → API keys**, the site's key needs **Allow draft preview** turned\n on. Only a server-side key can have it.\n\nAfter that, in-context editing on that host behaves like this:\n\n- Composer starts a private preview session for you. Your draft, unsaved\n edits included, goes to that session, and the site's server reads it from\n there.\n- Each time you pause typing, the page reloads with your latest edits. That\n takes a moment longer than on other sites.\n- **Pins work if the site adds one script.** Out of the box a\n server-rendered site has nothing running in the browser to draw pins.\n Where Edit and Browse would be, in-context editing shows **Reloads on change**,\n and the panel says pins aren't available on this site — use it to edit\n the page and the Component it shows.\n If your developer adds ebitex's preview script to the site (a single\n `<script>` tag, and marks which part of the page shows which field), you\n get the same numbered pins and click-to-edit as any other site. Nothing\n changes for visitors: the script does nothing unless Composer is framing\n the page. Ask them for \"the ebitex preview script\" and point them at\n developers.ebitex.io.\n- Only the page you're previewing shows your draft. Follow a link and the\n other page shows what's published — and if the site runs the script,\n Composer follows you there and starts previewing that page instead.\n- If the preview says **The site is showing its published page, not your\n draft**, what you're looking at isn't your draft. Usually the site isn't\n set up for server previews yet, its key doesn't allow draft preview, or\n your browser blocked the site's cookie inside Composer. **Open the site in\n a new tab** gets around that last one. **Copy details for your developer**\n puts what they need on your clipboard, and **Technical details** shows it\n on screen.\n- The Preview pane uses the same kind of session and reloads the same way.\n Closing the pane, like closing in-context editing, ends the session straight\n away. Nobody can use it\n afterwards.\n\n### If the preview can't reach the site\n\nIf the site isn't answering, a message appears above the page: **The site\nisn't answering at *address***. It may not be running, or it may not be set\nup for preview yet. **Try again** checks again, **Open the site in a new tab**\nshows you what the site itself does, and **Copy details for your developer**\nputs the likely causes on your clipboard to send on. The same causes are\nunder **Technical details**.\n\n## Opening a page from the site itself\n\nWhen you're signed in to Content and browsing one of your own published sites, a small **Click to\nedit** button appears in the corner of the page. It takes you straight to that page in Composer, with\nin-context editing already open.\n\nIf the page belongs to a **different organization** than the one you're currently working in, Content\nswitches for you and shows a notice saying so, with a **Switch back** button. That switch applies to\nyour whole ebitex session — Hub and Forms in other tabs will show the new organization the next time\nyou navigate in them — so the notice stays until you dismiss it.\n\nA few cases where the link won't open a page, and what each means:\n\n- **\"This page no longer exists, or belongs to an organization you are not currently signed in to.\"**\n Either the page was deleted, or it belongs to an organization you're not a member of. If a\n colleague sent you the link, ask them to add you to that organization.\n- **Nothing switches and the page doesn't load.** The site's hostname isn't mapped to a site in any\n organization you belong to. Check **Settings > Delivery** for that organization's host mappings.\n- **Two organizations claim the same hostname.** Content won't guess which one you meant. Fix the\n duplicate mapping in **Settings > Delivery**, then follow the link again.\n\n## Restricting what can go where\n\nTwo governance controls apply to a branch of the tree, the same way they\napply to Component folders (see \"Folders and access rules\" in\n[Authoring Components](components.md)) — both live in the **Configuration**\ntab's **Advanced** section:\n\n- **Who can work on this branch** (access rules) grants specific roles view/edit/delete/publish on a\n branch — no rules anywhere on the branch means it's open to everyone; a\n rule anywhere on a root even restricts an entire site. A role needs view\n to see a branch at all; edit, delete, and publish are each independent\n beyond that.\n- **Templates pages here can use** restricts which Templates a Presentation payload\n can use anywhere at or beneath a page — useful for keeping, say, a\n campaigns section limited to a handful of approved layouts. Leaving it\n unset allows any Template. Tightening this later never breaks a payload\n already in place; it's only checked when a payload is assigned or\n changed.\n\nBoth panels are only editable by someone with elevated access-management\npermission; everyone else sees a read-only summary of what they\npersonally can do on that branch.\n"
|
|
35
35
|
},
|
|
36
36
|
{
|
|
37
37
|
"slug": "content-environments",
|
|
38
38
|
"title": "Content environments",
|
|
39
|
-
"body": "# Content environments\r\n\r\nBy default, your organization has one authoring space and one place published content goes live —\r\nyou'll never need this page if that's all you use. If you want separate spaces to draft in (a\r\nStaging environment you can experiment in before anything reaches Production, say), this is where\r\nthat's configured.\r\n\r\n## What's an environment?\r\n\r\nThere are two kinds:\r\n\r\n- **Authoring environments** are separate drafting spaces. Contracts, Templates, folders,\r\n Components and the Experience tree are specific to whichever authoring\r\n environment you're currently working in — content in one is completely invisible from another,\r\n as if they were separate organizations.\r\n- **Delivery environments** are separate published targets — what the Content Delivery API actually\r\n serves to the outside world, and what a delivery key reads from.\r\n\r\nEvery organization starts with one of each, marked **Default**. The default is where publishing,\r\nnew delivery keys, and the environment switcher land when nothing more specific is chosen — you can\r\nchange which environment holds that role at any time (see **Managing environments** below).\r\n\r\n## Switching environments\r\n\r\nIf more than one authoring environment exists, a switcher appears in the header next to your\r\naccount. Pick one to start working there — every page reloads to show that environment's own\r\ncontent. Your choice is remembered per-organization, so it's still selected next time you sign in.\r\n\r\n## Managing environments\r\n\r\nOpen **Environments** under **Deliver** in the app navigation (requires the \"Manage Environments\"\r\npermission — ask an Owner or administrator if it's not available to you). The page has four tabs:\r\n**Environments** (the authoring and delivery lists), **Topology**, **Members** and **Access rules**.\r\n\r\n- **Create** a new authoring or delivery environment, give it a name. Your plan limits authoring\r\n and delivery environments **separately**, not as one combined total — Billing\r\n shows both, with how many you're using. A newly created environment is added to the end of its\r\n list.\r\n- **Reorder** the authoring or delivery list to whatever arrangement makes sense to your team —\r\n drag a row to where you want it, or use the ▲/▼ buttons on each row. While dragging, the row\r\n shows as a placeholder that moves to preview exactly where it'll land if you release. This sets\r\n the order these lists and the environment switcher use, and where a not-yet-arranged box is\r\n placed on the topology canvas below; once you've dragged a box on the canvas, the canvas keeps\r\n where you put it. (A list with only one environment has nothing to reorder against, so dragging\r\n is unavailable there.)\r\n- **Rename** any environment at any time — nothing else changes.\r\n- **Set as default**: on any non-default environment's row, this moves the Default badge to it and\r\n clears it from wherever it was. Publishing, new delivery keys, and the environment switcher's own\r\n default all follow immediately.\r\n- **Delete** any environment except the last remaining one of its kind. This is permanent and\r\n immediate: everything authored (or, for a delivery environment, everything published) there is\r\n gone, with no recovery. You'll be asked to type the environment's name to confirm. If the\r\n environment currently publishes to a delivery target, promotes into another environment, or is\r\n itself a promotion target, the confirmation names those connections — deleting still removes them\r\n along with everything else. The current default can't be deleted directly while another\r\n environment of its kind exists — set a different one as default first, then delete it.\r\n- **Refresh from…**: replace this environment's content wholesale from another authoring\r\n environment — the routine \"copy Production down into Staging\" move. See\r\n [environment-refresh.md](environment-refresh.md) for the full workflow, including how to rescue\r\n work that would otherwise be lost.\r\n\r\n### The topology canvas\r\n\r\nOne canvas shows every way your environments connect to each other. Each environment is a box with\r\nfour small circles — **connectors** — one on each side. Each connection is a labelled line drawn\r\nbetween two boxes, and every line points the same way: **content can move along the arrow**.\r\n\r\nThere are two kinds, and the legend under the canvas names both:\r\n\r\n- **publishes to** — an authoring environment publishes to a delivery environment.\r\n- **promotes into** — an authoring environment can promote content into another authoring\r\n environment.\r\n\r\nSharing content across a family of brands or sites is not drawn here: that is what [realms](realms.md) are for, and they are not environments.\r\n\r\nBoth are routing, not content. Changing one redirects where the next publish or promote\r\nlands; it does not move anything by itself.\r\n\r\n**Drawing a connection.** Select a connector on the environment you want to connect *from*, then a\r\nconnector on the one you want to connect *to*. It works the same with a mouse (click one then the\r\nother, or drag between them) and with the keyboard alone (<kbd>Tab</kbd> to a connector,\r\n<kbd>Enter</kbd>, <kbd>Tab</kbd> to another, <kbd>Enter</kbd>). <kbd>Escape</kbd> cancels at any\r\npoint.\r\n\r\n**The connectors you choose are the ones the line uses**, and they stay that way — moving a box\r\nre-routes the line between the same two connectors rather than picking different ones. Pick whichever\r\nsides make your topology read best; if you want a line to come in from below, connect to the bottom\r\nconnector and that is where it will arrive, for everyone, after every reload.\r\n\r\nConnecting two *authoring* environments means promotion: **{A} promotes into {B}**. Everything else is\r\ndecided by what you connected.\r\n\r\n**A delivery environment only receives.** Its box is marked *Receives only*, and its connectors\r\ncan't start a connection at all — there's nothing to click or drag from. That's not a rule you'll\r\ndiscover by being told off after the fact; the canvas simply can't draw the line.\r\n\r\n**When something isn't allowed**, a short message appears where you dropped the connection and\r\nnothing is saved:\r\n\r\n- *That would create a cycle in the promotion pipeline* — content can't\r\n flow in a circle, directly or through a chain of other environments.\r\n- *Already connected* — that exact connection is already there.\r\n\r\n**A delivery environment can be published from only one authoring environment at a time.** Connect\r\none that's already claimed and you'll be asked to confirm reassigning it, naming the environment\r\nthat holds it now; confirming removes the other mapping. An authoring environment can promote into\r\nany number of others, and any number can promote into the same target — promotion has no such\r\nexclusivity.\r\n\r\n**Removing a connection.** Select the **×** on the line's label, or **Remove** on the matching row\r\nin the Connections list below. Publishing and promotion lines go immediately — they're routing, and\r\nremoving one destroys nothing.\r\n\r\n**Removing a publishing line does not take your live site down.** Anything already published stays\r\npublished and keeps being served exactly as before: a published page is a finished copy held by the\r\ndelivery environment, not a view onto the authoring one. What stops is publishing itself — until you\r\ndraw the line again, you can't publish anything new to that environment or unpublish anything from\r\nit, and you'll be told so if you try. A delivery box in that state says *Still serving content\r\npublished from …* so it's clear the site is up even though nothing is connected to it.\r\n\r\n**Limiting a publishing connection to realms.** By default a delivery environment can be published to from every realm. If your organization has more than one realm, you can limit a connection to the realms it serves, so a page from one brand cannot be published to the delivery environment that another brand's site reads. On the **Environments** tab, open the menu on a delivery environment and choose **Realms…**. Choose **Every realm** (the default, which includes realms created later), or **Only these realms** and tick them. A realm you tick covers the realms below it, and its parent realms can still publish their own content to it. Listing the root realm covers every realm, so it is the same as **Every realm**. The Environments tab shows each connection's realms beside it, and the Connections list on the Topology tab has a **Realms** column.\r\n\r\nChanging a connection's realms moves nothing and takes nothing down: what is already published stays published. It decides who can publish to the connection from now on. If someone tries to publish to a connection that is not open to their realm, for example from a script, the request is refused and says which realms the connection serves. Unpublishing is never refused this way, so content published to the wrong place can always be taken down.\r\n\r\n**Arranging the canvas.** Drag any box to where you want it. The arrangement is saved for your whole\r\norganization, so everyone sees the topology laid out the way you left it. Pan by dragging the\r\nbackground, zoom with the scroll wheel or the +/− buttons, and use the ⤢ button to fill the screen\r\n(<kbd>Escape</kbd> leaves full screen). An environment nobody has arranged yet is placed\r\nautomatically — authoring on the left, delivery on the right, in list order.\r\n\r\n**The Connections list** below the canvas says the same thing in words — *Live publishes to\r\nProduction* — grouped by the environment each connection starts from, with its own Remove on every\r\nrow. Use whichever you prefer; they're the same connections and the same actions.\r\n\r\nWithout the \"Manage Environments\" permission the canvas is read-only: you can pan, zoom, go full\r\nscreen and read the Connections list, but nothing offers to change anything.\r\n\r\n## Limiting who can use an environment\r\n\r\nBy default every member of your organization can open every authoring environment, with the role\r\nthey hold in the organization. That's usually what you want. When it isn't — an agency working on\r\none client's site, a contractor who should only see a Staging environment — you can limit a member\r\nto specific environments, and give them a different role in each.\r\n\r\nOpen **Environment access** at the bottom of the Environments page. Pick an environment, then choose\r\na member and the role they should have *in that environment*, and select **Bind member**. You can\r\nchange a bound member's role there at any time, or **Remove** them.\r\n\r\nThis needs the \"Assign member roles\" permission — the same one Hub uses to change a member's role —\r\nbecause giving someone a role in an environment is giving them that role. You also need \"View roles\",\r\nso the section can list the roles to choose from; if you have only one of the two, the section says\r\nwhich is missing.\r\n\r\n**What changes for a bound member:**\r\n\r\n- They can open **only** the environments they're bound to. The environment switcher shows just\r\n those, and anything that names another environment is refused.\r\n- In each one they have the role you chose there, not their organization role — so someone can be\r\n an editor in one environment and read-only in another.\r\n- The topology canvas is hidden from them, because it would show connections to environments they\r\n can't see.\r\n\r\n**Owners are never limited.** They always reach every environment with full access, so they don't\r\nappear in the member list and the Owner role can't be chosen.\r\n\r\n**Removing a member's last binding gives them back access to every environment** with their\r\norganization role — it doesn't lock them out. Having no bindings at all is the normal, unrestricted\r\nstate. To take someone out of Content entirely, change their role in Hub instead.\r\n\r\n**Uploaded files follow the same boundary.** Someone limited to certain environments can open an\r\nimage or file that's used by content in one of those environments, or that they uploaded there\r\nthemselves. Anything else reports as not found, exactly as a file that doesn't exist would — so they\r\ncan't tell what exists elsewhere. Nobody unrestricted, and no Owner, is affected.\r\n\r\n**Setting up an outside collaborator.** Give them a minimal organization role in Hub, then bind their\r\nreal role per environment here — **Content Author** is usually the one you want (start a new role from the\r\npreset if your organization doesn't have it). Their organization\r\nrole is what applies everywhere outside Content, and the bound role is what applies inside it. See\r\n**Working with someone outside your team** in the Hub organizations guide for the Hub half, and\r\n**What roles can do in an environment** below if they should write content but not publish it.\r\n\r\n## What roles can do in an environment\r\n\r\nBeing able to open an environment isn't the same as being able to do everything in it. **What roles\r\ncan do here**, below Environment access on the Environments page, sets what each role may do\r\nthroughout one authoring environment.\r\n\r\nTick a role for **Edit**, **Delete** or **Publish**. Viewing is included automatically with any of\r\nthem, so there's no separate tick for it.\r\n\r\nThe part that reads backwards, so it's worth saying plainly: **an action with no ticks at all is\r\nunrestricted.** Anyone who can open the environment can do it. Ticking roles is what restricts an\r\naction to those roles, and removing the last tick for an action makes it unrestricted again — so\r\nclearing ticks *widens* access rather than removing it. An environment where you've never set\r\nanything up behaves exactly as it always has.\r\n\r\nThis is the only place that can restrict content filed outside any folder. Rules you set on a\r\nfolder or a page still win for that branch, so the usual shape is: restrict publishing across the\r\nenvironment here, then grant it back on the one section a team owns.\r\n\r\nA typical setup for a writer who shouldn't publish:\r\n\r\n1. Tick **Edit** for Content Author, so editing is restricted to roles you name — including them.\r\n2. Leave **Publish** ticked only for the roles that should publish. Content Author isn't one.\r\n3. They can now write and change content anywhere in the environment, and publish nothing.\r\n\r\nAnyone holding the \"Manage access\" permission is unaffected by these rules, so an environment can\r\nnever be configured into a state nobody can fix.\r\n\r\n## Promoting content\r\n\r\nPromoting copies a Component or Experience node — and everything it needs (its Contract, Template,\r\nreferenced Components, ancestor folders) — from the\r\nenvironment you're in into another one, ready to be worked on or published there. This is different\r\nfrom publishing: promoting moves *draft* content between authoring spaces; publishing takes draft\r\ncontent live to visitors.\r\n\r\nSelect **Promote…** on a Component or Experience node — a target is already picked for you (the\r\nfirst one configured, changeable from the dropdown if more than one exists), so you'll usually go\r\nstraight to reviewing the plan below rather than choosing first. If your current environment has no\r\npromotion target configured at all, **Promote…** is disabled with an explanation — set one up under\r\n[Managing environments](#managing-environments) first. Once a target is resolved, you'll see\r\neverything about to move, each marked:\r\n\r\n- **New** — doesn't exist in the target yet.\r\n- **Update** — already exists there, unchanged since it was last promoted; safe to overwrite.\r\n- **Diverged** — already exists there, but has been edited directly in the target (or promoted from\r\n somewhere else) since the last time this same source promoted it. You'll need to explicitly\r\n confirm overwriting it — nothing diverged is ever silently replaced. Whatever was there before\r\n stays recoverable in its own version history.\r\n\r\nContracts, Templates, and ancestor folders/nodes always move along with the item you're\r\npromoting — there's no separate choice for those. Referenced Components can be unchecked\r\nindividually if you don't want them to move yet; a skipped reference is simply left as-is in the\r\ntarget, pointing at whatever (if anything) is already there. If the item you're skipping doesn't\r\nexist in the target at all yet, a note appears explaining that this leaves a dangling reference\r\nthere until it's promoted — see [Unresolved references](#unresolved-references-component-sync)\r\nbelow for how to find and fix one later.\r\n\r\nPromoting requires the same **Publish** permission the item's own branch requires; promoting a\r\nContract or Template along with it additionally requires the permission to manage that\r\nkind of thing directly.\r\n\r\n### Promoting a Contract or Template on its own\r\n\r\nA schema-only change — a field added to a Contract, an adjusted Template — can be promoted by itself, without touching any Component that happens to use it.\r\nSelect **Promote…** directly from the Contract builder, or the Template builder. The same **New**/**Update**/**Diverged** states and\r\noverwrite confirmation apply; a Template's own settings Contract and a provider-contributed\r\nContract can't be promoted this way (promote the Template instead, or refresh/manage the provider\r\nregistration). This needs the permission to manage that kind of thing directly — there's no\r\n**Publish** branch involved, since Contracts/Templates aren't organized into branches.\r\n\r\n## Unresolved references (Component sync)\r\n\r\nSkipping a referenced Component during promotion (above) — or publishing a Component whose\r\nreference was already skipped in an earlier promotion — leaves that reference pointing at\r\nsomething that doesn't exist in this environment. This is allowed on purpose: it never blocks a\r\npromotion or a publish, and delivery itself handles it gracefully (the missing reference is simply\r\nomitted from what's served). But nothing else ever tells you it happened unless you go looking, so\r\n**Component sync**, under **Tools** in the app navigation, lists every one currently in your\r\nenvironment: which Component or Experience node has the broken reference, which field it's in, and\r\n— where this environment has a direct upstream promotion source that still has the missing item —\r\nwhich environment that is.\r\n\r\nYou'll also see it called out in two other places, right where it matters: opening a Component\r\nwhose reference is broken shows an **Unresolved** badge in place of the usual resolved name, with a\r\nlink straight to its Component sync entry; and publishing a closure that contains one shows a\r\nnon-blocking banner naming the affected item (publishing still proceeds — this is a heads-up, not a\r\nnew restriction).\r\n\r\n**To fix one:** promote the missing item forward from the environment Component sync names — but\r\nthat step alone isn't enough on its own, because promoting the missing item doesn't touch the\r\nComponent that references it. Once the missing item exists here, **re-promote the referencing\r\nComponent too** (from wherever you originally promoted it), so its reference is re-checked against\r\nwhat's now available. After that second promotion, the entry disappears from Component sync, the\r\nbadge on the Component resolves back to a normal name, and any publish banner clears.\r\n\r\n## Sharing content across brands and sites\r\n\r\nEnvironments are lifecycle stages (Staging, then Live). They no longer share content with each other through a parent: the old \"inherits from\" link and the **Sync now**\r\nbutton are gone. If you have content a whole family of brands or sites should all draw from (shared design-system blocks, legal boilerplate, a common set of media\r\nContracts), that is what **realms** do: a realm reads its own content and its ancestors' automatically, with nothing to sync, and an edit to something it inherits is\r\nwritten in the realm that owns it. See [realms.md](realms.md) for the whole picture, including who can enter which realm and how promotion handles content that comes from a realm above.\r\n\r\nIf your organization had two environments linked by inheritance before realms, nothing was deleted when the link was removed: the copies in the child environment are\r\nnow ordinary content of that environment, which you can edit freely. They no longer follow the parent.\r\n\r\n## How this affects everything else\r\n\r\nIf you never create a second environment, nothing here changes anything: the switcher never\r\nappears, publishing and delivery keys keep using your one delivery environment automatically, and\r\nthere's no promotion to do. See [publishing.md](publishing.md) for the publish lifecycle,\r\n[content-personalization.md](content-personalization.md) for Audiences (which, unlike everything else\r\nyou author, belong to your organization rather than one environment), and [content-providers.md](content-providers.md) for\r\ncopying a registered content provider between environments.\r\n"
|
|
39
|
+
"body": "# Content environments\n\nBy default, your organization has one authoring space and one place published content goes live —\nyou'll never need this page if that's all you use. If you want separate spaces to draft in (a\nStaging environment you can experiment in before anything reaches Production, say), this is where\nthat's configured.\n\n## What's an environment?\n\nThere are two kinds:\n\n- **Authoring environments** are separate drafting spaces. Contracts, Templates, folders,\n Components and the Experience tree are specific to whichever authoring\n environment you're currently working in — content in one is completely invisible from another,\n as if they were separate organizations.\n- **Delivery environments** are separate published targets — what the Content Delivery API actually\n serves to the outside world, and what a delivery key reads from.\n\nEvery organization starts with one of each, marked **Default**. The default is where publishing,\nnew delivery keys, and the environment switcher land when nothing more specific is chosen — you can\nchange which environment holds that role at any time (see **Managing environments** below).\n\n## Switching environments\n\nIf more than one authoring environment exists, a switcher appears in the header next to your\naccount. Pick one to start working there — every page reloads to show that environment's own\ncontent. Your choice is remembered per-organization, so it's still selected next time you sign in.\n\n## Managing environments\n\nOpen **Environments** under **Deliver** in the app navigation (requires the \"Manage Environments\"\npermission — ask an Owner or administrator if it's not available to you). The page has four tabs:\n**Environments** (the authoring and delivery lists), **Topology**, **Members** and **Access rules**.\n\n- **Create** a new authoring or delivery environment, give it a name. Your plan limits authoring\n and delivery environments **separately**, not as one combined total — Billing\n shows both, with how many you're using. A newly created environment is added to the end of its\n list.\n- **Reorder** the authoring or delivery list to whatever arrangement makes sense to your team —\n drag a row to where you want it, or use the ▲/▼ buttons on each row. While dragging, the row\n shows as a placeholder that moves to preview exactly where it'll land if you release. This sets\n the order these lists and the environment switcher use, and where a not-yet-arranged box is\n placed on the topology canvas below; once you've dragged a box on the canvas, the canvas keeps\n where you put it. (A list with only one environment has nothing to reorder against, so dragging\n is unavailable there.)\n- **Rename** any environment at any time — nothing else changes.\n- **Set as default**: on any non-default environment's row, this moves the Default badge to it and\n clears it from wherever it was. Publishing, new delivery keys, and the environment switcher's own\n default all follow immediately.\n- **Delete** any environment except the last remaining one of its kind. This is permanent and\n immediate: everything authored (or, for a delivery environment, everything published) there is\n gone, with no recovery. You'll be asked to type the environment's name to confirm. If the\n environment currently publishes to a delivery target, promotes into another environment, or is\n itself a promotion target, the confirmation names those connections — deleting still removes them\n along with everything else. The current default can't be deleted directly while another\n environment of its kind exists — set a different one as default first, then delete it.\n- **Refresh from…**: replace this environment's content wholesale from another authoring\n environment — the routine \"copy Production down into Staging\" move. See\n [environment-refresh.md](environment-refresh.md) for the full workflow, including how to rescue\n work that would otherwise be lost.\n\n### The topology canvas\n\nOne canvas shows every way your environments connect to each other. Each environment is a box with\nfour small circles — **connectors** — one on each side. Each connection is a labelled line drawn\nbetween two boxes, and every line points the same way: **content can move along the arrow**.\n\nThere are two kinds, and the legend under the canvas names both:\n\n- **publishes to** — an authoring environment publishes to a delivery environment.\n- **promotes into** — an authoring environment can promote content into another authoring\n environment.\n\nSharing content across a family of brands or sites is not drawn here: that is what [realms](realms.md) are for, and they are not environments.\n\nBoth are routing, not content. Changing one redirects where the next publish or promote\nlands; it does not move anything by itself.\n\n**Drawing a connection.** Select a connector on the environment you want to connect *from*, then a\nconnector on the one you want to connect *to*. It works the same with a mouse (click one then the\nother, or drag between them) and with the keyboard alone (<kbd>Tab</kbd> to a connector,\n<kbd>Enter</kbd>, <kbd>Tab</kbd> to another, <kbd>Enter</kbd>). <kbd>Escape</kbd> cancels at any\npoint.\n\n**The connectors you choose are the ones the line uses**, and they stay that way — moving a box\nre-routes the line between the same two connectors rather than picking different ones. Pick whichever\nsides make your topology read best; if you want a line to come in from below, connect to the bottom\nconnector and that is where it will arrive, for everyone, after every reload.\n\nConnecting two *authoring* environments means promotion: **{A} promotes into {B}**. Everything else is\ndecided by what you connected.\n\n**A delivery environment only receives.** Its box is marked *Receives only*, and its connectors\ncan't start a connection at all — there's nothing to click or drag from. That's not a rule you'll\ndiscover by being told off after the fact; the canvas simply can't draw the line.\n\n**When something isn't allowed**, a short message appears where you dropped the connection and\nnothing is saved:\n\n- *That would create a cycle in the promotion pipeline* — content can't\n flow in a circle, directly or through a chain of other environments.\n- *Already connected* — that exact connection is already there.\n\n**A delivery environment can be published from only one authoring environment at a time.** Connect\none that's already claimed and you'll be asked to confirm reassigning it, naming the environment\nthat holds it now; confirming removes the other mapping. An authoring environment can promote into\nany number of others, and any number can promote into the same target — promotion has no such\nexclusivity.\n\n**Removing a connection.** Select the **×** on the line's label, or **Remove** on the matching row\nin the Connections list below. Publishing and promotion lines go immediately — they're routing, and\nremoving one destroys nothing.\n\n**Removing a publishing line does not take your live site down.** Anything already published stays\npublished and keeps being served exactly as before: a published page is a finished copy held by the\ndelivery environment, not a view onto the authoring one. What stops is publishing itself — until you\ndraw the line again, you can't publish anything new to that environment or unpublish anything from\nit, and you'll be told so if you try. A delivery box in that state says *Still serving content\npublished from …* so it's clear the site is up even though nothing is connected to it.\n\n**Limiting a publishing connection to realms.** By default a delivery environment can be published to from every realm. If your organization has more than one realm, you can limit a connection to the realms it serves, so a page from one brand cannot be published to the delivery environment that another brand's site reads. On the **Environments** tab, open the menu on a delivery environment and choose **Realms…**. Choose **Every realm** (the default, which includes realms created later), or **Only these realms** and tick them. A realm you tick covers the realms below it, and its parent realms can still publish their own content to it. Listing the root realm covers every realm, so it is the same as **Every realm**. The Environments tab shows each connection's realms beside it, and the Connections list on the Topology tab has a **Realms** column.\n\nChanging a connection's realms moves nothing and takes nothing down: what is already published stays published. It decides who can publish to the connection from now on. If someone tries to publish to a connection that is not open to their realm, for example from a script, the request is refused and says which realms the connection serves. Unpublishing is never refused this way, so content published to the wrong place can always be taken down.\n\n**Arranging the canvas.** Drag any box to where you want it. The arrangement is saved for your whole\norganization, so everyone sees the topology laid out the way you left it. Pan by dragging the\nbackground, zoom with the scroll wheel or the +/− buttons, and use the ⤢ button to fill the screen\n(<kbd>Escape</kbd> leaves full screen). An environment nobody has arranged yet is placed\nautomatically — authoring on the left, delivery on the right, in list order.\n\n**The Connections list** below the canvas says the same thing in words — *Live publishes to\nProduction* — grouped by the environment each connection starts from, with its own Remove on every\nrow. Use whichever you prefer; they're the same connections and the same actions.\n\nWithout the \"Manage Environments\" permission the canvas is read-only: you can pan, zoom, go full\nscreen and read the Connections list, but nothing offers to change anything.\n\n## Limiting who can use an environment\n\nBy default every member of your organization can open every authoring environment, with the role\nthey hold in the organization. That's usually what you want. When it isn't — an agency working on\none client's site, a contractor who should only see a Staging environment — you can limit a member\nto specific environments, and give them a different role in each.\n\nOpen **Environment access** at the bottom of the Environments page. Pick an environment, then choose\na member and the role they should have *in that environment*, and select **Bind member**. You can\nchange a bound member's role there at any time, or **Remove** them.\n\nThis needs the \"Assign member roles\" permission — the same one Hub uses to change a member's role —\nbecause giving someone a role in an environment is giving them that role. You also need \"View roles\",\nso the section can list the roles to choose from; if you have only one of the two, the section says\nwhich is missing.\n\n**What changes for a bound member:**\n\n- They can open **only** the environments they're bound to. The environment switcher shows just\n those, and anything that names another environment is refused.\n- In each one they have the role you chose there, not their organization role — so someone can be\n an editor in one environment and read-only in another.\n- The topology canvas is hidden from them, because it would show connections to environments they\n can't see.\n\n**Owners are never limited.** They always reach every environment with full access, so they don't\nappear in the member list and the Owner role can't be chosen.\n\n**Removing a member's last binding gives them back access to every environment** with their\norganization role — it doesn't lock them out. Having no bindings at all is the normal, unrestricted\nstate. To take someone out of Content entirely, change their role in Hub instead.\n\n**Uploaded files follow the same boundary.** Someone limited to certain environments can open an\nimage or file that's used by content in one of those environments, or that they uploaded there\nthemselves. Anything else reports as not found, exactly as a file that doesn't exist would — so they\ncan't tell what exists elsewhere. Nobody unrestricted, and no Owner, is affected.\n\n**Setting up an outside collaborator.** Give them a minimal organization role in Hub, then bind their\nreal role per environment here — **Content Author** is usually the one you want (start a new role from the\npreset if your organization doesn't have it). Their organization\nrole is what applies everywhere outside Content, and the bound role is what applies inside it. See\n**Working with someone outside your team** in the Hub organizations guide for the Hub half, and\n**What roles can do in an environment** below if they should write content but not publish it.\n\n## What roles can do in an environment\n\nBeing able to open an environment isn't the same as being able to do everything in it. **What roles\ncan do here**, below Environment access on the Environments page, sets what each role may do\nthroughout one authoring environment.\n\nTick a role for **Edit**, **Delete** or **Publish**. Viewing is included automatically with any of\nthem, so there's no separate tick for it.\n\nThe part that reads backwards, so it's worth saying plainly: **an action with no ticks at all is\nunrestricted.** Anyone who can open the environment can do it. Ticking roles is what restricts an\naction to those roles, and removing the last tick for an action makes it unrestricted again — so\nclearing ticks *widens* access rather than removing it. An environment where you've never set\nanything up behaves exactly as it always has.\n\nThis is the only place that can restrict content filed outside any folder. Rules you set on a\nfolder or a page still win for that branch, so the usual shape is: restrict publishing across the\nenvironment here, then grant it back on the one section a team owns.\n\nA typical setup for a writer who shouldn't publish:\n\n1. Tick **Edit** for Content Author, so editing is restricted to roles you name — including them.\n2. Leave **Publish** ticked only for the roles that should publish. Content Author isn't one.\n3. They can now write and change content anywhere in the environment, and publish nothing.\n\nAnyone holding the \"Manage access\" permission is unaffected by these rules, so an environment can\nnever be configured into a state nobody can fix.\n\n## Promoting content\n\nPromoting copies a Component or Experience node — and everything it needs (its Contract, Template,\nreferenced Components, ancestor folders) — from the\nenvironment you're in into another one, ready to be worked on or published there. This is different\nfrom publishing: promoting moves *draft* content between authoring spaces; publishing takes draft\ncontent live to visitors.\n\nSelect **Promote…** on a Component or Experience node — a target is already picked for you (the\nfirst one configured, changeable from the dropdown if more than one exists), so you'll usually go\nstraight to reviewing the plan below rather than choosing first. If your current environment has no\npromotion target configured at all, **Promote…** is disabled with an explanation — set one up under\n[Managing environments](#managing-environments) first. Once a target is resolved, you'll see\neverything about to move, each marked:\n\n- **New** — doesn't exist in the target yet.\n- **Update** — already exists there, unchanged since it was last promoted; safe to overwrite.\n- **Diverged** — already exists there, but has been edited directly in the target (or promoted from\n somewhere else) since the last time this same source promoted it. You'll need to explicitly\n confirm overwriting it — nothing diverged is ever silently replaced. Whatever was there before\n stays recoverable in its own version history.\n\nContracts, Templates, and ancestor folders/nodes always move along with the item you're\npromoting — there's no separate choice for those. Referenced Components can be unchecked\nindividually if you don't want them to move yet; a skipped reference is simply left as-is in the\ntarget, pointing at whatever (if anything) is already there. If the item you're skipping doesn't\nexist in the target at all yet, a note appears explaining that this leaves a dangling reference\nthere until it's promoted — see [Unresolved references](#unresolved-references-component-sync)\nbelow for how to find and fix one later.\n\nPromoting requires the same **Publish** permission the item's own branch requires; promoting a\nContract or Template along with it additionally requires the permission to manage that\nkind of thing directly.\n\n### Promoting a Contract or Template on its own\n\nA schema-only change — a field added to a Contract, an adjusted Template — can be promoted by itself, without touching any Component that happens to use it.\nSelect **Promote…** directly from the Contract builder, or the Template builder. The same **New**/**Update**/**Diverged** states and\noverwrite confirmation apply; a Template's own settings Contract and a provider-contributed\nContract can't be promoted this way (promote the Template instead, or refresh/manage the provider\nregistration). This needs the permission to manage that kind of thing directly — there's no\n**Publish** branch involved, since Contracts/Templates aren't organized into branches.\n\n## Unresolved references (Component sync)\n\nSkipping a referenced Component during promotion (above) — or publishing a Component whose\nreference was already skipped in an earlier promotion — leaves that reference pointing at\nsomething that doesn't exist in this environment. This is allowed on purpose: it never blocks a\npromotion or a publish, and delivery itself handles it gracefully (the missing reference is simply\nomitted from what's served). But nothing else ever tells you it happened unless you go looking, so\n**Component sync**, under **Tools** in the app navigation, lists every one currently in your\nenvironment: which Component or Experience node has the broken reference, which field it's in, and\n— where this environment has a direct upstream promotion source that still has the missing item —\nwhich environment that is.\n\nYou'll also see it called out in two other places, right where it matters: opening a Component\nwhose reference is broken shows an **Unresolved** badge in place of the usual resolved name, with a\nlink straight to its Component sync entry; and publishing a closure that contains one shows a\nnon-blocking banner naming the affected item (publishing still proceeds — this is a heads-up, not a\nnew restriction).\n\n**To fix one:** promote the missing item forward from the environment Component sync names — but\nthat step alone isn't enough on its own, because promoting the missing item doesn't touch the\nComponent that references it. Once the missing item exists here, **re-promote the referencing\nComponent too** (from wherever you originally promoted it), so its reference is re-checked against\nwhat's now available. After that second promotion, the entry disappears from Component sync, the\nbadge on the Component resolves back to a normal name, and any publish banner clears.\n\n## Sharing content across brands and sites\n\nEnvironments are lifecycle stages (Staging, then Live). They no longer share content with each other through a parent: the old \"inherits from\" link and the **Sync now**\nbutton are gone. If you have content a whole family of brands or sites should all draw from (shared design-system blocks, legal boilerplate, a common set of media\nContracts), that is what **realms** do: a realm reads its own content and its ancestors' automatically, with nothing to sync, and an edit to something it inherits is\nwritten in the realm that owns it. See [realms.md](realms.md) for the whole picture, including who can enter which realm and how promotion handles content that comes from a realm above.\n\nIf your organization had two environments linked by inheritance before realms, nothing was deleted when the link was removed: the copies in the child environment are\nnow ordinary content of that environment, which you can edit freely. They no longer follow the parent.\n\n## How this affects everything else\n\nIf you never create a second environment, nothing here changes anything: the switcher never\nappears, publishing and delivery keys keep using your one delivery environment automatically, and\nthere's no promotion to do. See [publishing.md](publishing.md) for the publish lifecycle,\n[content-personalization.md](content-personalization.md) for Audiences (which, unlike everything else\nyou author, belong to your organization rather than one environment), and [content-providers.md](content-providers.md) for\ncopying a registered content provider between environments.\n"
|
|
40
40
|
},
|
|
41
41
|
{
|
|
42
42
|
"slug": "content-links",
|
|
43
43
|
"title": "Linking to experiences and external sites",
|
|
44
|
-
"body": "# Linking to experiences and external sites\
|
|
44
|
+
"body": "# Linking to experiences and external sites\n\nA **Link** field lets you point at an experience in your own site (a node in the Experience tree) or\nat an external URL, with an optional query string and anchor. It replaces the older **URL** field\ntype, which still works on any field that already used it but no longer appears as a choice for a\nnew one.\n\n## Adding a link\n\nSelect **Choose experience…**, or the kind toggle (if the field allows both **Experience** and\n**External URL**), to pick which kind of link this is.\n\n### Linking to an experience\n\nSelecting **Choose experience…** opens a picker that works two ways, depending on whether you type.\n\n**Browse the tree.** With the search box empty, you see your sites. Select a row to pick it, or the\narrow on its right to open it and see what is filed under it. The trail above the list\n(**Sites › Northwind Retail › Partners**) shows where you are, and selecting any step takes you back\nup. An experience with nothing under it has no arrow. If you already chose an experience, **Change**\nopens the tree at its location with it highlighted. Browsing is the quickest way to find something\nwhen you know where it lives but not what it is called.\n\n**Search by name.** Start typing and the picker becomes a search. Matching experiences appear as you\ntype, each with its path, its publish status and, when your search spans several sites, the site it\nbelongs to. Use the arrow keys and **Enter**, or select a row, to pick it. Select **Show more** to keep\ngoing. The search matches names only, so if two experiences share a name, the path under each tells\nthem apart.\n\n- If you were browsing inside a section when you started typing, the search is limited to that section.\n The chip **In Partners** says so; select **Everywhere** to search all your sites.\n- Select the arrow at the right of a result (**Show in tree**) to see where it lives and what sits\n beside it. Clearing the search box returns you to the tree.\n- With the box empty, **Right arrow** opens the highlighted row and **Left arrow** goes up a level.\n\nOnce picked, the field shows the experience's name and its publish status, followed by the address it\nresolves to (see below).\n\nIf you pick an experience that hasn't been published yet, or that has changes that haven't been\npublished, you'll see a warning inside the address box. You can still save the link, but it won't\nresolve to the latest address until that experience is published. Once it is, the link starts working\nwith no further action from you.\n\n### Linking to an external URL\n\nSelecting **External URL** shows a plain address field. If the field's settings restrict which\nprotocols are allowed (for example, only `https`), you'll see that listed, and an address using a\ndifferent one is flagged before you can save.\n\n## Query and anchor\n\nBelow the kind you picked, **Query** and **Anchor** fields let you add extra address detail — for\nexample a query string like `utm_campaign=spring` or an anchor like `specs`. You don't type the `?` or\nthe `#`: they are added for you, and if you type or paste one it is removed so it never appears twice.\nThese are available for an experience link just as much as an external one — unless the field's\nsettings turn them off entirely, in which case neither shows.\n\n## The address it resolves to\n\nUnder the inputs, **Resolves to** shows the complete address the link will have, built from its parts\nso you can see exactly what Query and Anchor add: the host, the path, then `?query` and `#anchor`,\neach in its own colour.\n\n**This address is not fixed.** It's recalculated every time the experience is delivered, so if the\nexperience is later renamed or moved, the link updates automatically the next time it's viewed. You\nnever need to re-save anything that links to it.\n\nAn experience can have more than one address, because a language can change the address in three\nways: the **host** (`www.example.com` and `www.example.fr`), a **path prefix** (`/fr/about`), or a\ntranslated **slug** (`/about` and `/a-propos`). When it does, the line steps through each language's\naddress in turn, with the language shown beneath it, while your Query and Anchor stay put. The parts\nthat differ from the first address are highlighted.\n\n- Hover over the box, or move focus into it, to hold it on one address.\n- Select a dot to jump to that language's address and stop stepping. Use the pause button to stop\n or resume.\n- If your device is set to reduce motion, it does not step on its own. Use the dots.\n\nIf the site has no host mapped in the delivery environment, only the path is known, and the box says\nso. If the experience's site is delivered to more than one delivery environment, each address also\nnames its environment.\n\n## If the field only allows experiences\n\nSome fields are set up to only ever point at an experience in your own site — no kind toggle, no\nexternal option, no query/anchor. These use a simpler **Experience Reference** field, which uses the\nsame search as the Link field above, without any of the extra chrome. You'll typically see this on a\nfield meant to feed something else — a \"Featured pages\" list used to build navigation cards, for\ninstance — rather than to be delivered as a clickable link by itself.\n\n## Deleting a linked-to experience\n\nAn experience that's targeted by a Link (or an Experience Reference field) can't be deleted while that\nlink exists — you'll see the same \"this can't be deleted, here's what's using it\" message you'd get\ntrying to delete a Component that's still referenced elsewhere.\n"
|
|
45
45
|
},
|
|
46
46
|
{
|
|
47
47
|
"slug": "content-modelling",
|
|
48
48
|
"title": "Modelling your content: best practices",
|
|
49
|
-
"body": "# Modelling your content: best practices\r\n\r\nHow to shape Contracts, Templates and Components so a site is easy to build, easy to change and hard to break. It applies whether you model in Content, through the API, or as code, and it is the model the starter kit follows. Read it before you create anything, and read [Building a content model through the API](agent-authoring.md) for the mechanics.\r\n\r\n## The one idea\r\n\r\n**A Contract holds what is said. A Template holds how it is shown.**\r\n\r\n- A **Contract** has editorial fields only: a heading, a body, an image, a link, a label. Nothing about width, colour, columns, emphasis or order of appearance.\r\n- A **Template** says how a Contract is drawn, and owns a **settings Contract** for every choice that belongs to a *place*: width, background, appearance, layout, a card's emphasis, a banner's tone, a grid's columns, how an accordion opens.\r\n- A **presentation** is the pair in use: a Template, its settings, and a Component. The same Component can appear on many pages, each with its own settings, so it looks or behaves differently in each, and the words live in one place.\r\n\r\nIf you catch yourself adding \"layout\", \"width\" or \"variant\" to a content Contract, it belongs in a Template's settings.\r\n\r\n## Choose the right kind of field\r\n\r\n| You want | Use | Why |\r\n|---|---|---|\r\n| A hero or a list of sections on a page | A **presentation** field, with the Templates it accepts | An editor picks how it is drawn, sets the choices for that place, and supplies the content |\r\n| A part with no life of its own (a button inside a hero, a tab's label) | An **inline** component | Nothing else can point at it, and it is deleted with what holds it |\r\n| A thing reused across pages (a testimonial, a venue) | A **reference** to a Component | One edit changes it everywhere |\r\n| One of a closed set of choices (a theme, a tone) | A **category** from a group | A renderer maps the key; an organization can rename or extend the values |\r\n| Media | A reference to an **Assets** item | The media library owns files, not Content |\r\n\r\nPrefer a presentation field over a component field whenever the thing is *drawn* on a page. A component field gives the editor no place to say how.\r\n\r\n## Templates and Contracts\r\n\r\n- **One Template per Contract by default.** A Template may also support a Contract another Template supports. That is the right tool when the *same* content needs two genuinely different presentations (a statement and a feature over the same heading, body, media and links): keep the Contract generic and add a Template, instead of copying the Contract.\r\n- A Template can list several supported Contracts, so a generic abstract parent (\"heading, body, media, links\") can serve one Template for every Contract beneath it.\r\n- **A renderer is chosen by Template, never by Contract.** That is what makes the many-to-one case work, and what makes a container reusable: it hands each item to the same dispatch the page uses.\r\n- **A Contract has one parent.** Shared settings are therefore a chain, not a mix: a base for sections (width, background, appearance, anchor), a base for grid cells that extends it (adds span), then each Template's own. Model the chain you need; you cannot inherit two bases.\r\n- Make a shared base **abstract** so it is never placed on its own.\r\n\r\n## Containers are components, not special cases\r\n\r\nTabs, accordions, carousels and grids hold *other presentations*. Model them as higher-order components:\r\n\r\n- The container has an **inline list of item Contracts**. An item is a **label** (content, localizable) plus an **enumerable presentation field** limited to the Templates suitable inside it.\r\n- A whole FAQ is then one Component you can reuse on every page that needs it.\r\n- **How a container behaves** (one drawer open at a time or independent, which start open, how many columns) is a **setting of its Template**, not content. The same Component can behave differently wherever it is used.\r\n- A container accepts **leaf Templates only**. Never let a container accept itself or another container: Contracts and Templates would depend on each other in a loop and cannot be installed in order.\r\n- The one exception is a **grouping** container, a heading over a list of presentations (the kit's Group). It may hold the other containers (a heading over a grid, over an accordion), and it must never hold itself, so there is still no loop. Give it its own settings for width, background, appearance, spacing and alignment, so one appearance and one spacing govern a heading and what it introduces, and a presentation inside can still choose its own appearance.\r\n\r\n## Site-wide presentations: a header and a footer\r\n\r\nA presentation can be delivered only as a page at a path or as a **field of another document**, never alone by id. So something every page shares (a header, a footer) is a presentation held by a small **standalone Component** with a fixed external id. The app fetches that Component by its id, once per session, and draws the two presentations through the same renderers as everything else, so each still has a Template and its own settings and a host can replace either by registering its own renderer. Do not make them page nodes: a node is a public route, appears in the site tree and in its navigation, and needs excluding from search. Publish the holder as its own root, because no page refers to it, and let a half that is not published draw nothing so a site without one is unchanged.\r\n\r\n## Allow-lists\r\n\r\n- A presentation field names the Templates it accepts (`allowedTemplateIds`); a component field names its Contracts and modes. **Unset means anything. An empty list means nothing.** Say which you mean, and give an editor a clear control to switch.\r\n- Prefer an **explicit list** for a field with a clear purpose (a hero accepts the Hero Template only; sections never accept the Hero or the page itself). The cost is that a Template you add later is not offered until you add it to the list, which is a deliberate step, not a surprise.\r\n- Leave a field **open** only when anything really is valid.\r\n\r\n## Settings and vocabularies\r\n\r\n- Put every closed choice in a **category group**, never free text, so a renderer can map a key and an organization can edit the values. A category key is what a renderer maps, so **never rename a key**.\r\n- A category field takes **no default**: an unset choice means \"the renderer's default\". When a nested part should follow its parent, add an explicit **inherit** value to the group and treat it, and an unset value, as \"the parent's\". A renderer can then cascade it (an appearance on a section reaches everything inside it, and a nested part that chooses its own overrides it).\r\n- Keep a theme or any page-wide look in the **page Template's settings**, so the same page Component can be drawn differently.\r\n- Keep identifiers and settings **non-localizable**; make prose (headings, body, labels) **localizable**.\r\n\r\n## Naming\r\n\r\n- Field ids are **kebab-case** (`primary-action`, `meta-title`). A field id is a property name in every delivered document, a path in filters and ordering, and a key in queries, and those accept kebab-case only. A model that ships camelCase ids is uneditable later.\r\n- Give everything you ship a **prefix** so a customer's own keys can never collide with it. Do not shadow keys that other apps own (the Assets Contracts).\r\n- Name an editor-built page an **experience**, and avoid the word \"page\" in keys: the same content can be a page, a section of one, or an email.\r\n\r\n## Building a renderer\r\n\r\n- Register one renderer per **Template** in the SDK's renderer map: `{ ...kitRenderers, 'my-template': MyRenderer }`. A Template with no renderer shows the host's fallback and never breaks the page.\r\n- A renderer receives the Template, its **settings** and the Component's **content**. Draw inside the shared frame so the Template's width, background, anchor and appearance apply, and so your Template joins the appearance cascade.\r\n- Read a category by its **key**, with a fallback for a key you do not know, so a value an organization adds degrades to the default rather than breaking the page.\r\n- Test against a **real delivery response** (install the model, publish, read it back), not one you wrote by hand: a hand-written fixture can pass while the real server sends something else.\r\n\r\n## Shipping a model to others\r\n\r\nIf you distribute a model (a starter kit, a template for clients), treat it like an API:\r\n\r\n- **Semver.** A change to a shipped Contract or Template's shape is a **major** version. Within a major version, mark things deprecated and leave them in place.\r\n- **Never mix a new major version into an older install.** Give each major version a **marker** Contract that exists only in it. An environment that holds some of the model but not the marker holds an earlier version: refuse the install, write nothing, and leave the existing copy exactly as it is.\r\n- Install the model into **two organizations in one database** in a test: ids that the model carries must be rewritten per organization.\r\n- **Save every Contract unchanged** through the real save rules after installing it. An import writes without asking those rules, so a model can install cleanly and still be impossible to edit.\r\n- Give people a **migration note** with every breaking release, even if the answer is \"install into a new environment\".\r\n\r\n## A checklist\r\n\r\n1. Does every Contract hold only editorial content?\r\n2. Is every placement, appearance or behaviour choice a setting of a Template?\r\n3. Is every closed choice a category with no default, and every nested follow-the-parent choice an `inherit`?\r\n4. Does every presentation field name the Templates it accepts, and do containers accept leaf Templates only?\r\n5. Are all field ids kebab-case and all prose localizable?\r\n6. Is there a renderer for every Template, registered by Template?\r\n7. If you ship it: is there a major-version marker, a changelog, and a test that installs it twice and saves every Contract?\r\n"
|
|
49
|
+
"body": "# Modelling your content: best practices\n\nHow to shape Contracts, Templates and Components so a site is easy to build, easy to change and hard to break. It applies whether you model in Content, through the API, or as code, and it is the model the starter kit follows. Read it before you create anything, and read [Building a content model through the API](agent-authoring.md) for the mechanics.\n\n## The one idea\n\n**A Contract holds what is said. A Template holds how it is shown.**\n\n- A **Contract** has editorial fields only: a heading, a body, an image, a link, a label. Nothing about width, colour, columns, emphasis or order of appearance.\n- A **Template** says how a Contract is drawn, and owns a **settings Contract** for every choice that belongs to a *place*: width, background, appearance, layout, a card's emphasis, a banner's tone, a grid's columns, how an accordion opens.\n- A **presentation** is the pair in use: a Template, its settings, and a Component. The same Component can appear on many pages, each with its own settings, so it looks or behaves differently in each, and the words live in one place.\n\nIf you catch yourself adding \"layout\", \"width\" or \"variant\" to a content Contract, it belongs in a Template's settings.\n\n## Choose the right kind of field\n\n| You want | Use | Why |\n|---|---|---|\n| A hero or a list of sections on a page | A **presentation** field, with the Templates it accepts | An editor picks how it is drawn, sets the choices for that place, and supplies the content |\n| A part with no life of its own (a button inside a hero, a tab's label) | An **inline** component | Nothing else can point at it, and it is deleted with what holds it |\n| A thing reused across pages (a testimonial, a venue) | A **reference** to a Component | One edit changes it everywhere |\n| One of a closed set of choices (a theme, a tone) | A **category** from a group | A renderer maps the key; an organization can rename or extend the values |\n| Media | A reference to an **Assets** item | The media library owns files, not Content |\n\nPrefer a presentation field over a component field whenever the thing is *drawn* on a page. A component field gives the editor no place to say how.\n\n## Templates and Contracts\n\n- **One Template per Contract by default.** A Template may also support a Contract another Template supports. That is the right tool when the *same* content needs two genuinely different presentations (a statement and a feature over the same heading, body, media and links): keep the Contract generic and add a Template, instead of copying the Contract.\n- A Template can list several supported Contracts, so a generic abstract parent (\"heading, body, media, links\") can serve one Template for every Contract beneath it.\n- **A renderer is chosen by Template, never by Contract.** That is what makes the many-to-one case work, and what makes a container reusable: it hands each item to the same dispatch the page uses.\n- **A Contract has one parent.** Shared settings are therefore a chain, not a mix: a base for sections (width, background, appearance, anchor), a base for grid cells that extends it (adds span), then each Template's own. Model the chain you need; you cannot inherit two bases.\n- Make a shared base **abstract** so it is never placed on its own.\n\n## Containers are components, not special cases\n\nTabs, accordions, carousels and grids hold *other presentations*. Model them as higher-order components:\n\n- The container has an **inline list of item Contracts**. An item is a **label** (content, localizable) plus an **enumerable presentation field** limited to the Templates suitable inside it.\n- A whole FAQ is then one Component you can reuse on every page that needs it.\n- **How a container behaves** (one drawer open at a time or independent, which start open, how many columns) is a **setting of its Template**, not content. The same Component can behave differently wherever it is used.\n- A container accepts **leaf Templates only**. Never let a container accept itself or another container: Contracts and Templates would depend on each other in a loop and cannot be installed in order.\n- The one exception is a **grouping** container, a heading over a list of presentations (the kit's Group). It may hold the other containers (a heading over a grid, over an accordion), and it must never hold itself, so there is still no loop. Give it its own settings for width, background, appearance, spacing and alignment, so one appearance and one spacing govern a heading and what it introduces, and a presentation inside can still choose its own appearance.\n\n## Site-wide presentations: a header and a footer\n\nA presentation can be delivered only as a page at a path or as a **field of another document**, never alone by id. So something every page shares (a header, a footer) is a presentation held by a small **standalone Component** with a fixed external id. The app fetches that Component by its id, once per session, and draws the two presentations through the same renderers as everything else, so each still has a Template and its own settings and a host can replace either by registering its own renderer. Do not make them page nodes: a node is a public route, appears in the site tree and in its navigation, and needs excluding from search. Publish the holder as its own root, because no page refers to it, and let a half that is not published draw nothing so a site without one is unchanged.\n\n## Allow-lists\n\n- A presentation field names the Templates it accepts (`allowedTemplateIds`); a component field names its Contracts and modes. **Unset means anything. An empty list means nothing.** Say which you mean, and give an editor a clear control to switch.\n- Prefer an **explicit list** for a field with a clear purpose (a hero accepts the Hero Template only; sections never accept the Hero or the page itself). The cost is that a Template you add later is not offered until you add it to the list, which is a deliberate step, not a surprise.\n- Leave a field **open** only when anything really is valid.\n\n## Settings and vocabularies\n\n- Put every closed choice in a **category group**, never free text, so a renderer can map a key and an organization can edit the values. A category key is what a renderer maps, so **never rename a key**.\n- A category field takes **no default**: an unset choice means \"the renderer's default\". When a nested part should follow its parent, add an explicit **inherit** value to the group and treat it, and an unset value, as \"the parent's\". A renderer can then cascade it (an appearance on a section reaches everything inside it, and a nested part that chooses its own overrides it).\n- Keep a theme or any page-wide look in the **page Template's settings**, so the same page Component can be drawn differently.\n- Keep identifiers and settings **non-localizable**; make prose (headings, body, labels) **localizable**.\n\n## Naming\n\n- Field ids are **kebab-case** (`primary-action`, `meta-title`). A field id is a property name in every delivered document, a path in filters and ordering, and a key in queries, and those accept kebab-case only. A model that ships camelCase ids is uneditable later.\n- Give everything you ship a **prefix** so a customer's own keys can never collide with it. Do not shadow keys that other apps own (the Assets Contracts).\n- Name an editor-built page an **experience**, and avoid the word \"page\" in keys: the same content can be a page, a section of one, or an email.\n\n## Building a renderer\n\n- Register one renderer per **Template** in the SDK's renderer map: `{ ...kitRenderers, 'my-template': MyRenderer }`. A Template with no renderer shows the host's fallback and never breaks the page.\n- A renderer receives the Template, its **settings** and the Component's **content**. Draw inside the shared frame so the Template's width, background, anchor and appearance apply, and so your Template joins the appearance cascade.\n- Read a category by its **key**, with a fallback for a key you do not know, so a value an organization adds degrades to the default rather than breaking the page.\n- Test against a **real delivery response** (install the model, publish, read it back), not one you wrote by hand: a hand-written fixture can pass while the real server sends something else.\n\n## Shipping a model to others\n\nIf you distribute a model (a starter kit, a template for clients), treat it like an API:\n\n- **Semver.** A change to a shipped Contract or Template's shape is a **major** version. Within a major version, mark things deprecated and leave them in place.\n- **Never mix a new major version into an older install.** Give each major version a **marker** Contract that exists only in it. An environment that holds some of the model but not the marker holds an earlier version: refuse the install, write nothing, and leave the existing copy exactly as it is.\n- Install the model into **two organizations in one database** in a test: ids that the model carries must be rewritten per organization.\n- **Save every Contract unchanged** through the real save rules after installing it. An import writes without asking those rules, so a model can install cleanly and still be impossible to edit.\n- Give people a **migration note** with every breaking release, even if the answer is \"install into a new environment\".\n\n## A checklist\n\n1. Does every Contract hold only editorial content?\n2. Is every placement, appearance or behaviour choice a setting of a Template?\n3. Is every closed choice a category with no default, and every nested follow-the-parent choice an `inherit`?\n4. Does every presentation field name the Templates it accepts, and do containers accept leaf Templates only?\n5. Are all field ids kebab-case and all prose localizable?\n6. Is there a renderer for every Template, registered by Template?\n7. If you ship it: is there a major-version marker, a changelog, and a test that installs it twice and saves every Contract?\n"
|
|
50
50
|
},
|
|
51
51
|
{
|
|
52
52
|
"slug": "content-personalization",
|
|
53
53
|
"title": "Personalization & RichText",
|
|
54
|
-
"body": "# Personalization & RichText\
|
|
54
|
+
"body": "# Personalization & RichText\n\nShow different content to different visitors, and write flowing rich-text content that can weave\nin references, presentations, and personalized paragraphs — all without leaving one continuous\nwriting surface.\n\n## The three ways to personalize\n\nPick the smallest mechanism that does the job:\n\n- **Whole-value variants** — a field whose entire value changes by audience (e.g. a headline that\n reads differently for returning customers). Turn on **Personalizable** for the field in the\n Contract builder.\n- **Personalized paragraphs** — inside a RichText field, swap out one phrase or section while the\n rest of the document stays the same. Insert a **Personalized** embed inline.\n- **Inline tokens** — drop a single dynamic word or phrase into an otherwise-fixed, translatable\n sentence (e.g. \"Welcome back, {{ctx.firstName}}!\"). Turn on **Allow token injection** for the\n field.\n\nDon't split a sentence into separate fragments just to swap one word in the middle — that breaks\ntranslation, since a translator can no longer reorder the sentence. Use a token instead.\n\n## Audiences\n\nAn audience is a named, reusable group of visitors — \"returning customers,\" \"on the enterprise\nplan,\" and so on — that you reference from any number of variants. Audiences are defined in the\nAudience app, not in Content: it owns the rule that decides who is in one. Content only lists them,\nso a variant can name one, and remembers which audience each variant names, by its id (so renaming\nan audience never breaks a variant).\n\nYour site decides, for each visitor, which audiences they are in — it asks Audience and passes the\nanswer along when it asks Content for a page. A variant is shown when the visitor's list includes\nits audience.\n\nAn audience can't be deleted in the Audience app while any variant still references it — you'll see\nwhere it is used if you try.\n\n## Adding a whole-value variant\n\nIn the Contract builder, mark a field **Personalizable**. In the Component editor, that field looks\njust like any other field of its type — the value you see and edit is the **default**, what every\nvisitor gets unless a variant applies — with a small **Personalize** button (the people icon) next\nto its label, the same way a localizable field has a translations button there. Click it to open\nthe personalization panel: the default plus an **Add variant** button. Each variant picks an\naudience and its own value; the first variant whose audience matches the visitor wins, otherwise\nthe default is shown. Reorder variants (the up/down arrows) to change which one takes priority when\nmore than one could match. Click the button again to fold the panel away; a field that has\nvariants opens with the panel showing and keeps its button highlighted so you can always tell it's\npersonalized. The button is greyed out, with an explanation on hover, until your organization has\nat least one audience to personalize for.\n\n## Writing RichText content\n\nA RichText field is one continuous writing surface — a single markdown editor, not a stack of\nseparately-inserted blocks. Write your prose directly, then embed the other kinds of content\n**inline**, mid-sentence, wherever they belong:\n\n- **Presentation** — embed a fully-presented piece of content (a Template + Component pairing). This\n is the right choice for embedding another piece of content — its Template tells the delivery\n consumer how to render it, which a bare Reference can't. Presentation always sits on its own\n paragraph, wherever your cursor was when you inserted it — since it's typically rendered as its\n own block (a card, a video, and so on), it can't sit mid-sentence. When you bind it, you can\n either pick an existing Component (**Browse existing**) or give the embed its own content with\n **Create inline** — the same choice a Presentation field offers. Inline content lives only inside\n this one embed: nothing else can reference or reuse it, which is exactly what you want for a\n one-off block, and exactly what you don't for something that appears on several pages.\n- **Reference** *(deprecated for new use)* — bind to another piece of content with no rendering\n information attached. New reference embeds aren't offered in the Embed picker; use Presentation\n instead. An already-existing reference embed keeps working and can still be edited.\n- **Personalized** — swap one phrase or section by audience, exactly like a whole-value variant,\n but scoped to just that spot in the sentence instead of the whole field. You can't nest a\n personalized embed inside another one.\n\nSee \"Embedding a reference, presentation, or personalized value inline\" below for how. Raw HTML\nisn't allowed in the markdown itself (this keeps your content usable everywhere it might be\npublished, not just on a web page). Deleting a piece of content that's referenced anywhere in a\nRichText field — even inside a personalized variant that isn't currently winning for anyone — is\nblocked, the same as any other reference.\n\nIf a field allows multiple values (its **Multiple values** setting is on), you'll see several\nindependent editors stacked with **Add**/**Remove** controls — the same multiple-values mechanism\nevery other field type uses, not something specific to RichText.\n\n### The markdown editor\n\nThe editor is a real editor, not a plain text box: a toolbar for **Bold**, *Italic*,\nStrikethrough, Inline code, Code block, Blockquote, Bullet/Ordered list, Link, Image, Table, and\nDivider, plus syntax-aware highlighting as you type. A Contract author can restrict which of these\na field allows (e.g. plain prose only — no tables, no headings) from the field's settings in the\nContract builder; a restricted button just doesn't appear, and typing the construct anyway (or\npasting it in) shows a wavy underline naming what's disabled. Saving still enforces the same\nrestriction even if you work around the underline — it's a heads-up, not a lock.\n\nA preview pane shows how your prose will actually render, side-by-side by default. A Contract\nauthor can instead make it toggle-on-demand (a **Show preview** button) or turn it off entirely,\nfrom the same field settings.\n\n### Embedding a presentation or personalized value inline\n\nEmbed a Presentation or Personalized value **inline**, mid-sentence — \"Our flagship plan pairs\nwell with *[this add-on]*, available through the end of the month.\" Click **Embed** in the\nmarkdown toolbar, pick a kind, and it appears as a small pill right where your cursor was.\n(Reference doesn't appear in this picker — it's deprecated for new inline use, see above; a pill\nfor one already placed before the deprecation still opens and edits normally.)\nClick the pill to bind it to a Component (or configure its Template, or its audience variants, for\na Presentation/Personalized embed) in a panel that opens below the editor. Deleting the pill (select\nit and press Delete/Backspace, or use the panel's own remove button) removes the embedded content\ntoo. A Contract author can restrict which kinds are embeddable, from the field's settings. An\ninline embed delete-blocks its target exactly like any other reference.\n\n## Inline tokens\n\nTurn on **Allow token injection** on a text field (or on markdown inside RichText) to use\n`{{ctx.property}}` or `{{ctx.property | fallback text}}` inside your writing. At delivery time,\n`property` is filled in from whatever context the request carries; if it's missing, the fallback\ntext is used instead (or nothing, if you didn't give one). Tokens only work on fields where you've\nexplicitly turned this on — anywhere else, `{{` is treated as a typo and blocked when you try to\nsave.\n\n## Preview as context\n\nWhile editing a Component (or an Experience node), select **Edit in context…** to see exactly what a\nspecific visitor would see — before you save anything. Choose a locale, tick the audiences you want\nto simulate (as if your site had put the visitor in them), and add any other properties by hand, then **Resolve**. The preview reflects your\ncurrent unsaved edits, using the exact same logic that runs at delivery time — what you see is\nwhat will actually be served.\n\n## How this reaches visitors\n\nContent you publish stays personalization-agnostic — publishing never resolves a variant for you,\nso changing who is in an audience, in the Audience app, changes what visitors see immediately, with no\nneed to republish anything. See [publishing.md](publishing.md) for the publish lifecycle itself,\n[content-providers.md](content-providers.md) for how external content fits alongside your own, and\n[content-environments.md](content-environments.md) if your organization authors in more than one\nenvironment — audiences are the exception: they belong to your organization, not to one authoring\nenvironment.\n"
|
|
55
55
|
},
|
|
56
56
|
{
|
|
57
57
|
"slug": "content-providers",
|
|
58
58
|
"title": "Content providers",
|
|
59
|
-
"body": "# Content providers\r\n\r\nContent providers let you bring in read-only content from an external system — a product catalog,\r\na digital asset manager, anything a plugin has been built for — so it sits alongside your own\r\nComponents everywhere you'd normally reference one: Reference fields, Presentation bindings,\r\npublished pages.\r\n\r\n## Registering a provider\r\n\r\nOpen **Plugins** under **Settings** in the app navigation, then select **Add plugin**. A content provider is one *type* of plugin; the **Type** list is where you choose it. Adding requires a plugin to\r\nalready be **activated** for your organization (an administrator does this from Hub's plugin\r\nsettings first — this page just registers an *instance* of an already-activated plugin).\r\n\r\n1. Choose **Content provider** as the **Type**, then the plugin from the **Plugin** dropdown.\r\n2. Give it a **name**, which is its **provider key** — a short, lowercase, hyphenated name (e.g. `example-products`).\r\n This becomes part of every reference stored against items from this provider, so **choose it\r\n once and don't expect to rename it later**; changing your mind means removing the plugin and\r\n adding it again under a new key.\r\n3. Fill in whatever configuration the plugin asks for — this varies per plugin, and any field\r\n marked sensitive (an API key, say) is write-only: once saved, you'll only ever see that it's\r\n set, never the value itself.\r\n4. Set a **cache TTL** — how long (in seconds) a fetched item is reused before Content checks the\r\n external system again when serving published content. Lower values mean fresher data with more\r\n load on the external system; higher values mean better performance but slower-to-appear\r\n changes.\r\n5. Select **Add plugin**. Content contacts the provider and pulls in the Contracts (content types)\r\n it describes — you'll see them show up in the Contract library, badged with the provider's\r\n name.\r\n\r\nIf your organization authors in more than one environment and a provider is already registered in\r\none of them, use **Copy from another environment** instead of registering from scratch — pick the\r\nsource environment and the provider key, and its full configuration (including anything sensitive)\r\ncomes along without you re-entering it. See [content-environments.md](content-environments.md).\r\n\r\n## A provider hosted outside ebitex\r\n\r\nA provider does not have to be built into ebitex. A developer can host one as a small web service and give you its address. An administrator adds it in Hub: open **Plugins**, choose **Add by address**, paste the address, read what Hub shows about it and add it. Once it is added it appears in the **Plugin** list here, and you register it exactly as above: its own settings are the configuration it asks for.\r\n\r\nA provider like this is read-only and is only ever sent what it needs to answer: the item you are looking up or the words you searched for, and its own settings. It is never sent a visitor's details. If it is slow or unreachable, its items show as unavailable and your pages still load.\r\n\r\nAn administrator can turn it off in Hub. Its items then show as unavailable, nothing is deleted, and they return when it is turned back on. It cannot be removed while a registration here still uses it: remove the registration first.\r\n\r\n## Using provider content\r\n\r\nWherever you can pick a Component — a Reference field, or a Presentation's bound Component — the\r\npicker now shows a row of tabs: **Core** (your own content) plus one tab per registered provider.\r\nSwitch tabs to browse or search that provider's items; not every provider supports search, in\r\nwhich case the search box is disabled for that tab. Once picked, an external item behaves like any\r\nother reference: you can still add your own decoration on top of it (a headline, a promotional\r\nlabel — whatever the provider's Contract declares as an editable-here field) without touching the\r\nexternal system at all.\r\n\r\nIf an external item is later removed on the provider's side, or the provider becomes temporarily\r\nunreachable, the reference shows as unresolved rather than blocking your save — you can fix it\r\nwhenever the item (or the provider) is available again.\r\n\r\n## Registering your Assets library\r\n\r\n**The quick way.** If you see a **Connect Assets to Content** card at the top of this page, select\r\n**Connect Assets**. It turns on the Assets plugin for your organization, creates a channel named\r\n\"Content connection\" in Assets with a delivery key, and registers Assets in Content, in one go. The card\r\ntells you first what it will do and which permissions it needs, never changes anything that already\r\nexists, and picks up where it stopped if a step fails. The key is kept inside the registration and is\r\nnever shown, because nothing needs it again. The new channel hides private assets from Content, so only\r\npublic assets appear until you change that on the channel in Assets. The same card appears inside an\r\nimage, video or document picker when Assets isn't connected yet, and the list fills in as soon as it finishes.\r\n\r\n**By hand.** If your organization uses Assets, register it like any other provider and pick **ebitex\r\nAssets** as the plugin. It asks for one thing, an **API key**. Mint that key in Assets under **Settings →\r\nChannels**, on the channel you want this registration to see. What the key can see is decided there,\r\nnot in Content: the channel's folders, its categories, and whether private assets are included. Use a\r\nseparate registration, with its own channel's key, for each site or audience that should see a\r\ndifferent slice of the library.\r\n\r\nOnce registered, a Reference field can be limited to **Image**, **Video** or **Document**, and the\r\npicker's Assets tab shows only those, with a thumbnail and a line such as \"Image · 1600×900 · de\r\nrendition\". A field that lists an Assets type must allow **Reference** (not only inline). See\r\n[Assets](../assets/library.md) for the library itself.\r\n\r\nA change you make in Assets reaches published pages without republishing, after a short delay: the\r\ncache TTL above plus the delivery cache. Deleting an asset turns every reference to it into an\r\nunresolved one.\r\n\r\n## Registering your Data records\r\n\r\nIf your organization uses Data, pick **ebitex Data** as the plugin. It asks for two things: a **delivery key**\r\nand the **partition** that key reads (its key, for example `drakeshead`). Mint the key in Data under **Settings →\r\nDelivery keys**, as a server key. Registering checks that the partition you typed is the one the key reads and\r\nrefuses it otherwise, so a typo cannot point a page at the wrong data.\r\n\r\nEach Data model appears as a read-only Contract with the same fields it has in Data: text, numbers, dates, links,\r\ncategories, rich text, and references to other records, each with the same \"required\" rule and the same limits on which\r\nmodels a reference may point at. The field that carries a record's name in Data is the Contract's title. A Reference\r\nfield can point at one of its records. A change you make in Data reaches published pages after a short delay (the\r\ncache TTL above plus the delivery cache), and a change to a model reaches Content when you refresh the plugin.\r\n\r\n### Describing a value with a Data model\r\n\r\nA Component field that allows **Inline** values can also be described by a Data model. Choose the inline option and\r\npick the model; Content shows its fields with their ordinary controls. The value is stored in your Content page\r\nand nothing is created in Data. Use this when a page needs a one-off value that has the shape of a Data model, and a\r\nData record when the value should be shared and managed on its own.\r\n\r\nA few things work differently from a Content Contract:\r\n\r\n- **Rich text is markdown only.** Embeds (a Component, a Presentation, a personalised variant) and token injection are not\r\n offered, because they need Content to supply a Template or a visitor. Write the prose and links, and leave the rest.\r\n- **The model decides what is valid.** If you change a model in Data and refresh, a value saved earlier is checked\r\n against the new fields the next time you save the page.\r\n- **You cannot remove a model that a page uses.** The refresh stops and lists the pages.\r\n- **It stays where you made it.** A page that holds one cannot be promoted or exported to another environment; remove\r\n the value first, or use a Data record and a reference.\r\n- **Only Data offers this.** A model from another provider, such as an Assets file, can still be referenced but not\r\n used to describe an inline value.\r\n\r\n**A record a page points at cannot be deleted in Data.** The delete is refused and the pages are listed, in every\r\nenvironment of your organization. Remove the reference from those pages first. If Content cannot be checked at that\r\nmoment the delete is refused too, with a message to try again, rather than risk leaving a page with a missing\r\nrecord.\r\n\r\n## Refreshing and removing\r\n\r\nProvider Contracts don't update automatically — select **Refresh Contracts** on a registration\r\nwhenever the external system's own content types have changed. Refreshing can add new Contracts,\r\nupdate existing ones, and remove ones no longer described (removal is blocked if something still\r\ndepends on it — a Reference field constraint or a Template's supported-Contracts list — with the\r\nusages listed so you can address them first).\r\n\r\n**Remove** takes a provider out entirely, along with its synced Contracts — blocked the same\r\nway if any content still references it. Once you confirm, existing references to that provider\r\nkey become permanently unresolved.\r\n\r\n## Permissions\r\n\r\nAdding, editing, refreshing, and removing providers requires its own \"Manage Content\r\nproviders\" permission — ask an Owner or administrator to grant it if the add/refresh/\r\nremove actions aren't available to you. Anyone with organization membership can view\r\nregistered providers and use them in a picker.\r\n"
|
|
59
|
+
"body": "# Content providers\n\nContent providers let you bring in read-only content from an external system — a product catalog,\na digital asset manager, anything a plugin has been built for — so it sits alongside your own\nComponents everywhere you'd normally reference one: Reference fields, Presentation bindings,\npublished pages.\n\n## Registering a provider\n\nOpen **Plugins** under **Settings** in the app navigation, then select **Add plugin**. A content provider is one *type* of plugin; the **Type** list is where you choose it. Adding requires a plugin to\nalready be **activated** for your organization (an administrator does this from Hub's plugin\nsettings first — this page just registers an *instance* of an already-activated plugin).\n\n1. Choose **Content provider** as the **Type**, then the plugin from the **Plugin** dropdown.\n2. Give it a **name**, which is its **provider key** — a short, lowercase, hyphenated name (e.g. `example-products`).\n This becomes part of every reference stored against items from this provider, so **choose it\n once and don't expect to rename it later**; changing your mind means removing the plugin and\n adding it again under a new key.\n3. Fill in whatever configuration the plugin asks for — this varies per plugin, and any field\n marked sensitive (an API key, say) is write-only: once saved, you'll only ever see that it's\n set, never the value itself.\n4. Set a **cache TTL** — how long (in seconds) a fetched item is reused before Content checks the\n external system again when serving published content. Lower values mean fresher data with more\n load on the external system; higher values mean better performance but slower-to-appear\n changes.\n5. Select **Add plugin**. Content contacts the provider and pulls in the Contracts (content types)\n it describes — you'll see them show up in the Contract library, badged with the provider's\n name.\n\nIf your organization authors in more than one environment and a provider is already registered in\none of them, use **Copy from another environment** instead of registering from scratch — pick the\nsource environment and the provider key, and its full configuration (including anything sensitive)\ncomes along without you re-entering it. See [content-environments.md](content-environments.md).\n\n## A provider hosted outside ebitex\n\nA provider does not have to be built into ebitex. A developer can host one as a small web service and give you its address. An administrator adds it in Hub: open **Plugins**, choose **Add by address**, paste the address, read what Hub shows about it and add it. Once it is added it appears in the **Plugin** list here, and you register it exactly as above: its own settings are the configuration it asks for.\n\nA provider like this is read-only and is only ever sent what it needs to answer: the item you are looking up or the words you searched for, and its own settings. It is never sent a visitor's details. If it is slow or unreachable, its items show as unavailable and your pages still load.\n\nAn administrator can turn it off in Hub. Its items then show as unavailable, nothing is deleted, and they return when it is turned back on. It cannot be removed while a registration here still uses it: remove the registration first.\n\n## Using provider content\n\nWherever you can pick a Component — a Reference field, or a Presentation's bound Component — the\npicker now shows a row of tabs: **Core** (your own content) plus one tab per registered provider.\nSwitch tabs to browse or search that provider's items; not every provider supports search, in\nwhich case the search box is disabled for that tab. Once picked, an external item behaves like any\nother reference: you can still add your own decoration on top of it (a headline, a promotional\nlabel — whatever the provider's Contract declares as an editable-here field) without touching the\nexternal system at all.\n\nIf an external item is later removed on the provider's side, or the provider becomes temporarily\nunreachable, the reference shows as unresolved rather than blocking your save — you can fix it\nwhenever the item (or the provider) is available again.\n\n## Registering your Assets library\n\n**The quick way.** If you see a **Connect Assets to Content** card at the top of this page, select\n**Connect Assets**. It turns on the Assets plugin for your organization, creates a channel named\n\"Content connection\" in Assets with a delivery key, and registers Assets in Content, in one go. The card\ntells you first what it will do and which permissions it needs, never changes anything that already\nexists, and picks up where it stopped if a step fails. The key is kept inside the registration and is\nnever shown, because nothing needs it again. The new channel hides private assets from Content, so only\npublic assets appear until you change that on the channel in Assets. The same card appears inside an\nimage, video or document picker when Assets isn't connected yet, and the list fills in as soon as it finishes.\n\n**By hand.** If your organization uses Assets, register it like any other provider and pick **ebitex\nAssets** as the plugin. It asks for one thing, an **API key**. Mint that key in Assets under **Settings →\nChannels**, on the channel you want this registration to see. What the key can see is decided there,\nnot in Content: the channel's folders, its categories, and whether private assets are included. Use a\nseparate registration, with its own channel's key, for each site or audience that should see a\ndifferent slice of the library.\n\nOnce registered, a Reference field can be limited to **Image**, **Video** or **Document**, and the\npicker's Assets tab shows only those, with a thumbnail and a line such as \"Image · 1600×900 · de\nrendition\". A field that lists an Assets type must allow **Reference** (not only inline). See\n[Assets](../assets/library.md) for the library itself.\n\nA change you make in Assets reaches published pages without republishing, after a short delay: the\ncache TTL above plus the delivery cache. Deleting an asset turns every reference to it into an\nunresolved one.\n\n## Registering your Data records\n\nIf your organization uses Data, pick **ebitex Data** as the plugin. It asks for two things: a **delivery key**\nand the **partition** that key reads (its key, for example `drakeshead`). Mint the key in Data under **Settings →\nDelivery keys**, as a server key. Registering checks that the partition you typed is the one the key reads and\nrefuses it otherwise, so a typo cannot point a page at the wrong data.\n\nEach Data model appears as a read-only Contract with the same fields it has in Data: text, numbers, dates, links,\ncategories, rich text, and references to other records, each with the same \"required\" rule and the same limits on which\nmodels a reference may point at. The field that carries a record's name in Data is the Contract's title. A Reference\nfield can point at one of its records. A change you make in Data reaches published pages after a short delay (the\ncache TTL above plus the delivery cache), and a change to a model reaches Content when you refresh the plugin.\n\n### Describing a value with a Data model\n\nA Component field that allows **Inline** values can also be described by a Data model. Choose the inline option and\npick the model; Content shows its fields with their ordinary controls. The value is stored in your Content page\nand nothing is created in Data. Use this when a page needs a one-off value that has the shape of a Data model, and a\nData record when the value should be shared and managed on its own.\n\nA few things work differently from a Content Contract:\n\n- **Rich text is markdown only.** Embeds (a Component, a Presentation, a personalised variant) and token injection are not\n offered, because they need Content to supply a Template or a visitor. Write the prose and links, and leave the rest.\n- **The model decides what is valid.** If you change a model in Data and refresh, a value saved earlier is checked\n against the new fields the next time you save the page.\n- **You cannot remove a model that a page uses.** The refresh stops and lists the pages.\n- **It stays where you made it.** A page that holds one cannot be promoted or exported to another environment; remove\n the value first, or use a Data record and a reference.\n- **Only Data offers this.** A model from another provider, such as an Assets file, can still be referenced but not\n used to describe an inline value.\n\n**A record a page points at cannot be deleted in Data.** The delete is refused and the pages are listed, in every\nenvironment of your organization. Remove the reference from those pages first. If Content cannot be checked at that\nmoment the delete is refused too, with a message to try again, rather than risk leaving a page with a missing\nrecord.\n\n## Refreshing and removing\n\nProvider Contracts don't update automatically — select **Refresh Contracts** on a registration\nwhenever the external system's own content types have changed. Refreshing can add new Contracts,\nupdate existing ones, and remove ones no longer described (removal is blocked if something still\ndepends on it — a Reference field constraint or a Template's supported-Contracts list — with the\nusages listed so you can address them first).\n\n**Remove** takes a provider out entirely, along with its synced Contracts — blocked the same\nway if any content still references it. Once you confirm, existing references to that provider\nkey become permanently unresolved.\n\n## Permissions\n\nAdding, editing, refreshing, and removing providers requires its own \"Manage Content\nproviders\" permission — ask an Owner or administrator to grant it if the add/refresh/\nremove actions aren't available to you. Anyone with organization membership can view\nregistered providers and use them in a picker.\n"
|
|
60
60
|
},
|
|
61
61
|
{
|
|
62
62
|
"slug": "content-streams",
|
|
63
63
|
"title": "Streams: saved queries as delivery sources",
|
|
64
|
-
"body": "# Streams: saved queries as delivery sources\
|
|
64
|
+
"body": "# Streams: saved queries as delivery sources\n\nA **stream** is a named, saved query over your published content that any site or app can consume\nthrough the Delivery API at a stable address — `…/streams/<key>`. Instead of a consuming page\nhard-coding *which* content it lists and *how*, the stream's definition carries those decisions:\nwhich Contracts it draws from, how items are ordered, what's excluded, how items are shaped, and\nwhich filters callers may use. Editors then re-scope what a listing shows without any deploy —\nedits to a stream apply to the very next request.\n\nFind them under **Deliver → Streams**.\n\n## What a stream defines\n\n- **Source Contracts** — one or more Contracts whose published Components the stream returns.\n Matching includes descendants: choosing an abstract ancestor (say, `web-page`) matches every\n published Component of every Contract built on it.\n- **Order** — a top-level field (like `publish-date`) and a direction. Items without the field\n always sort last.\n- **Projection** — optionally, a named Adapter applied to every item. The consumer then receives\n the Adapter's *output* shape (a flattened \"card\", say) instead of each item's full document,\n which keeps list payloads small. Every source Contract must satisfy the Adapter's input\n Contract; the editor checks this when you save.\n- **Resolve depth** — how deeply each item's own references are expanded, decided here rather\n than by the caller.\n- **Exclusions** — specific Components the stream never returns, whatever the query says.\n- **Declared filters** — the *only* query parameters the delivery endpoint accepts, each with a\n key you choose:\n - a **string** filter matches a top-level field's value exactly (e.g. `filter.author=ada`);\n - a **reference** filter matches items whose field points at a particular Component, given that\n Component's key (e.g. `filter.author=<key>`) — it can also name a field path on the target to\n use as a readable label, so a facet lists author *names* rather than keys;\n - a **date** filter matches a date field by UTC month (e.g. `filter.month=2026-09`), which is\n what a \"browse by month\" archive list is built from;\n - a **category** filter matches classified content, including everything under the given\n category (e.g. `filter.topic=topics/tech`). Scope it to one category group if the Contract has\n more than one category field, or a single facet mixes values from both;\n - a **fullText** filter (at most one per stream) searches all the text of each published item\n (e.g. `filter.q=postgres search`) — this is what powers a site-wide search box.\n\n## Things to know\n\n- Streams read **published** content only, always live — publishing or unpublishing something\n changes stream results immediately, and so does editing the stream or its Adapter's rules.\n- A stream itself is never published or promoted with content; it's configuration, like\n environments or delivery keys. It can be promoted between environments from its row's Promote\n button.\n- Deleting a stream is never blocked — a consumer still calling it simply gets a \"not found\"\n answer. Deleting a *Contract or Adapter a stream uses* is blocked until the stream stops using\n it.\n- Use **Preview** on a stream you're editing to run the real query against a delivery\n environment's published content and see exactly what consumers get.\n"
|
|
65
65
|
},
|
|
66
66
|
{
|
|
67
67
|
"slug": "content-taxonomy",
|
|
68
68
|
"title": "Taxonomy",
|
|
69
|
-
"body": "# Taxonomy\
|
|
69
|
+
"body": "# Taxonomy\n\nOrganize your content with named classification trees — usable both as tags on Components,\nExperience pages, and Contracts (for findability and bulk operations) and as a field type your\nContracts can use directly.\n\n## Where the vocabulary lives\n\nThe category groups and categories themselves — the **vocabulary** — belong to your organization, not\nto Content alone: the same \"Topics\" or \"Regions\" that classify a Component can classify an asset in\nAssets. They are managed in **Hub › Taxonomy** (see the Hub guide), where each group shows where it is\nin use.\n\nContent's own **Taxonomy** page, under **Settings**, answers a different question: **which of the\norganization's groups can editors use in this environment?** A group is only visible here once it has\nbeen added, and other environments — including a sub-tenant's — never see a group nobody added to\nthem. The page has two lists:\n\n- **In this environment** — the groups editors can tag with and pick in Category fields here, with\n how many categories each has and whether it carries a metadata Contract here. **Remove from this\n environment** hides a group from pickers again; it is disabled, with the reason, while anything\n here is still tagged with one of its categories, a Category field value still names one, or a\n Category field on a Contract restricts to the group. Removing never deletes the group, its\n categories, or anything already tagged.\n- **Available to add** — the organization's groups not yet in use here. **Add to this environment**\n makes one usable; optionally give it a metadata document here at the same time (below).\n\nWith nothing added yet, the page shows one message with **Choose groups to add** and **New group**; the longer\nexplanation of how categories are shared is behind **How categories work** under the title.\n\nAdding and removing needs the **Manage Content taxonomy** permission (`content.taxonomy.manage`).\n**New group** creates a group in the organization vocabulary *and* adds it here in one step; because\nit writes the vocabulary it also needs `platform.taxonomy.manage`.\n\n### Editing the tree from Content\n\nBelow the two lists, the page shows the vocabulary for every group added here — the same tree editor\nHub uses. If you hold `platform.taxonomy.manage` you can add, rename, move and delete categories right\nthere; a change applies in every environment and app at once. Without it the tree is read-only, and\neach button says so.\n\n### Missing a group?\n\nIf the group you expect is not in the category picker, it has not been added to this environment.\nSomeone with `content.taxonomy.manage` sees a **Manage groups in this environment** link at the\nbottom of the picker that goes straight to the Taxonomy page; everyone else simply does not see the\ngroup, which is the point.\n\n## CategoryGroups and Categories\n\nA **CategoryGroup** is the root of one tree — \"Topics,\" \"Regions,\" \"Campaigns.\"\n\nA **Category** is one node in a group's tree. Each category has:\n\n- A **key** (used in paths and safe to keep even if you change the display value)\n- A **display value** — localizable, like any other text in the app\n- **Selectable** — turned off, a category becomes a purely structural branch: something you can\n nest other categories under, but never assign to content directly. Use this for organizing\n headings like \"Seating\" that shouldn't themselves be a tag.\n\nA category can be nested under another category in the same group, to any depth. You can't delete\na category (or turn off its Selectable flag) while anything in any app still references it — the\ndialog lists every usage, per app and environment, so you can decouple them first.\n\n### Metadata\n\nWhen adding a group to an environment (or creating one from Content), you can optionally attach a\n**metadata Contract** — the same kind of structure definition you use for content, but describing\nextra information every category in this group should carry *in this environment* (an icon name, a\ncolor, a short blurb). If a group has a metadata Contract here, every category in it gets a\n**Metadata** editor in the tree. Metadata is Content's and per environment: the organization's\nvocabulary carries none, and removing the group from an environment removes its metadata Contract and\ndocuments there.\n\n## Tagging content\n\nOpen any Component (under its **Settings** tab), Experience page, or Contract (under its\n**General** tab) and find the **Categories** panel. **Add tag…** opens a picker scoped to one\ngroup at a time (or a specific group, if the page only allows one); pick any selectable category\nand it's added. Only groups added to the current environment are offered. Tags are separate from\nany Category field value the item's Contract might also have — think of tags as sticky notes for\nfinding and grouping things, not part of the content itself. Tagging a Contract needs the same\npermission that lets you edit the Contract at all; Templates can't be tagged yet.\n\n## Filtering by category\n\nThe Component library has a **Filter by category** control — pick a category and the list narrows\nto everything tagged with it (or a category nested under it). Select several items from a filtered\nlist and use **Publish N selected…** to publish them all together through the usual publish dialog,\nwhich shows the combined set of everything each selected item depends on.\n\nThe Experience page has the same **Filter by category** control on its site tree. Because the tree\nonly loads a branch's children when you expand it, picking a category automatically expands every\nancestor branch needed to reach each matching page, highlights the matches, and dims everything\nelse that's visible without hiding it — so you can still see where a match sits relative to the\nrest of the site. Clearing the filter leaves the tree as you left it.\n\n## Filtering which Contract you pick\n\nWhen adding new content from an Experience page's payload editor — \"New Component\" or \"Create\ninline\" — the Contract picker offers a **Filter by category** button. Pick a category and the\nchoices narrow to Contracts tagged with it; **Clear** brings back the full list. This is a\nconvenience for a large Contract library — it defaults to showing every eligible Contract, and you\ncan always clear the filter to reach one that isn't tagged.\n\n## Using a Category field on a Contract\n\nWhen building a Contract, add a field with type **Category**. In its settings, you can restrict\nwhich CategoryGroup(s) the field accepts — leave it unset (**Any group**) to allow any group, or tick the groups it accepts. Unticking the last group leaves **Nothing allowed**, which is not the same as any group; **Allow any** returns to the default. In the Component\neditor, that field shows a **Choose…** button opening the same category picker; the chosen\ncategory displays as its full path (e.g. `topics/tech/ai`).\n\n## What happens when you rename or move a category\n\nRenaming a category, or moving it to a different parent, updates everywhere it's referenced\nimmediately — in every environment and app, no republishing needed. What *does* require\nrepublishing is a **tag added after publish**: a Component's set of published categories is frozen\nat publish time, exactly like its content. If you tag something new and want that reflected in\ndelivered results, publish it again.\n\n## Promotion and inheritance\n\nThe vocabulary exists in every environment already, so promoting tagged content never copies\ncategories. What rides along is the **group's presence**: promoting something tagged with a group\nnot yet added to the target adds it there (with its metadata Contract, if any), so the tags still\nvalidate.\n\n## External taxonomy\n\nIf your organization has registered a content provider that also supplies taxonomy, its groups and\ncategories appear in the picker and the Taxonomy page alongside your own — marked **synced** and\nread-only. They belong to the environment the provider is registered in rather than to the\norganization vocabulary, and work identically to your own categories everywhere except editing:\nyou can tag content with them and use them in Category fields, but changing them happens on the\nprovider's own side, refreshed the same way its other content is.\n"
|
|
70
70
|
},
|
|
71
71
|
{
|
|
72
72
|
"slug": "content-workflow",
|
|
73
73
|
"title": "Editorial workflow",
|
|
74
|
-
"body": "# Editorial workflow\r\n\r\n> **Undo, leaving and saving over someone else's work:** see [Undo, leaving a page, and when someone else saved first](../general/undo-leaving-and-conflicts.md) (the workflow canvas has an Outline view, Connect to… and keyboard commands).\r\n\r\nA workflow adds a review step in front of publishing: assign one to a folder or a section of your\r\nExperience tree, and content there can't go live until someone carries it through the review states\r\nyou've defined. Nothing changes anywhere you haven't assigned a workflow — publishing works exactly\r\nas it always has.\r\n\r\n## Creating a workflow\r\n\r\nOpen **Workflows** under **Settings** in the app navigation and choose **New workflow**. First pick\r\nthe workflow's **kind** — what this workflow governs. It can't be changed after creation:\r\n\r\n- **Publishing workflow** — governs a Component or page: Draft → your review steps → Approved,\r\n where Approved is the only state publishing is allowed from.\r\n- **Translation workflow** — governs a translation job's proposed values before they're written\r\n into the Component. See [Translation jobs](translation-jobs.md) for how to kick one off and\r\n review its results.\r\n- **Proposal review** — governs content offered from outside your organization, by a form or by\r\n another system, before any of it becomes a Component. See [Proposals](proposals.md).\r\n\r\nA workflow's states come from its kind, and each state's meaning is fixed — shown on the node as\r\nbadges and a one-line description, never as switches you configure:\r\n\r\n- **Anchor states** (marked STATE · ANCHOR) are placed for you and can't be deleted or renamed —\r\n for a publishing workflow, **Draft** (where authors work freely) and **Approved** (locked, and\r\n the one publishable state).\r\n- **Step templates** are the states you add yourself, as many as you need: a **Review step**\r\n (content is locked while the reviewer decides) or a **Rework step** (back with the author,\r\n editable again). The name is yours — add two Review steps called \"Editorial review\" and \"Legal\r\n review\" for a two-stage approval, each with its own approver role on its transition.\r\n\r\nGive the workflow a name, then wire the graph:\r\n\r\n- **Add a step**: **+ Add node**, pick a step template, and type its name on the node.\r\n- **Connect two states into a transition**: every state has a small connector on each of its four\r\n sides — click one, then click a connector on the state you want to connect it to (or drag from\r\n one to the other). Click the new transition's label to name it and, optionally, restrict who may\r\n fire it to specific role ids (find a role's id on Hub's Roles page) — leave it blank to let any\r\n organization member fire it. A state without any wiring simply never occurs — there's no way to\r\n reach it. A state whose outcome ends the flow — a translation workflow's **Approved** and\r\n **Rejected** — still shows all four of its connectors, but only to receive an *incoming*\r\n transition: there's nothing to drag or click to start one from it, since it can never be the\r\n source of an outgoing transition. (A publishing workflow has no such state — even **Approved**\r\n can have an outgoing transition, such as a \"Revert to draft\" step, if you wire one.)\r\n- Every state shows how many items are **currently sitting in it** — a live count that updates as\r\n people submit, approve, and reject.\r\n\r\nOpen an existing workflow from the list to edit its graph the same way. A structural change (adding\r\nor removing states or transitions) is blocked while any item has an active review in progress — the\r\nerror explains this; renaming the workflow and editing attached actions (below) are always allowed\r\nregardless.\r\n\r\n## Attaching a Notify or Webhook to a state or transition\r\n\r\nBeyond states and transitions, the canvas offers two action node kinds via the same **+ Add node**\r\nmenu:\r\n\r\n- **Notify** — tell people in the app, by email, or both. Choose **In-app**, **Email** or **In-app and email**, then who to tell: the person who took the\r\n move, or any role or member (`role:<id>` or `user:<id>`). Content items have no owner, so **The\r\n owner** skips them. They get a notification on the bell in the top bar. The attempt is recorded (see Activity log below), and each member chooses how they are emailed. See [Notifications](../hub/notifications.md).\r\n- **Webhook** — a URL your own system controls. This one is real: it actually `POST`s the transition\r\n details to that URL. A URL that resolves to a private or internal address is rejected when you try\r\n to save it. You can also set a **signing secret**, so the system receiving the request can prove it\r\n came from us — see **Making sure a webhook really came from us**, below.\r\n\r\nAttach either one to a **state** (fires the moment an item enters that state — click one of the\r\naction's own connectors, then one of the state's) or to a **transition** (fires the moment that\r\ntransition is used — click the action's connector, then the transition's own label). An action must\r\nbe attached to something before you can save. A Notify or Webhook never blocks the review itself —\r\neven if a webhook fails, the transition still goes through; the failure is just recorded.\r\n\r\n\"Enters that state\" means however it got there, including when nobody was involved. A review that\r\nstarts on its own — a translation job finishing, or a proposal arriving from a form or another\r\nsystem — fires whatever is attached to the state it starts in, and anything attached to a step the\r\nworkflow takes automatically after that. That is usually the point of attaching one: nobody is\r\nwatching when a proposal arrives, which is exactly why you want to be told. A Webhook fired this way\r\nsays so in two places: its event type is `content.workflow.runStarted` rather than\r\n`content.workflow.transitioned`, and `\"runStarted\": true` appears in the payload — because there was\r\nno transition and no previous state to name.\r\n\r\n## Making sure a webhook really came from us\r\n\r\nA webhook is an ordinary `POST` to a URL you chose, so anyone who learns that URL could send one.\r\nSetting a **signing secret** on the Webhook node closes that: we sign every request with it, and your\r\nsystem can check the signature before trusting anything in the body.\r\n\r\nLeave the secret blank and requests are sent unsigned, exactly as before — nothing you have already\r\nset up changes.\r\n\r\nThe secret is write-only. Once saved, the node shows **Configured** rather than the value, and we\r\nnever send it back to your browser. To change it, select **Replace** and enter a new one; to stop\r\nsigning, select **Replace** and save with the field empty. Editing anything else about the workflow\r\nleaves the secret alone.\r\n\r\nChanging the destination URL does **not** carry the secret over, deliberately — a different URL is a\r\ndifferent system, and it should get its own secret rather than inheriting one silently.\r\n\r\nEvery request carries two headers:\r\n\r\n```\r\nX-Ebitex-Signature: v1,t=1790000591,s=<signature>\r\nX-Ebitex-Delivery: whd_0123456789abcdef0123456789abcdef\r\n```\r\n\r\nYour system should recompute the signature over the exact bytes it received and compare. The full\r\nrecipe, with a worked example, is on our developer site — see\r\n[developers.ebitex.io](https://developers.ebitex.io). Two things that catch people out: sign the raw\r\nbody you received rather than re-encoding it first, and compare using a constant-time comparison\r\nrather than `==`.\r\n\r\n`X-Ebitex-Delivery` identifies one delivery. If we retry after a failure, the retry carries the same\r\nid, so your system can recognise it as a repeat rather than a second event. Use it to ignore\r\nduplicates.\r\n\r\n## Assigning a workflow to a branch\r\n\r\nOpen a folder's (or an Experience node's) **governance panel** — the same place you manage access\r\nrules — and find the **Editorial workflow** section. Choose a workflow from the dropdown, or:\r\n\r\n- **Inherit from ancestor** — use whatever the nearest parent branch has assigned (or nothing, if\r\n none does). This is the default for every branch.\r\n- **None (explicit)** — opt this branch and everything beneath it out of review, even if a parent\r\n branch has a workflow assigned. Useful for a sub-folder that should publish freely while the rest\r\n of the section stays gated.\r\n\r\n### One assignment per kind\r\n\r\nA branch carries a separate assignment for each kind, so a folder can be gated for publishing,\r\ngated for proposals, and ungoverned for translation all at once. Each has its own picker, and each\r\ninherits down the tree independently:\r\n\r\n- **Editorial workflow** — on folders and on Experience nodes.\r\n- **Proposal review** and **Translation review** — on folders only, since both are resolved from\r\n the folder an item lives in and neither has anything to do with a page's address.\r\n\r\nA kind's picker only appears once you have at least one workflow of that kind, which is why a folder\r\nyou have never used proposals on shows just the one section.\r\n\r\n**What \"none\" means differs by kind**, and each picker says which:\r\n\r\n| Kind | With no workflow assigned |\r\n|---|---|\r\n| Editorial workflow | Content publishes without review |\r\n| Proposal review | Offers to that folder are **refused** — there would be nobody to review them |\r\n| Translation review | Translation jobs apply their translations without review |\r\n\r\n## Submitting and reviewing\r\n\r\nOpen a Component or an Experience node under a governed branch and you'll see its current state. In the\r\nComponent editor it is in the status strip under the name, on the **Content** tab. If it's still in a\r\nnon-publishable state the strip reads **Can't be published yet** and offers the next step right there.\r\n**Publish…** stays available, because the publish panel explains the block and still lets the rest of what you are\r\npublishing go out, but it is no longer the highlighted button and its tooltip gives the reason. The full panel,\r\nwith its comment box and **Cancel run**, is on the **Settings** tab.\r\n\r\nSelect an available transition (e.g. **Submit for review**), optionally add a comment, and confirm.\r\nWhile an item sits in a **Review step** or in **Approved**, its content is locked — what was\r\nreviewed is exactly what publishes. If a reviewer sends it to a **Rework step**, it's editable\r\nagain while the review stays open; the review tracks the version you submitted, and if you edit\r\nduring rework, the panel tells you the item has moved past the reviewed version.\r\n\r\nOnce it reaches a publishable state, **Publish** works as normal — it publishes the reviewed\r\nversion and marks the review complete. If someone edited the item after submission, it will show as\r\n\"Modified since publish\" immediately, since the head and the published version now differ — that's\r\nexpected, not an error.\r\n\r\nA reviewer sees the same panel with **Approve**/**Reject** buttons (only the transitions their role\r\nis allowed to perform are enabled). Rejecting sends it back to the start with the reviewer's comment\r\nattached, and it can be resubmitted. Resubmitting while a review is already in progress starts a\r\nfresh one, pinned to your latest version.\r\n\r\nYou (or anyone with access-management permission) can cancel an in-progress review from the same\r\npanel.\r\n\r\n## Saving and deleting a workflow\r\n\r\nThe bar at the foot of the editor lists what you changed; **Save** applies it and **Discard** drops it.\r\nMoving a node around does not count as a change. Leaving with unsaved changes asks first. **Delete**\r\nasks you to confirm: Components already running keep their current review, and no new review can start.\r\n\r\n## Permissions\r\n\r\nCreating, renaming, and deleting workflow definitions requires its own \"Manage Content workflows\"\r\npermission. Assigning a workflow to a branch is governed by the same permission as access rules\r\n(\"Manage access\"), since it's branch governance, not workflow authoring. Submitting for review\r\nrequires edit access on the branch; approving/rejecting is limited to whichever role(s) the\r\ntransition names (or anyone, if none are named) — an access-management holder can always advance a\r\nstuck review.\r\n\r\n## Activity log\r\n\r\nEvery submission, approval, rejection, and cancellation appears in Hub's Activity log with the\r\nactor and any comment attached — the review trail is part of your organization's audit history.\r\nAttached Notify and Webhook actions appear there too, one entry per attempt: a Webhook shows the URL\r\nand the response it got back (or that it failed); a Notify shows how many people it told\r\n(\"delivered to 2 recipients\") and who it skipped, or \"not delivered\" with the reason.\r\n"
|
|
74
|
+
"body": "# Editorial workflow\n\n> **Undo, leaving and saving over someone else's work:** see [Undo, leaving a page, and when someone else saved first](../general/undo-leaving-and-conflicts.md) (the workflow canvas has an Outline view, Connect to… and keyboard commands).\n\nA workflow adds a review step in front of publishing: assign one to a folder or a section of your\nExperience tree, and content there can't go live until someone carries it through the review states\nyou've defined. Nothing changes anywhere you haven't assigned a workflow — publishing works exactly\nas it always has.\n\n## Creating a workflow\n\nOpen **Workflows** under **Settings** in the app navigation and choose **New workflow**. First pick\nthe workflow's **kind** — what this workflow governs. It can't be changed after creation:\n\n- **Publishing workflow** — governs a Component or page: Draft → your review steps → Approved,\n where Approved is the only state publishing is allowed from.\n- **Translation workflow** — governs a translation job's proposed values before they're written\n into the Component. See [Translation jobs](translation-jobs.md) for how to kick one off and\n review its results.\n- **Proposal review** — governs content offered from outside your organization, by a form or by\n another system, before any of it becomes a Component. See [Proposals](proposals.md).\n\nA workflow's states come from its kind, and each state's meaning is fixed — shown on the node as\nbadges and a one-line description, never as switches you configure:\n\n- **Anchor states** (marked STATE · ANCHOR) are placed for you and can't be deleted or renamed —\n for a publishing workflow, **Draft** (where authors work freely) and **Approved** (locked, and\n the one publishable state).\n- **Step templates** are the states you add yourself, as many as you need: a **Review step**\n (content is locked while the reviewer decides) or a **Rework step** (back with the author,\n editable again). The name is yours — add two Review steps called \"Editorial review\" and \"Legal\n review\" for a two-stage approval, each with its own approver role on its transition.\n\nGive the workflow a name, then wire the graph:\n\n- **Add a step**: **+ Add node**, pick a step template, and type its name on the node.\n- **Connect two states into a transition**: every state has a small connector on each of its four\n sides — click one, then click a connector on the state you want to connect it to (or drag from\n one to the other). Click the new transition's label to name it and, optionally, restrict who may\n fire it to specific role ids (find a role's id on Hub's Roles page) — leave it blank to let any\n organization member fire it. A state without any wiring simply never occurs — there's no way to\n reach it. A state whose outcome ends the flow — a translation workflow's **Approved** and\n **Rejected** — still shows all four of its connectors, but only to receive an *incoming*\n transition: there's nothing to drag or click to start one from it, since it can never be the\n source of an outgoing transition. (A publishing workflow has no such state — even **Approved**\n can have an outgoing transition, such as a \"Revert to draft\" step, if you wire one.)\n- Every state shows how many items are **currently sitting in it** — a live count that updates as\n people submit, approve, and reject.\n\nOpen an existing workflow from the list to edit its graph the same way. A structural change (adding\nor removing states or transitions) is blocked while any item has an active review in progress — the\nerror explains this; renaming the workflow and editing attached actions (below) are always allowed\nregardless.\n\n## Attaching a Notify or Webhook to a state or transition\n\nBeyond states and transitions, the canvas offers two action node kinds via the same **+ Add node**\nmenu:\n\n- **Notify** — tell people in the app, by email, or both. Choose **In-app**, **Email** or **In-app and email**, then who to tell: the person who took the\n move, or any role or member (`role:<id>` or `user:<id>`). Content items have no owner, so **The\n owner** skips them. They get a notification on the bell in the top bar. The attempt is recorded (see Activity log below), and each member chooses how they are emailed. See [Notifications](../hub/notifications.md).\n- **Webhook** — a URL your own system controls. This one is real: it actually `POST`s the transition\n details to that URL. A URL that resolves to a private or internal address is rejected when you try\n to save it. You can also set a **signing secret**, so the system receiving the request can prove it\n came from us — see **Making sure a webhook really came from us**, below.\n\nAttach either one to a **state** (fires the moment an item enters that state — click one of the\naction's own connectors, then one of the state's) or to a **transition** (fires the moment that\ntransition is used — click the action's connector, then the transition's own label). An action must\nbe attached to something before you can save. A Notify or Webhook never blocks the review itself —\neven if a webhook fails, the transition still goes through; the failure is just recorded.\n\n\"Enters that state\" means however it got there, including when nobody was involved. A review that\nstarts on its own — a translation job finishing, or a proposal arriving from a form or another\nsystem — fires whatever is attached to the state it starts in, and anything attached to a step the\nworkflow takes automatically after that. That is usually the point of attaching one: nobody is\nwatching when a proposal arrives, which is exactly why you want to be told. A Webhook fired this way\nsays so in two places: its event type is `content.workflow.runStarted` rather than\n`content.workflow.transitioned`, and `\"runStarted\": true` appears in the payload — because there was\nno transition and no previous state to name.\n\n## Making sure a webhook really came from us\n\nA webhook is an ordinary `POST` to a URL you chose, so anyone who learns that URL could send one.\nSetting a **signing secret** on the Webhook node closes that: we sign every request with it, and your\nsystem can check the signature before trusting anything in the body.\n\nLeave the secret blank and requests are sent unsigned, exactly as before — nothing you have already\nset up changes.\n\nThe secret is write-only. Once saved, the node shows **Configured** rather than the value, and we\nnever send it back to your browser. To change it, select **Replace** and enter a new one; to stop\nsigning, select **Replace** and save with the field empty. Editing anything else about the workflow\nleaves the secret alone.\n\nChanging the destination URL does **not** carry the secret over, deliberately — a different URL is a\ndifferent system, and it should get its own secret rather than inheriting one silently.\n\nEvery request carries two headers:\n\n```\nX-Ebitex-Signature: v1,t=1790000591,s=<signature>\nX-Ebitex-Delivery: whd_0123456789abcdef0123456789abcdef\n```\n\nYour system should recompute the signature over the exact bytes it received and compare. The full\nrecipe, with a worked example, is on our developer site — see\n[developers.ebitex.io](https://developers.ebitex.io). Two things that catch people out: sign the raw\nbody you received rather than re-encoding it first, and compare using a constant-time comparison\nrather than `==`.\n\n`X-Ebitex-Delivery` identifies one delivery. If we retry after a failure, the retry carries the same\nid, so your system can recognise it as a repeat rather than a second event. Use it to ignore\nduplicates.\n\n## Assigning a workflow to a branch\n\nOpen a folder's (or an Experience node's) **governance panel** — the same place you manage access\nrules — and find the **Editorial workflow** section. Choose a workflow from the dropdown, or:\n\n- **Inherit from ancestor** — use whatever the nearest parent branch has assigned (or nothing, if\n none does). This is the default for every branch.\n- **None (explicit)** — opt this branch and everything beneath it out of review, even if a parent\n branch has a workflow assigned. Useful for a sub-folder that should publish freely while the rest\n of the section stays gated.\n\n### One assignment per kind\n\nA branch carries a separate assignment for each kind, so a folder can be gated for publishing,\ngated for proposals, and ungoverned for translation all at once. Each has its own picker, and each\ninherits down the tree independently:\n\n- **Editorial workflow** — on folders and on Experience nodes.\n- **Proposal review** and **Translation review** — on folders only, since both are resolved from\n the folder an item lives in and neither has anything to do with a page's address.\n\nA kind's picker only appears once you have at least one workflow of that kind, which is why a folder\nyou have never used proposals on shows just the one section.\n\n**What \"none\" means differs by kind**, and each picker says which:\n\n| Kind | With no workflow assigned |\n|---|---|\n| Editorial workflow | Content publishes without review |\n| Proposal review | Offers to that folder are **refused** — there would be nobody to review them |\n| Translation review | Translation jobs apply their translations without review |\n\n## Submitting and reviewing\n\nOpen a Component or an Experience node under a governed branch and you'll see its current state. In the\nComponent editor it is in the status strip under the name, on the **Content** tab. If it's still in a\nnon-publishable state the strip reads **Can't be published yet** and offers the next step right there.\n**Publish…** stays available, because the publish panel explains the block and still lets the rest of what you are\npublishing go out, but it is no longer the highlighted button and its tooltip gives the reason. The full panel,\nwith its comment box and **Cancel run**, is on the **Settings** tab.\n\nSelect an available transition (e.g. **Submit for review**), optionally add a comment, and confirm.\nWhile an item sits in a **Review step** or in **Approved**, its content is locked — what was\nreviewed is exactly what publishes. If a reviewer sends it to a **Rework step**, it's editable\nagain while the review stays open; the review tracks the version you submitted, and if you edit\nduring rework, the panel tells you the item has moved past the reviewed version.\n\nOnce it reaches a publishable state, **Publish** works as normal — it publishes the reviewed\nversion and marks the review complete. If someone edited the item after submission, it will show as\n\"Modified since publish\" immediately, since the head and the published version now differ — that's\nexpected, not an error.\n\nA reviewer sees the same panel with **Approve**/**Reject** buttons (only the transitions their role\nis allowed to perform are enabled). Rejecting sends it back to the start with the reviewer's comment\nattached, and it can be resubmitted. Resubmitting while a review is already in progress starts a\nfresh one, pinned to your latest version.\n\nYou (or anyone with access-management permission) can cancel an in-progress review from the same\npanel.\n\n## Saving and deleting a workflow\n\nThe bar at the foot of the editor lists what you changed; **Save** applies it and **Discard** drops it.\nMoving a node around does not count as a change. Leaving with unsaved changes asks first. **Delete**\nasks you to confirm: Components already running keep their current review, and no new review can start.\n\n## Permissions\n\nCreating, renaming, and deleting workflow definitions requires its own \"Manage Content workflows\"\npermission. Assigning a workflow to a branch is governed by the same permission as access rules\n(\"Manage access\"), since it's branch governance, not workflow authoring. Submitting for review\nrequires edit access on the branch; approving/rejecting is limited to whichever role(s) the\ntransition names (or anyone, if none are named) — an access-management holder can always advance a\nstuck review.\n\n## Activity log\n\nEvery submission, approval, rejection, and cancellation appears in Hub's Activity log with the\nactor and any comment attached — the review trail is part of your organization's audit history.\nAttached Notify and Webhook actions appear there too, one entry per attempt: a Webhook shows the URL\nand the response it got back (or that it failed); a Notify shows how many people it told\n(\"delivered to 2 recipients\") and who it skipped, or \"not delivered\" with the reason.\n"
|
|
75
75
|
},
|
|
76
76
|
{
|
|
77
77
|
"slug": "contracts",
|
|
78
78
|
"title": "Modeling content with Contracts",
|
|
79
|
-
"body": "# Modeling content with Contracts\r\n\r\n> **Undo, leaving and saving over someone else's work:** see [Undo, leaving a page, and when someone else saved first](../general/undo-leaving-and-conflicts.md) (Undo and Redo work on fields here).\r\n\r\nContracts define the field structure your content adheres to — think of a\r\nContract as a blueprint (for example \"Article\" or \"Author\") that every\r\nComponent built from it must follow. You need to belong to an organization to\r\nuse it — see [Creating an organization and inviting\r\nteammates](../hub/organizations.md) if you haven't set one up yet.\r\n\r\n## The Contracts list\r\n\r\n**Model > Contracts** lists every Contract with its name, its id (smaller, underneath), whether it is\r\nconcrete or abstract, which Contract it extends, how many fields it has, what it is used as, and when it\r\nlast changed.\r\n\r\n**What a Contract is used for is worked out from how it is used, never set by hand.** The row of buttons above\r\nthe list filters by it, with a count on each, and a Contract can sit in several at once:\r\n\r\n- **Components** — Components have been created from it.\r\n- **Experiences** — a Component of this Contract is the content of a page in your Experience tree.\r\n- **Templates** — it is a Template's own settings Contract. (A Contract a Template merely *supports* is an\r\n ordinary content Contract, so it shows under Components, not here.)\r\n- **Base** — it is abstract, or other Contracts extend it.\r\n- **Not used yet** — nothing references it. This is the clean-up list.\r\n\r\nThe **Used as** column spells it out, for example *Components 17 · Experiences 4*. Search matches a name or an\r\nid, and **Kind** and **Source** narrow further (a Contract can come from a provider, or be inherited from\r\nanother environment; both are read-only here and say so).\r\n\r\nEach row's **⋯** menu offers **Open** (or **View**, for one you can't edit), **Where used** and **Delete…**.\r\nDelete is switched off while anything uses the Contract, and says how many places do. Tick several rows to\r\ndelete them together; it tells you how many of the selection it can actually delete.\r\n\r\n## Creating a Contract\r\n\r\n1. From the Contracts list, select **New Contract**.\r\n2. Switch to the **General** tab. Enter a **Name** — everything else below\r\n fills in from it, so filling it in first saves retyping. **Id** — a\r\n short, URL-safe identifier made of lowercase letters, numbers, and\r\n hyphens — fills in from Name automatically; you can still edit it by\r\n hand before saving.\r\n3. Turn on **Abstract** if this Contract exists only to be extended by\r\n other Contracts, or to constrain what a field is allowed to point at —\r\n an abstract Contract can't be used to create content directly.\r\n4. Optionally choose a **Parent Contract**. Every field the parent\r\n declares is inherited automatically and shown read-only under\r\n \"Inherited fields\" on the **Fields** tab — you can't redefine or hide an\r\n inherited field, only add new ones of your own.\r\n You can also choose **Based on a platform Contract**. A platform Contract is one the product\r\n provides (today, **Unlock page**) and always brings its own fields, read-only and first in the list.\r\n Base a Contract on **Unlock page** to make its Experiences usable as the page visitors see when they may\r\n not read a members-only page (see [Members-only pages](visitor-access.md)). Setting or changing it adds or removes fields,\r\n so it can be a breaking change, and you are asked to confirm when it is.\r\n5. Switch to the **Fields** tab (the default tab). The fields are a list on the left and the\r\n selected field's settings are on the right. Select **Add field** and choose a type from the\r\n searchable list (each type says what it is for); the new field opens for you to name. Then fill in\r\n its Name and Id, change its type with **Change…**, and turn its modifiers on or off (see below).\r\n Repeat for every field the Contract needs; drag a row by its handle to reorder it (or, from the\r\n keyboard, use the **Move up** and **Move down** buttons on the field, or focus the handle, press\r\n Space to pick it up, use the arrow keys to move it, and Space again to drop it), or select\r\n **Delete field** to remove one. Fields inherited from a parent are collected under their own\r\n heading, collapsed; select one to see its settings, read-only. A row with an unresolved error shows\r\n a warning mark, and a failed save selects the first field that needs attention — or, for an error on\r\n the General tab (Name, Id, Parent Contract), switches you back to that tab.\r\n6. A bar at the bottom counts your **unsaved changes** (select it to see each one in words: \"Added the\r\n field Heading\", \"Turned on Mandatory for Body\") and says how saving will land. A change that would\r\n make existing Components fail validation shows **Breaking change** *before* you save; saving it\r\n asks you to confirm and names each reason, because it creates a new *version* (see \"Versions\"\r\n below). **Discard** puts every edit back. Select **Save changes** (or **Create Contract** for a new\r\n one) — the bar is visible from every tab.\r\n\r\n### Asking the assistant to draft one\r\n\r\nIf your organization has the assistant turned on, you can describe a Contract instead of building it field\r\nby field. On the New Contract form, open the assistant (the magenta ebitex-mark icon in the header, beside\r\n**?**) and ask — for example, \"Create me a Contract for a CTA Banner\". It proposes a Contract as a\r\n**Suggested** card listing the name and each field with its type. Nothing is saved until you select\r\n**Accept**, which fills in the form and saves it the same way **Create Contract** does; **Dismiss** discards\r\nit. Either way you can keep editing afterwards. See [Getting help](../general/getting-help.md).\r\n\r\n## Field types and modifiers\r\n\r\nEvery field has a **Field type** (Text, Number, Boolean, Date, Link,\r\nComponent, Blob, Presentation, Rich Text, or Category — Short Text, Long Text,\r\nURL, Reference, Nested, and Experience Reference are deprecated and no longer\r\noffered for new fields, though any field already using one keeps working\r\nunchanged; see \"Text fields\" and \"Component fields\" below) plus up to five\r\nindependent modifiers, each shown as a toggle whose label changes with\r\nits state:\r\n\r\n- **Mandatory / Optional** — required, or not. For a Contextual field,\r\n this only applies where the field is actually used, not on the\r\n Component itself (see \"Contextual fields\" in\r\n [Authoring Components](components.md)).\r\n- **Multiple / Single** — a list of values instead of one.\r\n- **Localized / Same in every locale** — a default value plus per-locale\r\n overrides.\r\n- **Contextual / On the Component** — the value lives where the field is\r\n *used*, not on the Component that declares it — useful for something\r\n like a \"theme\" that should vary by where content is placed, not by the\r\n content itself.\r\n- **Personalized / Same for every audience** — audience-conditioned\r\n variant alternatives — see\r\n [Personalizing content by audience](content-personalization.md).\r\n\r\nSome field types add an extra toggle of their own alongside these five —\r\nfor example, Text and Rich Text both show an **Allow\r\ntoken injection** toggle, since it's specific to text-bearing fields\r\nrather than something every field type needs.\r\n\r\nEach field type has its own extra settings, shown once you pick a type —\r\nfor example, Text has an optional pattern plus\r\nlength limits, all grouped together under **Validation** (a label you\r\nselect to expand, staying expanded automatically whenever something\r\ninside still needs your attention), Component lets you restrict which\r\nContracts are allowed (and, optionally, which of the two modes below), and\r\nBlob lets you restrict file types and maximum size.\r\n\r\n### Date fields\r\n\r\nA **Date** field has a **Kind of value**, which decides what it stores:\r\n\r\n- **Instant (a moment in time)** is the default. It stores one exact moment.\r\n Its **Include time** setting is off to show and edit just a calendar date, or\r\n on to add a time of day. The date or time you enter is shown in your own\r\n local time zone, and switching **Include time** later is a normal (additive)\r\n change, not something that requires a new version.\r\n- **Calendar date (no time zone)** stores a day such as `2026-12-25`, for a\r\n birthday, an anniversary or a \"valid from\" date. It means the same day\r\n everywhere.\r\n- **Time of day (no time zone)** stores a clock time such as `16:00`, for\r\n opening hours or a doors-open time. It means the same time wherever the\r\n viewer is, so keep the place's own time zone in a separate field if it\r\n matters. A time that is after midnight, such as closing at 2 AM, is stored as\r\n `02:00`; the model that uses it decides it means the next morning.\r\n\r\nThe editor shows a date picker for a calendar date and a time picker for a time\r\nof day. Changing the **Kind of value** of a field that already has values\r\nchanges the shape of what is stored, so it is a breaking change: ebitex asks you\r\nto save a new version, and existing values are not converted.\r\n\r\n### Text fields\r\n\r\n**Text** is the one plain-text type. Turn on **Multiple lines** in its\r\nsettings and the editor becomes a larger box that keeps line breaks;\r\nleave it off for a single line such as a title. Either way the stored\r\nvalue is the same plain string, so switching the setting later never\r\nchanges or loses anything already written.\r\n\r\n**Short Text** and **Long Text** are the two types Text replaces. A field\r\nthat already uses one keeps working, but a new field cannot take it. To\r\nmove an existing field over, open it and choose **Convert to Text**: its\r\nsettings carry over unchanged (a Long Text field also becomes **Multiple\r\nlines**), every value already written is kept as it is, and the change\r\ndoes not by itself create a new Contract version.\r\n\r\n### Restricting a field to a fixed list of values\r\n\r\nText, Number, and Date fields can be restricted to a\r\nfixed set of **Allowed values** in their settings — useful for something\r\nlike a status field that should only ever be \"Draft,\" \"In review,\" or\r\n\"Published,\" rather than any free-text string. Leave it empty to allow\r\nany value.\r\n\r\nHow the field is edited then depends on whether it also allows multiple\r\nvalues and how many options you listed: a small list of single-value\r\noptions shows as buttons to pick one of; a longer list shows as a\r\ndropdown; combined with **Multiple**, a small list shows as checkboxes and\r\na longer one as a searchable picker. Narrowing this list later (removing a\r\nvalue that was previously allowed) is a breaking change, since an\r\nexisting Component might already hold it; adding a new value is additive.\r\n\r\n### Picking options from another system\r\n\r\nInstead of typing a fixed list of Allowed values, a Text field can\r\nname a **Choice source** — an activated plugin that supplies the option\r\nlist live, kept automatically in sync with whatever it's connected to.\r\nThe first one, **ebitex Forms**, lists your organization's own published\r\nForms, so you can pick a form by name rather than typing its id — useful\r\nfor a field like \"which form should appear on this page.\" A field can use\r\neither Allowed values or a Choice source, never both.\r\n\r\nOnce a Choice source plugin is activated (in your organization's Settings)\r\nand picked in a field's settings, editing a Component with that field\r\nlooks exactly like a normal fixed-list field: buttons, a dropdown,\r\ncheckboxes, or a searchable picker, depending on how many options there\r\nare. If the source is temporarily unavailable — a misconfigured\r\nconnection, for example — you'll see a short message explaining that, and\r\nthe field falls back to a plain text box so you can still see and edit\r\nwhatever value is already saved; nothing else on the page is blocked from\r\nsaving while that happens.\r\n\r\n### Giving a field a default value\r\n\r\nMost field types — anything other than Component, Presentation, Rich\r\nText, and Category, which all point at other content rather than holding\r\na plain value — can be given a **Default value** in their expanded row.\r\nOnce set, every brand-new Component created from this Contract starts\r\nwith that value already filled in, instead of empty; editing or clearing\r\nthe default afterward never changes a Component that already exists. For a\r\nContextual field, its default becomes the Component's own fallback value —\r\nused whenever a specific placement doesn't override it.\r\n\r\n## Component fields\r\n\r\nA **Component** field holds a reference to another Component, an inline\r\n(embedded) value, or either — decided by whoever is *filling in* the field,\r\nnot fixed when you design the Contract:\r\n\r\n- **Linked** — points at another Component elsewhere in your organization;\r\n the two stay separate, and deleting a Component that's linked elsewhere\r\n is blocked until the link is removed first. Covers both picking an\r\n existing Component and creating a brand-new one to link to.\r\n- **Inline** — embeds another Component's content directly inside; there's\r\n no separate entity to manage, it's just part of the same document. Best\r\n for content that only ever makes sense as part of its parent (for\r\n example, an article's author details).\r\n\r\nIf you want to guarantee only one of these for a given field — say, a\r\n\"related articles\" field that should always link to a reusable Component,\r\nnever an inline one-off — the field's settings offer **Allowed value\r\nmodes**, a checklist of the two options above (at least one must stay\r\nchecked). Leaving both checked (the default) lets whoever fills in the\r\nfield choose either way each time. Either way, **allowedContractIds** lets\r\nyou restrict which Contracts are allowed. The list has three states, and the\r\nbuilder says which one it is in: **Any Contract** (nothing set, so any Contract,\r\nincluding descendants of one you do list), a list of Contracts (exactly those),\r\nand **Nothing allowed** (an empty list: no Contract can be chosen). **Allow any**\r\nclears the list back to the first state, **Allow none** empties it, and removing\r\nthe last Contract from a list leaves **Nothing allowed** rather than silently\r\nallowing everything. The same three states apply to every allow-list in a\r\nfield's settings (Templates, category groups, link kinds and protocols, inline\r\nembed kinds, markdown features and content types). Value modes are the exception:\r\na field must allow at least one, so that list can be left out but never emptied.\r\n\r\nExisting Contracts may still have the older, separate **Reference** and\r\n**Nested** field types — a Reference field is equivalent to a Component\r\nfield restricted to Linked only, and a Nested field to one restricted to\r\nInline only. They keep working exactly as before; a new field just uses\r\nComponent instead.\r\n\r\n## Giving a Contract a title field\r\n\r\nContent built from a Contract needs a human label — the name shown in a site's\r\nnavigation menu, in a breadcrumb trail, and beside each item in a listing.\r\n**Title field** on the **General** tab is where you choose which field that\r\nlabel comes from.\r\n\r\nIt is a picker, not something you type. Choose a field; if the field you chose\r\nholds a nested block, a second dropdown appears so you can choose the field\r\ninside it — up to four levels deep. Only fields a title can actually come from\r\nare offered: text fields as the final choice, and nested blocks as the steps in\r\nbetween.\r\n\r\n**Set it once, on the most general Contract that has the field.** The choice is\r\ninherited, so if your \"Web page\" Contract declares its `title` field, every\r\nContract that extends it — Article, Landing page, and so on — uses the same one\r\nwith nothing more to set up. A Contract that needs a different field can choose\r\nits own, which takes over. When a Contract inherits its title field, the picker\r\nshows it read-only and names the Contract it came from, with **Override** to\r\nchoose a different one and **Clear** to remove it.\r\n\r\nA few notes on what to expect:\r\n\r\n- **It applies from the next publish.** Choosing a title field doesn't change\r\n anything already published — each Component picks it up when it is next\r\n published.\r\n- **Editing the title text is a Component publish.** Change the wording and\r\n republish that Component, and its label updates everywhere it appears. You do\r\n not need to republish the pages that use it.\r\n- **If it can't be resolved, the page's own name is used instead** — its\r\n internal name from Composer. That happens when no Contract in the chain\r\n declares a title field, when the field named no longer exists, or when the\r\n content isn't published. Nothing breaks; you just see the internal name, which\r\n is a good hint that the title field needs attention.\r\n- **A localizable title field is worth choosing.** One value covers every\r\n locale, and each visitor sees theirs.\r\n\r\nIf the same piece of content appears in more than one place and should be named\r\ndifferently at each, make the title field **contextual** — then each page that\r\nuses it supplies its own wording. Bear in mind that a contextual title belongs to\r\nthe page, so changing it means republishing that page rather than the content.\r\n\r\n## Editing fields as a tree\r\n\r\nSome content refers to more of the same kind of content: a dog has a sire and a\r\ndam who are dogs too, a product is built from parts that are products, a person\r\nreports to a person. Building that with one picker per field means creating the\r\nfurthest ancestor first and working back towards the one you actually wanted.\r\n\r\n**Editing layout**, pinned under the fields on the **Fields** tab, changes that. Choose\r\n**Edit as a tree** and the Component editor draws those fields as one tree, where you fill in any\r\nslot directly. It only changes how the fields are edited. The fields, their validation and what is\r\npublished are exactly as before, and it creates no new Contract version, so a change to just the\r\nlayout is saved without a version bump. A preview beside the settings draws the chart or outline you\r\nhave chosen, using your own field names, and the fields in the tree carry an **In tree** chip.\r\nRenaming a field in the tree updates the layout, and removing it, or changing it to a type a tree\r\ncan't use, takes it out of the layout.\r\n\r\nTo set it up:\r\n\r\n1. Give the Contract the fields that point at itself: two or more single-value\r\n Component fields (a sire and a dam), or one list field (parts). Each should\r\n allow the Contract, or a Contract that extends it.\r\n2. On **Fields**, select **Editing layout**, then choose **Edit as a tree**.\r\n3. Tick the fields that make up the tree and choose how many generations (or\r\n levels) to show.\r\n4. Choose whether the same Component may appear more than once.\r\n\r\n**Repeats.** *Allow across branches* lets one Component sit in several places, as\r\nin line-breeding or a part used in two assemblies. *Never* means each Component\r\nmay appear once in the whole tree, which suits an org chart or a taxonomy. If\r\nyou switch to *Never* on content that already repeats, the repeats are kept and\r\nnothing is rewritten; only a new repeat is refused. Either way, something can\r\nnever contain itself.\r\n\r\n**Inheritance.** Like the title field, the choice is inherited. Set it once on the\r\ngeneral Contract (a \"Pedigree dog\") and every Contract that extends it, such as\r\n\"Dog\" and \"Bitch\", edits as a tree. A Contract can choose its own, or choose\r\n*Ordinary fields (do not inherit the tree)* to opt out.\r\n\r\nIf the fields you tick no longer exist or no longer fit, the editor simply shows\r\nthe ordinary fields, so a Contract is never left uneditable.\r\n\r\n## Links to your site\r\n\r\nA Component has no page of its own, so nothing in Content takes you from a\r\nComponent to the page on your site that shows it. **External links** on the\r\n**General** tab adds that. Each link is a button in the Component editor that\r\nopens the page for the Component you are looking at, for example a dog's\r\nprintable pedigree or a blog post on the live site.\r\n\r\nTo add one:\r\n\r\n1. On **General**, under **External links**, choose **Declare links**.\r\n2. Give the link a **Label**, the words on the button.\r\n3. Write the **URL template**. It starts with `{origin}`, `https://` or\r\n `http://`, and can use the Component's own details:\r\n - `{id}` and `{externalId}`: the Component's id and external id.\r\n - `{field:name}`: the value of one of its fields. A field inside an inline\r\n value is written with dots, such as `{field:owner.name}`.\r\n - `{key:sire}`: the **key** of the record a reference field points at, for\r\n a page that is addressed by that key. A litter can link to a pedigree\r\n page with `{origin}/pedigree?sire={key:sire}&dam={key:dam}`. A reference\r\n with nothing chosen, or a value written in by hand rather than chosen\r\n from the records, leaves its place empty, so a litter with an outside dam\r\n still links; the link is switched off only when none of the `{key:}`\r\n fields has a value.\r\n - `{origin}`: the address of the **Site** you choose, always followed by a\r\n `/`. It is how one Contract can point at the right host in every\r\n environment.\r\n4. Choose the **Site** (when you used `{origin}`) and whether the link is\r\n **Enabled** always or **Once published**.\r\n\r\nA live example under the form shows the link built from one of this Contract's\r\nown Components, so you can see it before you save. You can add up to five links.\r\n\r\n**What authors see.** A link that works opens in a new tab. A link that cannot\r\nwork is greyed and says why beside it: *Publish this Component first* for a\r\ndraft, *Needs a value for \"name\"* when a field it uses is empty, or that the Site\r\nhas no host yet. A Component with unpublished changes still has a live page, so\r\nits link works and says it shows the published version.\r\n\r\n**Safe by design.** A value from a field can never change where a link points:\r\nvalues are encoded into one part of the address, and the template's scheme and\r\nhost cannot use fields at all.\r\n\r\n**Nothing else changes.** Links are only shown in the editor. They create no new\r\nContract version, change no Component and appear in nothing your site receives.\r\nLike the tree, they are inherited: a Contract can declare its own, or choose\r\n*No links (do not inherit)*.\r\n\r\n## Versions\r\n\r\nEvery save is classified automatically:\r\n\r\n- **Additive** changes (adding an optional field, loosening a limit, …)\r\n update the Contract's current version in place.\r\n- **Breaking** changes (removing a field, adding a *mandatory* field,\r\n tightening a limit, …) create a new version, leaving the old one intact\r\n so Components already pinned to it keep working.\r\n\r\nThe **History** tab on a Contract's page lists every version and\r\nwhat fields it resolved to. Existing Components aren't forced to update\r\nwhen a Contract changes — see \"The upgrade badge\" in\r\n[Authoring Components](components.md) for how that friction is surfaced\r\nand resolved.\r\n"
|
|
79
|
+
"body": "# Modeling content with Contracts\n\n> **Undo, leaving and saving over someone else's work:** see [Undo, leaving a page, and when someone else saved first](../general/undo-leaving-and-conflicts.md) (Undo and Redo work on fields here).\n\nContracts define the field structure your content adheres to — think of a\nContract as a blueprint (for example \"Article\" or \"Author\") that every\nComponent built from it must follow. You need to belong to an organization to\nuse it — see [Creating an organization and inviting\nteammates](../hub/organizations.md) if you haven't set one up yet.\n\n## The Contracts list\n\n**Model > Contracts** lists every Contract with its name, its id (smaller, underneath), whether it is\nconcrete or abstract, which Contract it extends, how many fields it has, what it is used as, and when it\nlast changed.\n\n**What a Contract is used for is worked out from how it is used, never set by hand.** The row of buttons above\nthe list filters by it, with a count on each, and a Contract can sit in several at once:\n\n- **Components** — Components have been created from it.\n- **Experiences** — a Component of this Contract is the content of a page in your Experience tree.\n- **Templates** — it is a Template's own settings Contract. (A Contract a Template merely *supports* is an\n ordinary content Contract, so it shows under Components, not here.)\n- **Base** — it is abstract, or other Contracts extend it.\n- **Not used yet** — nothing references it. This is the clean-up list.\n\nThe **Used as** column spells it out, for example *Components 17 · Experiences 4*. Search matches a name or an\nid, and **Kind** and **Source** narrow further (a Contract can come from a provider, or be inherited from\nanother environment; both are read-only here and say so).\n\nEach row's **⋯** menu offers **Open** (or **View**, for one you can't edit), **Where used** and **Delete…**.\nDelete is switched off while anything uses the Contract, and says how many places do. Tick several rows to\ndelete them together; it tells you how many of the selection it can actually delete.\n\n## Creating a Contract\n\n1. From the Contracts list, select **New Contract**.\n2. Switch to the **General** tab. Enter a **Name** — everything else below\n fills in from it, so filling it in first saves retyping. **Id** — a\n short, URL-safe identifier made of lowercase letters, numbers, and\n hyphens — fills in from Name automatically; you can still edit it by\n hand before saving.\n3. Turn on **Abstract** if this Contract exists only to be extended by\n other Contracts, or to constrain what a field is allowed to point at —\n an abstract Contract can't be used to create content directly.\n4. Optionally choose a **Parent Contract**. Every field the parent\n declares is inherited automatically and shown read-only under\n \"Inherited fields\" on the **Fields** tab — you can't redefine or hide an\n inherited field, only add new ones of your own.\n You can also choose **Based on a platform Contract**. A platform Contract is one the product\n provides (today, **Unlock page**) and always brings its own fields, read-only and first in the list.\n Base a Contract on **Unlock page** to make its Experiences usable as the page visitors see when they may\n not read a members-only page (see [Members-only pages](visitor-access.md)). Setting or changing it adds or removes fields,\n so it can be a breaking change, and you are asked to confirm when it is.\n5. Switch to the **Fields** tab (the default tab). The fields are a list on the left and the\n selected field's settings are on the right. Select **Add field** and choose a type from the\n searchable list (each type says what it is for); the new field opens for you to name. Then fill in\n its Name and Id, change its type with **Change…**, and turn its modifiers on or off (see below).\n Repeat for every field the Contract needs; drag a row by its handle to reorder it (or, from the\n keyboard, use the **Move up** and **Move down** buttons on the field, or focus the handle, press\n Space to pick it up, use the arrow keys to move it, and Space again to drop it), or select\n **Delete field** to remove one. Fields inherited from a parent are collected under their own\n heading, collapsed; select one to see its settings, read-only. A row with an unresolved error shows\n a warning mark, and a failed save selects the first field that needs attention — or, for an error on\n the General tab (Name, Id, Parent Contract), switches you back to that tab.\n6. A bar at the bottom counts your **unsaved changes** (select it to see each one in words: \"Added the\n field Heading\", \"Turned on Mandatory for Body\") and says how saving will land. A change that would\n make existing Components fail validation shows **Breaking change** *before* you save; saving it\n asks you to confirm and names each reason, because it creates a new *version* (see \"Versions\"\n below). **Discard** puts every edit back. Select **Save changes** (or **Create Contract** for a new\n one) — the bar is visible from every tab.\n\n### Asking the assistant to draft one\n\nIf your organization has the assistant turned on, you can describe a Contract instead of building it field\nby field. On the New Contract form, open the assistant (the magenta ebitex-mark icon in the header, beside\n**?**) and ask — for example, \"Create me a Contract for a CTA Banner\". It proposes a Contract as a\n**Suggested** card listing the name and each field with its type. Nothing is saved until you select\n**Accept**, which fills in the form and saves it the same way **Create Contract** does; **Dismiss** discards\nit. Either way you can keep editing afterwards. See [Getting help](../general/getting-help.md).\n\n## Field types and modifiers\n\nEvery field has a **Field type** (Text, Number, Boolean, Date, Link,\nComponent, Blob, Presentation, Rich Text, or Category — Short Text, Long Text,\nURL, Reference, Nested, and Experience Reference are deprecated and no longer\noffered for new fields, though any field already using one keeps working\nunchanged; see \"Text fields\" and \"Component fields\" below) plus up to five\nindependent modifiers, each shown as a toggle whose label changes with\nits state:\n\n- **Mandatory / Optional** — required, or not. For a Contextual field,\n this only applies where the field is actually used, not on the\n Component itself (see \"Contextual fields\" in\n [Authoring Components](components.md)).\n- **Multiple / Single** — a list of values instead of one.\n- **Localized / Same in every locale** — a default value plus per-locale\n overrides.\n- **Contextual / On the Component** — the value lives where the field is\n *used*, not on the Component that declares it — useful for something\n like a \"theme\" that should vary by where content is placed, not by the\n content itself.\n- **Personalized / Same for every audience** — audience-conditioned\n variant alternatives — see\n [Personalizing content by audience](content-personalization.md).\n\nSome field types add an extra toggle of their own alongside these five —\nfor example, Text and Rich Text both show an **Allow\ntoken injection** toggle, since it's specific to text-bearing fields\nrather than something every field type needs.\n\nEach field type has its own extra settings, shown once you pick a type —\nfor example, Text has an optional pattern plus\nlength limits, all grouped together under **Validation** (a label you\nselect to expand, staying expanded automatically whenever something\ninside still needs your attention), Component lets you restrict which\nContracts are allowed (and, optionally, which of the two modes below), and\nBlob lets you restrict file types and maximum size.\n\n### Date fields\n\nA **Date** field has a **Kind of value**, which decides what it stores:\n\n- **Instant (a moment in time)** is the default. It stores one exact moment.\n Its **Include time** setting is off to show and edit just a calendar date, or\n on to add a time of day. The date or time you enter is shown in your own\n local time zone, and switching **Include time** later is a normal (additive)\n change, not something that requires a new version.\n- **Calendar date (no time zone)** stores a day such as `2026-12-25`, for a\n birthday, an anniversary or a \"valid from\" date. It means the same day\n everywhere.\n- **Time of day (no time zone)** stores a clock time such as `16:00`, for\n opening hours or a doors-open time. It means the same time wherever the\n viewer is, so keep the place's own time zone in a separate field if it\n matters. A time that is after midnight, such as closing at 2 AM, is stored as\n `02:00`; the model that uses it decides it means the next morning.\n\nThe editor shows a date picker for a calendar date and a time picker for a time\nof day. Changing the **Kind of value** of a field that already has values\nchanges the shape of what is stored, so it is a breaking change: ebitex asks you\nto save a new version, and existing values are not converted.\n\n### Text fields\n\n**Text** is the one plain-text type. Turn on **Multiple lines** in its\nsettings and the editor becomes a larger box that keeps line breaks;\nleave it off for a single line such as a title. Either way the stored\nvalue is the same plain string, so switching the setting later never\nchanges or loses anything already written.\n\n**Short Text** and **Long Text** are the two types Text replaces. A field\nthat already uses one keeps working, but a new field cannot take it. To\nmove an existing field over, open it and choose **Convert to Text**: its\nsettings carry over unchanged (a Long Text field also becomes **Multiple\nlines**), every value already written is kept as it is, and the change\ndoes not by itself create a new Contract version.\n\n### Restricting a field to a fixed list of values\n\nText, Number, and Date fields can be restricted to a\nfixed set of **Allowed values** in their settings — useful for something\nlike a status field that should only ever be \"Draft,\" \"In review,\" or\n\"Published,\" rather than any free-text string. Leave it empty to allow\nany value.\n\nHow the field is edited then depends on whether it also allows multiple\nvalues and how many options you listed: a small list of single-value\noptions shows as buttons to pick one of; a longer list shows as a\ndropdown; combined with **Multiple**, a small list shows as checkboxes and\na longer one as a searchable picker. Narrowing this list later (removing a\nvalue that was previously allowed) is a breaking change, since an\nexisting Component might already hold it; adding a new value is additive.\n\n### Picking options from another system\n\nInstead of typing a fixed list of Allowed values, a Text field can\nname a **Choice source** — an activated plugin that supplies the option\nlist live, kept automatically in sync with whatever it's connected to.\nThe first one, **ebitex Forms**, lists your organization's own published\nForms, so you can pick a form by name rather than typing its id — useful\nfor a field like \"which form should appear on this page.\" A field can use\neither Allowed values or a Choice source, never both.\n\nOnce a Choice source plugin is activated (in your organization's Settings)\nand picked in a field's settings, editing a Component with that field\nlooks exactly like a normal fixed-list field: buttons, a dropdown,\ncheckboxes, or a searchable picker, depending on how many options there\nare. If the source is temporarily unavailable — a misconfigured\nconnection, for example — you'll see a short message explaining that, and\nthe field falls back to a plain text box so you can still see and edit\nwhatever value is already saved; nothing else on the page is blocked from\nsaving while that happens.\n\n### Giving a field a default value\n\nMost field types — anything other than Component, Presentation, Rich\nText, and Category, which all point at other content rather than holding\na plain value — can be given a **Default value** in their expanded row.\nOnce set, every brand-new Component created from this Contract starts\nwith that value already filled in, instead of empty; editing or clearing\nthe default afterward never changes a Component that already exists. For a\nContextual field, its default becomes the Component's own fallback value —\nused whenever a specific placement doesn't override it.\n\n## Component fields\n\nA **Component** field holds a reference to another Component, an inline\n(embedded) value, or either — decided by whoever is *filling in* the field,\nnot fixed when you design the Contract:\n\n- **Linked** — points at another Component elsewhere in your organization;\n the two stay separate, and deleting a Component that's linked elsewhere\n is blocked until the link is removed first. Covers both picking an\n existing Component and creating a brand-new one to link to.\n- **Inline** — embeds another Component's content directly inside; there's\n no separate entity to manage, it's just part of the same document. Best\n for content that only ever makes sense as part of its parent (for\n example, an article's author details).\n\nIf you want to guarantee only one of these for a given field — say, a\n\"related articles\" field that should always link to a reusable Component,\nnever an inline one-off — the field's settings offer **Allowed value\nmodes**, a checklist of the two options above (at least one must stay\nchecked). Leaving both checked (the default) lets whoever fills in the\nfield choose either way each time. Either way, **allowedContractIds** lets\nyou restrict which Contracts are allowed. The list has three states, and the\nbuilder says which one it is in: **Any Contract** (nothing set, so any Contract,\nincluding descendants of one you do list), a list of Contracts (exactly those),\nand **Nothing allowed** (an empty list: no Contract can be chosen). **Allow any**\nclears the list back to the first state, **Allow none** empties it, and removing\nthe last Contract from a list leaves **Nothing allowed** rather than silently\nallowing everything. The same three states apply to every allow-list in a\nfield's settings (Templates, category groups, link kinds and protocols, inline\nembed kinds, markdown features and content types). Value modes are the exception:\na field must allow at least one, so that list can be left out but never emptied.\n\nExisting Contracts may still have the older, separate **Reference** and\n**Nested** field types — a Reference field is equivalent to a Component\nfield restricted to Linked only, and a Nested field to one restricted to\nInline only. They keep working exactly as before; a new field just uses\nComponent instead.\n\n## Giving a Contract a title field\n\nContent built from a Contract needs a human label — the name shown in a site's\nnavigation menu, in a breadcrumb trail, and beside each item in a listing.\n**Title field** on the **General** tab is where you choose which field that\nlabel comes from.\n\nIt is a picker, not something you type. Choose a field; if the field you chose\nholds a nested block, a second dropdown appears so you can choose the field\ninside it — up to four levels deep. Only fields a title can actually come from\nare offered: text fields as the final choice, and nested blocks as the steps in\nbetween.\n\n**Set it once, on the most general Contract that has the field.** The choice is\ninherited, so if your \"Web page\" Contract declares its `title` field, every\nContract that extends it — Article, Landing page, and so on — uses the same one\nwith nothing more to set up. A Contract that needs a different field can choose\nits own, which takes over. When a Contract inherits its title field, the picker\nshows it read-only and names the Contract it came from, with **Override** to\nchoose a different one and **Clear** to remove it.\n\nA few notes on what to expect:\n\n- **It applies from the next publish.** Choosing a title field doesn't change\n anything already published — each Component picks it up when it is next\n published.\n- **Editing the title text is a Component publish.** Change the wording and\n republish that Component, and its label updates everywhere it appears. You do\n not need to republish the pages that use it.\n- **If it can't be resolved, the page's own name is used instead** — its\n internal name from Composer. That happens when no Contract in the chain\n declares a title field, when the field named no longer exists, or when the\n content isn't published. Nothing breaks; you just see the internal name, which\n is a good hint that the title field needs attention.\n- **A localizable title field is worth choosing.** One value covers every\n locale, and each visitor sees theirs.\n\nIf the same piece of content appears in more than one place and should be named\ndifferently at each, make the title field **contextual** — then each page that\nuses it supplies its own wording. Bear in mind that a contextual title belongs to\nthe page, so changing it means republishing that page rather than the content.\n\n## Editing fields as a tree\n\nSome content refers to more of the same kind of content: a dog has a sire and a\ndam who are dogs too, a product is built from parts that are products, a person\nreports to a person. Building that with one picker per field means creating the\nfurthest ancestor first and working back towards the one you actually wanted.\n\n**Editing layout**, pinned under the fields on the **Fields** tab, changes that. Choose\n**Edit as a tree** and the Component editor draws those fields as one tree, where you fill in any\nslot directly. It only changes how the fields are edited. The fields, their validation and what is\npublished are exactly as before, and it creates no new Contract version, so a change to just the\nlayout is saved without a version bump. A preview beside the settings draws the chart or outline you\nhave chosen, using your own field names, and the fields in the tree carry an **In tree** chip.\nRenaming a field in the tree updates the layout, and removing it, or changing it to a type a tree\ncan't use, takes it out of the layout.\n\nTo set it up:\n\n1. Give the Contract the fields that point at itself: two or more single-value\n Component fields (a sire and a dam), or one list field (parts). Each should\n allow the Contract, or a Contract that extends it.\n2. On **Fields**, select **Editing layout**, then choose **Edit as a tree**.\n3. Tick the fields that make up the tree and choose how many generations (or\n levels) to show.\n4. Choose whether the same Component may appear more than once.\n\n**Repeats.** *Allow across branches* lets one Component sit in several places, as\nin line-breeding or a part used in two assemblies. *Never* means each Component\nmay appear once in the whole tree, which suits an org chart or a taxonomy. If\nyou switch to *Never* on content that already repeats, the repeats are kept and\nnothing is rewritten; only a new repeat is refused. Either way, something can\nnever contain itself.\n\n**Inheritance.** Like the title field, the choice is inherited. Set it once on the\ngeneral Contract (a \"Pedigree dog\") and every Contract that extends it, such as\n\"Dog\" and \"Bitch\", edits as a tree. A Contract can choose its own, or choose\n*Ordinary fields (do not inherit the tree)* to opt out.\n\nIf the fields you tick no longer exist or no longer fit, the editor simply shows\nthe ordinary fields, so a Contract is never left uneditable.\n\n## Links to your site\n\nA Component has no page of its own, so nothing in Content takes you from a\nComponent to the page on your site that shows it. **External links** on the\n**General** tab adds that. Each link is a button in the Component editor that\nopens the page for the Component you are looking at, for example a dog's\nprintable pedigree or a blog post on the live site.\n\nTo add one:\n\n1. On **General**, under **External links**, choose **Declare links**.\n2. Give the link a **Label**, the words on the button.\n3. Write the **URL template**. It starts with `{origin}`, `https://` or\n `http://`, and can use the Component's own details:\n - `{id}` and `{externalId}`: the Component's id and external id.\n - `{field:name}`: the value of one of its fields. A field inside an inline\n value is written with dots, such as `{field:owner.name}`.\n - `{key:sire}`: the **key** of the record a reference field points at, for\n a page that is addressed by that key. A litter can link to a pedigree\n page with `{origin}/pedigree?sire={key:sire}&dam={key:dam}`. A reference\n with nothing chosen, or a value written in by hand rather than chosen\n from the records, leaves its place empty, so a litter with an outside dam\n still links; the link is switched off only when none of the `{key:}`\n fields has a value.\n - `{origin}`: the address of the **Site** you choose, always followed by a\n `/`. It is how one Contract can point at the right host in every\n environment.\n4. Choose the **Site** (when you used `{origin}`) and whether the link is\n **Enabled** always or **Once published**.\n\nA live example under the form shows the link built from one of this Contract's\nown Components, so you can see it before you save. You can add up to five links.\n\n**What authors see.** A link that works opens in a new tab. A link that cannot\nwork is greyed and says why beside it: *Publish this Component first* for a\ndraft, *Needs a value for \"name\"* when a field it uses is empty, or that the Site\nhas no host yet. A Component with unpublished changes still has a live page, so\nits link works and says it shows the published version.\n\n**Safe by design.** A value from a field can never change where a link points:\nvalues are encoded into one part of the address, and the template's scheme and\nhost cannot use fields at all.\n\n**Nothing else changes.** Links are only shown in the editor. They create no new\nContract version, change no Component and appear in nothing your site receives.\nLike the tree, they are inherited: a Contract can declare its own, or choose\n*No links (do not inherit)*.\n\n## Versions\n\nEvery save is classified automatically:\n\n- **Additive** changes (adding an optional field, loosening a limit, …)\n update the Contract's current version in place.\n- **Breaking** changes (removing a field, adding a *mandatory* field,\n tightening a limit, …) create a new version, leaving the old one intact\n so Components already pinned to it keep working.\n\nThe **History** tab on a Contract's page lists every version and\nwhat fields it resolved to. Existing Components aren't forced to update\nwhen a Contract changes — see \"The upgrade badge\" in\n[Authoring Components](components.md) for how that friction is surfaced\nand resolved.\n"
|
|
80
80
|
},
|
|
81
81
|
{
|
|
82
82
|
"slug": "deployment-keys",
|
|
83
83
|
"title": "Deployment keys",
|
|
84
|
-
"body": "# Deployment keys\
|
|
84
|
+
"body": "# Deployment keys\n\nA **deployment key** lets a release pipeline promote content from one environment to the next, for\nexample from Staging to Production, without anyone clicking **Promote**.\n\nIt does one thing: it plans and runs a promotion along **one** edge. It can't read or write content, publish,\nor promote anywhere else. If you're promoting by hand, you don't need one.\n\n> Deployment keys need the **Pro** plan or above. A trial counts.\n\n## Before you start\n\nYou need a promotion edge: a source and a target environment that are already connected for\npromotion on the **Environments** page. A key is made for one edge and stays on it.\n\nTo create a key you need both **Manage environments** and **Assign roles**. Choosing the role a key acts as is\nwhat Assign roles governs. Revoking a key needs only Manage environments.\n\n## Create a key\n\n1. Open **Deliver → API keys**, and choose the **Deployment** tab.\n2. Choose **New deployment key**.\n3. Give it a name, choose the **edge**, and choose the **role** it acts as. If your organization has more than one [realm](realms.md), choose the **realm** too: the key promotes only that realm's content, and cannot include items from a realm above its own.\n4. Tick what it may do, and decide on overwriting (below).\n5. Choose **Create key**, then **copy the key straight away**. It's shown once and can't be recovered.\n If you lose it, revoke it and make another.\n\n### The role\n\nThe key acts exactly as the role you choose, checked against the **source** environment, the same as\nwhen a person with that role promotes. A role that can't promote a folder can't have a key that does.\nPick the least powerful role that can do the job. You can't create a key more capable than you are.\n\n### Permissions\n\n| Permission | Lets the key |\n|---|---|\n| **Plan** | Show what a promotion would change. It writes nothing, so it's safe for a pull request check |\n| **Execute** | Carry out a promotion in the target environment |\n\n### Overwriting changes made in the target\n\nIf someone has edited a promoted item in the target since the last promotion, promoting it again would\nreplace their edit. By default a deployment key **won't**: the promotion stops, lists those items, and\nnothing is written.\n\nTurn on **Allow overwriting changes made in the target** only if the pipeline is meant to replace\nthose edits. Even then, each item has to be confirmed in the request.\n\n## What the list shows\n\n| Status | Meaning |\n|---|---|\n| **Active** | The key works |\n| **Edge removed** | The edge is no longer in your environment graph. The key stays, and works again if the edge is added back |\n| **Not working** | Its role was deleted, so it can no longer authenticate. Revoke it |\n| **Expired** / **Revoked** | The key is past its expiry date or was revoked |\n\n## Revoking\n\nChoose **Revoke…** on the key. Pipelines using it stop immediately, and this can't be undone. Deleting\nthe role a key acts as, or either environment on its edge, revokes the key too.\n\nA key can't be edited or extended. To change one, create a replacement and revoke the old one.\n\n## Troubleshooting\n\n| You see | Usually means |\n|---|---|\n| \"Promotion target not allowed\" (`not_a_promotion_target`) | The edge was removed from the Environments page |\n| \"Promotion conflict\" (`promotion_conflict`) | An item was edited in the target. Allow overwriting and confirm the item, or reconcile it by hand |\n| \"Promotion blocked\" | The plan has blockers; the response lists them |\n| \"Scope denied\" | The key doesn't hold Plan or Execute for that call |\n| \"Tier required\" | Your plan is below Pro |\n\n## Related\n\n- [Management keys](management-keys.md): a different key, for creating and publishing content in one environment\n- [Content environments](content-environments.md): environments and promotion\n- For developers: [Promote content from a pipeline](https://developers.ebitex.io/guides/promote-from-a-pipeline/)\n"
|
|
85
85
|
},
|
|
86
86
|
{
|
|
87
87
|
"slug": "environment-refresh",
|
|
88
88
|
"title": "Environment refresh",
|
|
89
|
-
"body": "# Environment refresh\
|
|
89
|
+
"body": "# Environment refresh\n\nIf you periodically want a lower environment (Staging, Dev) to look like Production again, refresh\ndoes that in one step — replacing an authoring environment's content wholesale from another\nenvironment, without disturbing anything about how that environment is set up (its publish\nmapping, promotion connections, and delivery keys all stay exactly as they were).\n\nThis is a bigger action than [export/import](export-import.md): it doesn't add content, it\n**replaces everything** in the environment you're refreshing.\n\n## Refreshing an environment\n\nOpen **Environments** under **Settings**, find the environment you want to refresh, and click\n**Refresh from…**. Choose which other authoring environment to copy from.\n\nYou'll see a plan showing every item that's currently only in the environment being refreshed, or\nthat differs from the source — this is what would be lost. Items only found here are checked for\n**rescue** by default; uncheck any you're fine losing.\n\nIf a checked item depends on something else that's only here and isn't itself checked, you'll see\na warning — that dependency won't survive the refresh, and the rescued item may reference something\nmissing afterward.\n\nType the environment's name to confirm, then click **Refresh**. This:\n\n1. Saves everything you checked for rescue as a bundle (before anything is touched).\n2. Replaces the environment's content with the source environment's content.\n3. Leaves the environment's own setup — its publish mapping, promotion connections, delivery\n keys, and position in the environments list — untouched.\n\n## After a refresh\n\nThe refreshed environment is **unpublished everywhere** — refresh doesn't automatically republish\nanything, since what should be live again is a deliberate decision, not an automatic one. Republish\nwhatever needs to go live from there.\n\nIf you rescued anything, click **Re-import rescued items…** to bring it back in, the same way as\n[importing](export-import.md) any other bundle. A rescued item that depended on something not\nrescued may show up with a broken reference — this is the same \"referenced item is missing\" state\nthis app shows anywhere else, and you can find these under **Component sync**.\n\n## What doesn't come back automatically\n\nA rescued item's edit history doesn't survive — the bundle only carries its current state, not its\npast versions. And if you refresh again later without unlinking first, an environment can't be\nrefreshed while it's set to inherit from a parent environment — unlink it on this same page first.\n"
|
|
90
90
|
},
|
|
91
91
|
{
|
|
92
92
|
"slug": "export-import",
|
|
93
93
|
"title": "Export and import",
|
|
94
|
-
"body": "# Export and import\
|
|
94
|
+
"body": "# Export and import\n\nPromotion (see [Content environments](content-environments.md)) moves content one direction along\na configured pipeline. Export and import is the general-purpose alternative: take a portable copy\nof something and bring it into any authoring environment — the same organization or a different\none, with or without a promotion pipeline set up between them.\n\nUse this for:\n\n- **Moving content backward** (\"demote\") — content edited in a downstream environment, brought\n back to where it came from.\n- **Copying between environments with no pipeline configured**, or **between organizations**.\n- **Backing up** a Contract, Template, page, or Component, or **seeding** a fresh environment with\n a starting set of content.\n\n## Exporting\n\nOn a Contract, Template, page, Component, or Adapter's own editor, look for the\n**Export…** button (next to Promote, where that's also available).\n\nExporting shows you everything that will be included — the item itself plus everything it depends\non (its Contract, any Templates it uses, and so on) — before you commit to\nanything. Check **Portable** if you're exporting to a different organization and the content\nincludes images or other files; this packages those files' bytes along with the content so they\ndon't arrive broken. Leave it unchecked for a same-organization export — the files are already\nvisible everywhere in your organization regardless of environment.\n\nClick **Export** to produce a bundle file, then **Download bundle file** to save it.\n\n## Importing\n\nOpen **Transfer** under **Tools** in the app navigation, then **Upload bundle file…** to stage a\nbundle you've downloaded (or received from someone else). Once staged, click **Import…** next to\nit.\n\nYou'll be asked to choose:\n\n- **Preserve identity** — items keep the same identity they had when exported. Use this for a\n same-organization import; it's also what makes a \"demote\" work cleanly, since the item you bring\n back is recognized as the same one you'll later send forward again.\n- **Fresh identity** — every item gets a brand-new identity, guaranteed not to collide with\n anything. Required when importing into a different organization than the one the bundle came\n from.\n\nThe import plan then shows each item's state:\n\n- **New** — doesn't exist here yet, will be created.\n- **Identical** — already here, exactly matching — nothing changes.\n- **Conflict** — already exists here with *different* content. You'll need to check a box\n confirming you want the bundle's version to replace what's here. (The version being replaced is\n saved first, so it isn't lost — see the item's own version history afterward if you need it\n back.)\n\nA bundle imports as a whole — you can't pick and choose individual items partway through (do that\nat export time instead, by choosing a narrower starting point). Click **Import** to apply it.\n\nA large bundle can take a while, and the button counts items off as they're applied. The import runs\non the server rather than in this browser tab, so it keeps going if you close the dialog or reload\nthe page — reopening it picks the same import back up and carries on showing progress. If something\ndoes go wrong, nothing is left half-applied: the whole import is undone, and the reason appears next\nto the **Import** button.\n\n### Plan limits\n\nYour plan limits how many components, pages and categories your organization can have, counted\nacross all of its authoring environments. **Organization > Billing** shows each\nlimit and how much of it you're using. An import that would take you past one of those limits is\nrefused before anything is written, and the message says which limit and by how much. The import\nplan warns you about this before you click **Import**.\n\nOnly the items an import *creates* count. Importing a bundle that only updates content you already\nhave is never refused for this, even if you are over a limit.\n\nPromoting content, syncing an environment from its parent, and refreshing an environment are never\nrefused for this reason either. They copy content your organization already has, and being unable to\npromote to production would be worse than going over. If one of them takes you over a limit, you can\nkeep editing, but you can't create more of that kind of item until you upgrade or remove some.\n\n## Staged bundles\n\nThe Transfer page lists every bundle you've exported or uploaded. From there you can download a\nbundle again, re-run its import, or delete it once you're done with it. An ordinary export expires\nautomatically after 30 days; delete it sooner if you're finished with it.\n\n## What travels in a bundle, and what doesn't\n\nA bundle carries the *current* state of what you selected — the live content, not its full edit\nhistory. It does **not** carry: published copies (the destination publishes on its own schedule),\nin-progress workflow reviews, delivery keys or host mappings (those belong to the environment\nitself, not its content), or activity history.\n"
|
|
95
95
|
},
|
|
96
96
|
{
|
|
97
97
|
"slug": "home",
|
|
98
98
|
"title": "Home",
|
|
99
|
-
"body": "# Home\
|
|
99
|
+
"body": "# Home\n\n**Home** is where Content opens. It answers two questions: what is waiting on me, and where did I leave off. The places you work are in the sidebar, so Home does not repeat them.\n\nIt always shows the environment you are working in (the name in the header). If your organization has more than one authoring environment, you can switch it there and Home reloads for that environment. With one environment there is nothing to switch, so the control is not shown.\n\n## Your first steps\n\nA brand-new organization has nothing to resume, so Home leads with three steps: define a Contract, author a Component, publish it. The steps tick themselves from what actually exists, so there is nothing to mark by hand, and publishing counts only once something is published, not when a Component merely exists as a draft. Once all three are done the list goes away.\n\n## Waiting on you\n\nThe same list as the **Needs me** view on [Tasks](tasks.md): reviews, translations and proposals a\nworkflow has paused until you act. Home shows the first four with the kind, the page, the Contract or\nlanguage, the state and how long it has been waiting. Select a row to go and act on it, or **View all** for\nthe full inbox. The number beside the title counts what is waiting; **20+** means more than twenty. If\nnothing is waiting it says so.\n\n## Pick up where you left off\n\nThe five Components most recently changed in this environment, newest first, each with its Contract, its\n[publish status](publishing.md) and how long ago it changed. **N unpublished changes** opens Authoring\nalready filtered to Components that are drafts or have changed since they were published. (You can reach\nthe same view yourself from Authoring's **Status** filter, or with `?status=draft,modified` on the address.)\n\nIf one of the two sections cannot load, the other still shows and the failed one offers **Try again**.\nIf neither loads, Home says so once and the sidebar keeps working.\n\n## Learn and build\n\nLinks out, each opening in a new tab: the developer documentation (setting up an organization, rendering\ncontent in a static site or on a server, the API reference), the two **Northwind Coffee** tutorial series\n(a static site, and the same site with a server in front), and the samples repository on GitHub with a git\ntag for every step.\n\n## Environments, sites and Deliver\n\nIf your organization has one environment, one realm and one site, the **Deliver** group is a single **Advanced** entry in the sidebar, and the environment and site switchers in the header are hidden, because there is nothing to choose between. Add a second environment, realm or site, or open any Deliver page once, and the group appears in full.\n\n## What changed in the sidebar (November 2026)\n\nThe sidebar is now grouped by the job you are doing, with editors first, and only one group is open at a time:\n\n- **Authoring** holds the two places you write: **Components** (the list of every Component, which used to be called Authoring) and **Composer** (the site tree).\n- **Review** holds **Tasks** and **Proposals**.\n- **Model** holds **Contracts**, **Templates** and **Adapters** (it was called Modeling).\n- **Deliver** holds **Sites**, **Environments**, **Realms**, **Streams** and **API keys**.\n- **Tools** holds **Component sync**, **Unused items**, **Transfer** and **Starter kits**.\n- **Settings** holds **Plugins**, **Taxonomy** and **Workflows**.\n\nNothing was removed. The old addresses (`/content` and `/providers`) still work and take you to **Components** and **Plugins**, so bookmarks and links you saved keep working.\n"
|
|
100
100
|
},
|
|
101
101
|
{
|
|
102
102
|
"slug": "locale-addressing",
|
|
103
103
|
"title": "Locale addressing",
|
|
104
|
-
"body": "# Locale addressing\
|
|
104
|
+
"body": "# Locale addressing\n\nIf your site is published in more than one language, locale addressing decides how a page's\naddress says which language it is in. You choose it once per site, and every address the site\nreceives from Content follows it: links inside your content, navigation, the sitemap, and the\naddress of the page itself.\n\nA site that only has one language doesn't need to change anything here.\n\n## Where to find it\n\nOpen **Sites** (under **Settings**) and click a site's name. The **Locale addressing** section sits\nabove the host mapping. You need the same permission that lets you edit a site's hosts.\n\nIf your authoring environment publishes to more than one delivery environment, pick the one you\nwant first with the **Delivery environment** selector at the top. Each delivery environment has its\nown setting, so you can try a change on Staging before Production.\n\n## Which languages a site serves\n\nBefore you choose how addresses show the language, choose which languages the site serves. In the\nsame drill-in, the **Languages** section sits above **Locale addressing**.\n\n- **Follows the organization.** This is how every site starts. The site serves every language your\n organization has enabled, and a language the organization adds or removes changes the site at once.\n- **Customized.** Select **Customize languages** and the site starts from a copy of your organization's\n languages as they are arranged today. From then on it is its own: tick the languages it serves, and for\n each one choose the language it falls back to, the default or another one the site serves. A site can\n serve only the default language, which is useful for a site that isn't translated.\n\nA customized site always has your organization's default language. A request for a language the site\ndoesn't serve is refused rather than answered with the wrong language, so make sure the site's\ndevelopers have a recent version of the Content SDK before you customize it.\n\n**Use the organization's languages** puts a customized site back to following the organization. It\n*adds* languages rather than removing them, and the languages you picked for the site are discarded,\nso it asks before it does it.\n\nIf a **Locale host** site maps a host to a language, you can't stop serving that language until you change\nthe host first. Your organization's page under **Organization**, **Localization** lists which sites follow\nits languages and which have their own, and it won't remove a language a customized site still serves.\n\nTranslators are offered the languages the sites that content reaches serve. A shared environment is offered\nwhat the sites in the environments built on it serve. It is an offer: nothing is marked as missing.\n\n## Choosing a strategy\n\n- **Invariant** — addresses carry no language. `/about` is `/about` whatever language the visitor\n reads it in, and the site chooses the language some other way. This is how every site works until\n you change it.\n- **Path prefix** — the language is the first part of the address: `/fr/cafes` is the French\n café page. Pages in your organization's default language have no prefix (`/about`) unless you\n turn on **Prefix the default locale too**, in which case they live at `/en/about` as well.\n Whichever you choose, the other spelling redirects, so every page has exactly one address.\n- **Locale host** — each language has its own host. That can be a subdomain (`fr.example.com`) or\n a completely separate domain (`example.fr`); both work the same way.\n\n## Per-locale hosts\n\nWith **Locale host** selected, the host mapping becomes a table: one row per host, with the\nlanguage that host serves beside it. Every language your organization has — the default one\nincluded — needs a host, and each language can have only one. If one is missing, the page tells\nyou which, and saving is refused until it has one.\n\nIf you add a new language to your organization later, it won't have a host until you add one here;\nuntil then, links to that language use the site's first host.\n\n## Host order\n\nThe first host in the list is the site's main one. When a page on another of your sites links to\nthis one, the link is written with that host (under **Locale host**, with the host for the language\nbeing linked to). Reorder the lines, or use the arrows in the table, to change which host is first.\n\n## Saving\n\nChanging the strategy is saved with the **Save locale addressing** button, which saves the host\nmapping at the same time — switching to **Locale host** needs its languages in the same save, and\nswitching away from it clears them. While a strategy change is unsaved, **Save hosts** waits for it.\n\n## What changes for your site\n\nOnce saved, every address the site receives is already written the new way: a French page's links\narrive as `/fr/…` (or `https://fr.example.com/…`), and the site just uses them as they are. A link\nto another of your sites always follows *that* site's strategy, and is written with its host.\n\nThis is a change to every address the site receives, so coordinate it with whoever builds the site\nbefore you save it on a live delivery environment. The site needs a version of the Content SDK that\nunderstands locale addressing, and it must stop adding language prefixes of its own — otherwise\nlinks come out doubled, like `/fr/fr/cafes`.\n\nThe Preview pane and in-context editing in the Composer write links the same way, using the delivery environment of the host\nit is showing.\n\n## A one-time \"Not found\" that isn't an addressing problem\n\nThe first time a language gets a translated slug — say, the first page you give a French address —\nevery page given a French address in that same publish stops answering at its old French address,\nand that old address shows **Not found** instead of redirecting. It happens once per language (and\nagain for the first Spanish slug, and so on).\n\nIt happens under every strategy, because it's about when a language's addresses first come into\nexistence, not about how addresses are written. Changing strategy won't prevent it or fix it.\n"
|
|
105
105
|
},
|
|
106
106
|
{
|
|
107
107
|
"slug": "management-keys",
|
|
108
108
|
"title": "Management keys",
|
|
109
|
-
"body": "# Management keys\
|
|
109
|
+
"body": "# Management keys\n\nA **management key** lets a script, a build pipeline, or another system create and publish content in\nContent — the things you would otherwise do by hand in the app.\n\nThey're for automation. If you're editing content yourself, you don't need one.\n\n> Management keys need the **Pro** plan or above. A trial counts, so you can use them straight away.\n\n## What a key can do\n\nTwo things decide that, and you choose both when you create the key.\n\n**Its role** decides *which content* the key can touch. A key acts exactly as the role you give it —\nthe same folder permissions, the same approval workflows, the same limits. A key bound to a role that\ncan't edit a folder can't edit that folder, and a page waiting for approval can't be published by a\nscript any more than by a person.\n\n**Its permissions** decide *what kind of thing* the key can do:\n\n| Permission | Lets the key |\n|---|---|\n| **Read** | Look at what's there, and preview what a change would do |\n| **Write** | Apply a whole bundle of changes at once, and upload files |\n| **Publish** | Make content live |\n| **Authoring** | Create, edit and **delete** individual items — a Contract, a Component, a page |\n| **Proposals** | Offer content for review — and nothing else at all |\n\nThey combine. A key with Read only is genuinely safe to use in a check that comments on a pull\nrequest: it can report exactly what *would* change and is incapable of changing it.\n\n**Write, Publish, and Authoring each need Read too** — checking one of them checks Read\nautomatically, and you can't uncheck Read while any of them is checked. A key that could only write\nwould be unable to do almost anything with that write (most of this API needs Read first), so this\ncombination isn't offered. Proposals is the exception: it's designed to grant neither Read nor Write,\nso it isn't affected.\n\n**Authoring is the only one that can delete anything**, which is why it is separate from Write rather\nthan part of it. Write applies a bundle, and a bundle only ever adds or updates — it never removes a\nContract, a Component or a page. So a key that has always worked fine for your pipeline keeps doing\nexactly what it did; nothing widens on its own. Add Authoring when you want a script or a tool to\nbuild a model item by item, and leave it off when you do not.\n\n**Proposals is the one permission that grants no access to your content.** A key holding only it\ncan offer something for review and can do nothing else — it cannot read a single Component and\ncannot write one. That is the point: an outside system offering content should not be able to look\nat what is already there. See [Proposals](proposals.md).\n\n**Its environment.** A key works in one authoring environment and no other. To run a pipeline against\nstaging and production, create two keys. That's deliberate — it means a staging pipeline cannot\ntouch production even by mistake.\n\n## Creating a key\n\n1. Go to **Deliver → API keys**, and find **Management keys**.\n2. Check the **environment** shown in the switcher at the top of the page. The key is bound to\n whichever authoring environment you are currently in, so switch first if that is not the one you\n want.\n3. Choose a **name** you'll recognize later — \"Marketing site CI\", not \"key 2\".\n4. If your organization has more than one [realm](realms.md), choose the **realm** the key acts in. A key reads and writes only that realm (and reads the realms above it); a key made before realms existed acts in the root realm.\n4. Choose the **role** it acts as. Pick the least powerful role that can do the job.\n5. Tick the **permissions** it needs. If in doubt, start with Read and add more when something fails.\n6. Choose when it **expires** — 30 days, 90 days, a year, or never. New keys default to 90 days.\n7. Optionally, restrict it to **IP ranges** — if your build server has a fixed address, this is worth\n doing.\n\n**The key is shown once.** Copy it into your secret store before closing the dialog; it can't be\nshown again. If you lose it, revoke it and create another.\n\n> You can't create a key more powerful than you are. If you don't hold a permission yourself, you\n> can't give it to a key.\n\n## Keeping a key safe\n\nA management key can change your content. Treat it like a password.\n\n- **Never put one in a browser, a web page, or a front-end bundle.** It won't work there — we\n deliberately prevent it — but the attempt means the key has been somewhere it shouldn't.\n- Store it in your CI system's secret store, never in a repository or a command you type.\n- Give it the narrowest role and fewest permissions that work.\n- Set an expiry if the key is for something temporary.\n- Restrict it to your build server's IP range where you can.\n\n## Revoking a key\n\n**Settings → API Keys → Management keys → Revoke.** It stops working immediately.\n\nThe record stays — who created it, when, and when it was last used — because that history is exactly\nwhat you need after a key has leaked.\n\nDeleting the **role** a key is bound to also stops that key working, immediately and permanently.\nThat's intentional: taking away a role takes away everything acting on its behalf.\n\n## Seeing what a key did\n\nEvery change a key makes is recorded in your organization's activity log under the key's name rather\nthan a person's, so you can always tell an automated change from someone's edit.\n\n## Troubleshooting\n\n| What you see | What it means |\n|---|---|\n| \"Invalid API key\" | Revoked, expired, mistyped — or the role it was bound to was deleted. The key list shows an **Expired** badge, so check there first |\n| \"Scope denied\" | The key lacks that permission. It names which one |\n| \"Tier required\" | Your plan doesn't include management keys. Pro or above is needed |\n| \"IP denied\" | The key is restricted to IP ranges and the caller isn't in one |\n| \"Confirm overwrite required\" | Something changed in Content since your script last looked. Review before overwriting |\n| \"Unknown property\" | Your request had a field we don't recognize — usually a typo. It names the field |\n| \"Quota exceeded\" | Too many requests for your plan. It names the limit |\n\n## Related\n\n- [Building a content model through the API](agent-authoring.md) — the model in API terms\n- [Getting help](../general/getting-help.md)\n- For developers: the [Content Management API guide](https://developers.ebitex.io/getting-started/content-as-code/) and its\n [reference](https://developers.ebitex.io/api/),\n and the [Content MCP server](https://developers.ebitex.io/getting-started/content-as-code/#ai-agents-ebitexmcp), which lets an AI agent build a content\n model using a key you mint. Mint it against a **non-production** authoring environment, and leave\n the authoring scope off unless the agent needs to write.\n"
|
|
110
110
|
},
|
|
111
111
|
{
|
|
112
112
|
"slug": "proposals",
|
|
113
113
|
"title": "Proposals",
|
|
114
|
-
"body": "# Proposals\
|
|
114
|
+
"body": "# Proposals\n\nA **proposal** is content somebody outside your organization has offered — a breeder submitting a\nlitter, a partner sending an event, anything a form or another system can produce. It sits in\nContent waiting for one of your people to look at it.\n\nNothing offered this way reaches your site on its own. A proposal is not a page, not a Component, and\nnot published: it becomes content only when somebody approves it, and approving is what creates the\nComponent.\n\n## Where to find them\n\n**Proposals** in the sidebar lists everything offered, grouped by what has happened to it:\n**Awaiting review**, **Approved**, **Rejected**. Anything waiting on *you* specifically also appears\nin [Tasks](tasks.md), alongside pages awaiting approval and translations awaiting acceptance.\n\nAny member of the environment can open the page. Whether you can actually approve or reject\nsomething is decided by the workflow, not by a separate permission.\n\n## Reviewing one\n\nThe review screen has two halves.\n\nOn the left, **As received** — exactly what the sender sent, unchanged and never thrown away. Each\nvalue shows the name the sender used. If something they sent matches no field on your Contract, it is\nstill shown here, marked, rather than quietly dropped. Copy across anything worth keeping.\n\nOn the right, the ordinary content form for the Contract, prefilled where a sent value clearly\nmatched a field. Matching ignores capitalisation and punctuation, so a form field named `hip_score`\nfills in a Contract field called `hip-score` without anyone configuring anything.\n\n**A field made of parts can be prefilled too.** If a Contract field holds a value typed in place (an *inline* component, such as an author with a name and an email) and the sender used keys named after the field and the part, like `author-name` and `author-email`, the review fills in that inline value and marks each of those keys **Filled into Author**. Where the field allows more than one Contract, the one matching the most keys is used, and if two match equally the one the field lists first is.\n\n**Possible matches.** When a field allows a link to an existing item as well, and the value that was filled in has a title, a **Possible matches** panel appears above the form listing up to five existing items with a similar name. **Use this one** replaces the typed-in value with a link to that item, and **Undo** puts back exactly what was sent. Nothing is ever linked for you: a name is only a hint, and linking the wrong item is worse than typing it again. Whatever the sender typed stays on the left either way.\n\n**A name sent for a link.** A form often sends a link field as just a name, for example a choice from a list of known people. That arrives as plain text beside the form, and the same **Possible matches** panel searches the existing items the field allows for it. If exactly one existing item has exactly that name (capital letters and spaces at the ends are ignored), it is linked for you, and the panel says **Matched … by name**. **Undo** empties the field, and it is not linked again. If two items share the name, or the only hits are similar names, nothing is linked and you choose.\n\n**Creating the item the name refers to.** If nothing already exists under that name, and the field links to items that live in another connected app (for example your records in Data), the panel can offer **Create a … in …**, named after the kind of item and the app. It appears only when you are allowed to create that kind of item there. Pressing it opens a panel on the right with that app's own form, already filled in from what was sent (the name, and any value sent as `<field>-<detail>`, such as `author-email`). Look it over and change anything, then **Save**: the item is created in the other app under that app's own rules, and linked here. **Cancel** creates nothing. **Undo** puts back what was sent and does not delete the item you created; remove it in the other app if you no longer want it. You never have to create it: you can approve the proposal with the field empty, and nothing here blocks that.\n\n**When the items live in a connected service.** A field can allow items that a connected service holds, such as a record in Data or a file in Assets, rather than items in Content itself. The panel then searches that service instead, using the service's own search (Data finds names that **start with** what was sent, so a name typed from the middle of a longer one is not found). A choice list backed by such a service sends the item's **key** rather than its name, so if exactly one item of an allowed type has exactly that key, it is linked for you and the panel says **Matched … by key**. An item of a type the field does not allow is never linked this way. If the service cannot be reached the panel stays out of the way and you choose the item yourself.\n\n**Some things are deliberately left blank.** A sent value is plain text; a field that holds a list, a\nlink to another item, an image, or personalised variants needs more than plain text to be filled in\nsafely. Rather than guess, Content leaves those to you — the sent value is still on the left, so\nnothing is lost.\n\nFinish the form, then choose one of the actions at the bottom. Those buttons are the transitions your\nworkflow allows your role to fire, so they carry your own wording, not ours.\n\n## What approving and rejecting do\n\n**Approve** creates a Component, as a **Draft**, in the folder the proposal was offered for. It does\nnot publish it. The proposal is kept, and records which Component it became.\n\nIf you can publish in that folder, an **Approve and publish** button appears beside Approve (it\nshows a moment after the page loads, once your access has been checked). It approves, then opens the\nusual Publish dialog for the new Component, and nothing goes live until you confirm there. Closing\nthe dialog leaves the Component as a Draft.\n\nAfter approving, the page shows an **Approved** card saying whether the Component was published,\nwith **Open Component** to go straight to it, **Publish** if it is still a Draft, and **Back to\nproposals**.\n\n**Reject** creates nothing and deletes nothing. The proposal and everything sent with it stay, so you\ncan look back at what was offered and declined.\n\nEither way, whatever record the sender's own system keeps is untouched.\n\n## Setting it up\n\nTwo things have to exist before anything can be offered.\n\n**A proposal workflow, assigned to the destination folder.** Create one under **Workflows**, choosing\nthe **Proposal review** kind, then assign it to the folder (or any folder above it) on that folder's\nown access and workflow settings, where it appears as a **Proposal review** picker.\n\nCreate the workflow first: that picker only appears once at least one Proposal review workflow\nexists, since until then there would be nothing for it to offer. A folder with none assigned says so\nplainly, and says what it means — offers to that folder will be refused.\n\nThis is required, not optional. Without it there would be nobody to review what arrives, so Content\nrefuses the offer outright and tells the sender why — rather than accepting content nobody will\never look at.\n\n**A key that can only propose.** Under **API keys**, create one whose only scope is\n*content.management.proposals*. A key holding just that can offer proposals and can do nothing\nelse — it cannot read your content and cannot write any. Give it to whoever is sending.\n\n## Where proposals come from\n\nContent does not care what sent a proposal. It records three things about the sender — a kind, a\nreference, and a label — stores them exactly as given, and never contacts the sender again. Anything\nthat can make an HTTP request with the key above can offer content: a partner's own server, a\nscheduled job, a script.\n\n**An ebitex form is the ready-made option.** If the thing you want reviewed is something people fill\nin, build a form in Forms and connect it — no code, and no field mapping, because Content matches\nwhat the form sent against your Contract's fields by name. See\n[Offering submissions to Content](../forms/forms.md) for the three setup steps.\n\nWhat the reviewer sees is the same either way: the same page, the same two panels, the same\napprove-or-reject. A form-sent proposal is labelled with the form's name; another system's is\nlabelled with whatever it chose to send.\n\n## Why something might not appear\n\n**It was refused at the door.** The sender gets a clear reason: an unknown Contract, an unknown\nfolder, or no proposal workflow on that folder.\n\n**The same thing was sent twice.** Offers are identified by the sender's own reference, so re-sending\nthe same one returns the original rather than filing a duplicate. That makes it safe for a sender to\nretry after a failure.\n\n**It is for a folder you cannot see.** Proposals for branches outside your access are not listed at\nall.\n\n**You are in a different environment.** Proposals belong to the environment their key is bound to.\n\n## Related\n\n- [Tasks](tasks.md) — everything waiting on you, across every kind of review\n- [Workflows](content-workflow.md) — designing the review itself\n- [Forms](../forms/forms.md) — building a form and connecting it as a source of proposals\n"
|
|
115
115
|
},
|
|
116
116
|
{
|
|
117
117
|
"slug": "publishing",
|
|
118
118
|
"title": "Publishing content",
|
|
119
|
-
"body": "# Publishing content\r\n\r\nEverything you build in Content — Components and Experience nodes — stays\r\nprivate to your organization until you **publish** it. Publishing takes a\r\nsnapshot of what you're looking at and copies it into a separate,\r\nread-optimized space that the Content Delivery API serves to the outside\r\nworld. Editing something after it's published never changes what's live;\r\nyou have to publish again. (Developers building the site that shows this\r\ncontent start from [Rendering your site](rendering-your-site.md).)\r\n\r\n## The lifecycle\r\n\r\nEvery publishable item shows a status badge:\r\n\r\n- **Draft** — never published.\r\n- **Published** — a snapshot is live, and it matches your current edits.\r\n- **Modified since publish** — a snapshot is live, but you've made\r\n changes since. Visitors still see the old snapshot until you publish\r\n again.\r\n- **Unpublished** — was published once, then taken down. The item still\r\n exists in Content; it's just not being served anymore.\r\n\r\n## Publishing an item\r\n\r\nSelect **Publish…** on a Component or an Experience node's detail panel.\r\nThis opens the **publish plan** — a list of everything that needs to go\r\nout together: the item itself, plus anything it depends on (a node's\r\nbound Component, a Component's own references, and so on, however deep\r\nthat chain goes).\r\n\r\nOn an item that's already live, the same button reads **Republish…** and\r\nsits next to **Unpublish** — use it to push new snapshots without taking\r\nanything down first. This is also how a change *inside* the dependency\r\nchain goes live: editing a published node's bound Component doesn't\r\nchange the node's own badge, but republishing the node re-freezes the\r\nwhole plan, the edited Component included.\r\n\r\nFor each item in the plan you'll see:\r\n\r\n- Its current status.\r\n- Whether it's valid to publish as-is. An invalid item is shown with its\r\n error and can't be included — fix the problem first, then reopen the\r\n plan.\r\n- A warning (not a blocker) if the item doesn't validate against the\r\n *latest* version of its Contract or Template, even though it's fine\r\n against the version it's actually pinned to. It will still publish; the\r\n warning is a heads-up that something upstream has moved on.\r\n\r\nUncheck anything you don't want to publish yet — a skipped item simply\r\nisn't included this time; nothing else in the plan is affected. If your\r\norganization has mapped more than one delivery environment from where\r\nyou're authoring (see [content-environments.md](content-environments.md)),\r\nchoose which one to publish to — otherwise it goes to the one delivery\r\nenvironment mapped here, exactly as before. Select **Publish** to go live\r\nwith everything still checked.\r\n\r\nIf your organization has more than one realm, the panel offers only the delivery\r\nenvironments that can be published to from the realm you are working in. A\r\nconnection can be limited to particular realms (see\r\n[content-environments.md](content-environments.md)); one that is not open to your\r\nrealm is simply not listed, so you cannot pick a target that would never reach\r\nthe site you mean. If connections exist but none is open to your realm, the panel\r\nsays so and links to the Environments page instead of offering a Publish button.\r\nWhen several targets are open to you, the one made for your realm is chosen for\r\nyou; otherwise the last target you used is chosen again, as long as it is still\r\nopen to your realm.\r\n\r\nPublishing requires the **Publish** permission on that item's branch\r\n(folder for Components, node branch for Experience nodes) — a separate\r\npermission from **Edit**, so an organization can have editors who can't\r\npush content live, and publishers who review before it goes out. If you\r\ndon't have it, the button is disabled and explains why.\r\n\r\n### What the publish panel tells you\r\n\r\n**Publish** (or **Republish**, once it has been published) opens a panel that says where the content will go,\r\nfor example *Publishing from Authoring → Production*, and what will happen: how many items will go live, how many\r\nare already up to date, and how many need attention first.\r\n\r\n- A page or Component is published together with the Components it uses, so the live page never points at\r\n something that is missing. Only the ones that changed are ticked. Open **Show 1 Component this page uses**\r\n to see them.\r\n- If everything is already live and unchanged, the panel says so and nothing is ticked. Tick an item to publish\r\n it again anyway.\r\n- An item that cannot be published says why beside it, for example that it is waiting in a review step or is\r\n missing a required field.\r\n- If your organization publishes to more than one place, choose the target first. Your choice is remembered, and only targets open to the realm you are working in are listed.\r\n\r\nPublishing uses the **saved** version. If you have unsaved changes when you press **Publish…**\r\nor **Promote…**, you are asked first, with each change listed: **Save and publish** (or **Save and\r\npromote**) saves them and carries on, **Publish the saved version** carries on without them, and\r\n**Cancel** goes back. A save that fails stops there and shows its error.\r\n\r\nThe panel stays open while it works, with a count such as *Publishing 1 of 3*, and then lists what went live.\r\nYou can close it at any time and the publish carries on; a message tells you when it finishes.\r\n\r\nIf something could not be published, the list names the item that stopped the run and the reason. Items after it\r\nwere not attempted, and items before it are already live. Fix the reason, then press **Try the failed items again**\r\n(or **Reload plan** when nothing went live). If you contact support, quote the reference shown under the list.\r\n\r\n## Unpublishing\r\n\r\nSelect **Unpublish** to take a live item down immediately. Its URL (if it\r\nhad one) stops resolving. The item itself is untouched in Content — you\r\ncan publish it again at any time.\r\n\r\n**Images and files are different: unpublishing doesn't take them down.**\r\nThe first time an image or file field is published, it gets a permanent,\r\npublic link — anyone who has that link can still open it even after you\r\nunpublish the item that used it, or after you replace the image with a\r\ndifferent one. This is because the file's link never changes once\r\npublished (so it keeps working in caches, emails, and anywhere else it was\r\ncopied), and there's no way to \"recall\" a link once it's been shared.\r\nNothing changes about who can *edit* the file or where it appears in your\r\nsite — only the direct link to the file itself stays reachable.\r\n\r\nIf you publish a Component or page whose image field hasn't been made\r\npublic yet, **publishing itself requires a one-time setup on our end** —\r\nif that hasn't happened yet, publishing is blocked with a message saying\r\nso rather than silently publishing a broken image link. Contact support if\r\nyou see this.\r\n\r\n## Promoting content between environments\r\n\r\nIf your organization authors in more than one environment (Staging and\r\nProduction, say), **Promote…** — next to **Publish…** on a Component or\r\nExperience node — copies it, and everything it depends on, into another\r\nauthoring environment, ready to be published there in turn. This is\r\nseparate from publishing: promoting moves draft content between authoring\r\nspaces; publishing takes draft content live. See\r\n[content-environments.md](content-environments.md) for the full picture.\r\n\r\n## Renaming or moving a published Experience node\r\n\r\nIf you change a published node's slug (or move it), republishing\r\nre-computes every affected path. The **old** path automatically becomes a\r\nredirect to the new one, so existing links and bookmarks keep working —\r\nyou don't have to do anything extra. You can review and remove these\r\nredirects from a site's own **Manage** view under **Sites** (see below).\r\n\r\n## Keeping a page out of search results\r\n\r\nSome published pages shouldn't be advertised to search engines — a search\r\nresults page, an internal index, a section you'd rather people reached only\r\nfrom a link you sent them.\r\n\r\nOpen the page in **Composer**, go to the **Configuration** tab, and use\r\n**Search visibility**. Turning it off (and selecting **Save**) means the page is left out of the\r\n**sitemap** — the list of URLs your site gives search engines. Everything\r\nelse stays exactly as it was: the page is still published, still live, and\r\nstill works for anyone who visits or links to its URL.\r\n\r\nTwo things to know:\r\n\r\n- **It applies to everything beneath it.** Excluding a section page\r\n excludes every page under it too, however deep. A page excluded this way\r\n shows you which parent is responsible, with a link to it, so you can\r\n change it there.\r\n- **It takes effect when you publish.** Toggling it marks the page as\r\n **Modified**, exactly like editing its content — publish the page and the\r\n change reaches your live site.\r\n\r\nThis isn't the same as telling search engines not to *index* a page they\r\nalready know about. Leaving a page out of the sitemap means you aren't\r\nadvertising it; a search engine that finds it another way (a link from\r\nsomewhere else, say) can still list it.\r\n\r\n## When search engines are told a page changed\r\n\r\nYour sitemap tells search engines when each page last changed, so they know\r\nwhich pages are worth re-reading. You don't configure this and there's\r\nnothing to keep up to date — but it's worth knowing what it reflects:\r\n\r\n- It's the date the page's **content** last changed, not the date it was\r\n last published. Republishing a page you haven't edited doesn't move it,\r\n so publishing a whole site doesn't tell search engines that everything\r\n changed at once.\r\n- Renaming a page or editing its content moves it. Reordering pages or\r\n moving one to a different parent doesn't — neither changes what's on the\r\n page.\r\n- Editing the content a page is built from — the Component it's bound to —\r\n moves it too, even if you only publish that Component. Content nested a\r\n further step away (a Component referenced by *that* Component) doesn't,\r\n so the date can occasionally be a little older than the last real change.\r\n That's deliberate: an early date costs nothing, while a date that's too\r\n recent teaches search engines to stop trusting it.\r\n\r\n## Delivery settings\r\n\r\nThe **Delivery** page (in the app navigation) is where you manage delivery\r\nkeys — credentials external systems use to call the Content Delivery API.\r\nSelect **Create key**, give it a name, and copy the value shown — it's only\r\ndisplayed once. If more than one delivery environment is mapped here,\r\nchoose which one the key reads from. Revoke a key at any time to cut off\r\nwhatever's using it immediately.\r\n\r\nThere are two ways to use a key, and the **Browser-safe key** switch decides\r\nwhich you're creating:\r\n\r\n- **Server-side** (the default) — works from anywhere, so it must stay on\r\n your server, in a build step, or behind an edge function. Never put one in\r\n a web page.\r\n- **Browser-safe** — only works from the **allowed origins** (the websites\r\n you list, pre-filled from your sites' host mappings; add\r\n `http://localhost:<port>` for local development) and, optionally, the\r\n **allowed IP ranges** you list. Because it can't be used from anywhere\r\n else, it's safe to include in a website's own code. Everything a delivery\r\n key can read is already published, so a browser-safe key never exposes\r\n anything a visitor to your site couldn't see.\r\n\r\nEach key shows a **Browser-safe** or **Server-side** badge, and **Manage**\r\nlets you change a key's restrictions later — for example to add a new\r\nhostname. Removing every restriction from a browser-safe key asks you to\r\nconfirm, since that key may already be in a shipped site.\r\n\r\nRunning the same site against several delivery environments (development,\r\ntest, acceptance, production)? Create one browser-safe key per environment\r\nand give the site the matching key per deployment — the site's code stays\r\nidentical. To keep a non-production environment private, restrict its key\r\nto your office or VPN address range; the CMS never refuses to issue a key\r\nfor an environment. Not sure which address your office or server shows up\r\nas? Open `https://api.ebitex.io/diagnostics/client-address` from it — the\r\n`clientAddress` it returns is the one to allow.\r\n\r\nHost mapping and redirect aliases live on the **Sites** page instead — see\r\nbelow.\r\n\r\n## Host mapping and redirect aliases\r\n\r\nOpen **Sites** (in the app navigation) and select **Manage** on a site to\r\nreach:\r\n\r\n- **Host mapping** — which hostname(s) serve this site, for systems that\r\n resolve content by host rather than passing a site id explicitly. Enter\r\n one hostname per line and select **Save hosts**.\r\n- **Redirect aliases** — the list of old paths automatically created by\r\n renaming/moving this site's published nodes (see above). Delete one if\r\n you no longer want that old link to redirect.\r\n\r\nIf your authoring environment publishes to more than one delivery\r\nenvironment, a **Delivery environment** picker appears above the host\r\nmapping and redirect-alias sections — each delivery environment has its\r\nown independent set of hostnames and aliases, so choose which one you're\r\nviewing or editing before making a change. With a single delivery\r\nenvironment mapped, the picker stays hidden and there's nothing extra to\r\nchoose.\r\n\r\nManaging keys uses the same permission as Hub's API keys page; host\r\nmapping and aliases use the same access-management permission as branch\r\nrules.\r\n"
|
|
119
|
+
"body": "# Publishing content\n\nEverything you build in Content — Components and Experience nodes — stays\nprivate to your organization until you **publish** it. Publishing takes a\nsnapshot of what you're looking at and copies it into a separate,\nread-optimized space that the Content Delivery API serves to the outside\nworld. Editing something after it's published never changes what's live;\nyou have to publish again. (Developers building the site that shows this\ncontent start from [Rendering your site](rendering-your-site.md).)\n\n## The lifecycle\n\nEvery publishable item shows a status badge:\n\n- **Draft** — never published.\n- **Published** — a snapshot is live, and it matches your current edits.\n- **Modified since publish** — a snapshot is live, but you've made\n changes since. Visitors still see the old snapshot until you publish\n again.\n- **Unpublished** — was published once, then taken down. The item still\n exists in Content; it's just not being served anymore.\n\n## Publishing an item\n\nSelect **Publish…** on a Component or an Experience node's detail panel.\nThis opens the **publish plan** — a list of everything that needs to go\nout together: the item itself, plus anything it depends on (a node's\nbound Component, a Component's own references, and so on, however deep\nthat chain goes).\n\nOn an item that's already live, the same button reads **Republish…** and\nsits next to **Unpublish** — use it to push new snapshots without taking\nanything down first. This is also how a change *inside* the dependency\nchain goes live: editing a published node's bound Component doesn't\nchange the node's own badge, but republishing the node re-freezes the\nwhole plan, the edited Component included.\n\nFor each item in the plan you'll see:\n\n- Its current status.\n- Whether it's valid to publish as-is. An invalid item is shown with its\n error and can't be included — fix the problem first, then reopen the\n plan.\n- A warning (not a blocker) if the item doesn't validate against the\n *latest* version of its Contract or Template, even though it's fine\n against the version it's actually pinned to. It will still publish; the\n warning is a heads-up that something upstream has moved on.\n\nUncheck anything you don't want to publish yet — a skipped item simply\nisn't included this time; nothing else in the plan is affected. If your\norganization has mapped more than one delivery environment from where\nyou're authoring (see [content-environments.md](content-environments.md)),\nchoose which one to publish to — otherwise it goes to the one delivery\nenvironment mapped here, exactly as before. Select **Publish** to go live\nwith everything still checked.\n\nIf your organization has more than one realm, the panel offers only the delivery\nenvironments that can be published to from the realm you are working in. A\nconnection can be limited to particular realms (see\n[content-environments.md](content-environments.md)); one that is not open to your\nrealm is simply not listed, so you cannot pick a target that would never reach\nthe site you mean. If connections exist but none is open to your realm, the panel\nsays so and links to the Environments page instead of offering a Publish button.\nWhen several targets are open to you, the one made for your realm is chosen for\nyou; otherwise the last target you used is chosen again, as long as it is still\nopen to your realm.\n\nPublishing requires the **Publish** permission on that item's branch\n(folder for Components, node branch for Experience nodes) — a separate\npermission from **Edit**, so an organization can have editors who can't\npush content live, and publishers who review before it goes out. If you\ndon't have it, the button is disabled and explains why.\n\n### What the publish panel tells you\n\n**Publish** (or **Republish**, once it has been published) opens a panel that says where the content will go,\nfor example *Publishing from Authoring → Production*, and what will happen: how many items will go live, how many\nare already up to date, and how many need attention first.\n\n- A page or Component is published together with the Components it uses, so the live page never points at\n something that is missing. Only the ones that changed are ticked. Open **Show 1 Component this page uses**\n to see them.\n- If everything is already live and unchanged, the panel says so and nothing is ticked. Tick an item to publish\n it again anyway.\n- An item that cannot be published says why beside it, for example that it is waiting in a review step or is\n missing a required field.\n- If your organization publishes to more than one place, choose the target first. Your choice is remembered, and only targets open to the realm you are working in are listed.\n\nPublishing uses the **saved** version. If you have unsaved changes when you press **Publish…**\nor **Promote…**, you are asked first, with each change listed: **Save and publish** (or **Save and\npromote**) saves them and carries on, **Publish the saved version** carries on without them, and\n**Cancel** goes back. A save that fails stops there and shows its error.\n\nThe panel stays open while it works, with a count such as *Publishing 1 of 3*, and then lists what went live.\nYou can close it at any time and the publish carries on; a message tells you when it finishes.\n\nIf something could not be published, the list names the item that stopped the run and the reason. Items after it\nwere not attempted, and items before it are already live. Fix the reason, then press **Try the failed items again**\n(or **Reload plan** when nothing went live). If you contact support, quote the reference shown under the list.\n\n## Unpublishing\n\nSelect **Unpublish** to take a live item down immediately. Its URL (if it\nhad one) stops resolving. The item itself is untouched in Content — you\ncan publish it again at any time.\n\n**Images and files are different: unpublishing doesn't take them down.**\nThe first time an image or file field is published, it gets a permanent,\npublic link — anyone who has that link can still open it even after you\nunpublish the item that used it, or after you replace the image with a\ndifferent one. This is because the file's link never changes once\npublished (so it keeps working in caches, emails, and anywhere else it was\ncopied), and there's no way to \"recall\" a link once it's been shared.\nNothing changes about who can *edit* the file or where it appears in your\nsite — only the direct link to the file itself stays reachable.\n\nIf you publish a Component or page whose image field hasn't been made\npublic yet, **publishing itself requires a one-time setup on our end** —\nif that hasn't happened yet, publishing is blocked with a message saying\nso rather than silently publishing a broken image link. Contact support if\nyou see this.\n\n## Promoting content between environments\n\nIf your organization authors in more than one environment (Staging and\nProduction, say), **Promote…** — next to **Publish…** on a Component or\nExperience node — copies it, and everything it depends on, into another\nauthoring environment, ready to be published there in turn. This is\nseparate from publishing: promoting moves draft content between authoring\nspaces; publishing takes draft content live. See\n[content-environments.md](content-environments.md) for the full picture.\n\n## Renaming or moving a published Experience node\n\nIf you change a published node's slug (or move it), republishing\nre-computes every affected path. The **old** path automatically becomes a\nredirect to the new one, so existing links and bookmarks keep working —\nyou don't have to do anything extra. You can review and remove these\nredirects from a site's own **Manage** view under **Sites** (see below).\n\n## Keeping a page out of search results\n\nSome published pages shouldn't be advertised to search engines — a search\nresults page, an internal index, a section you'd rather people reached only\nfrom a link you sent them.\n\nOpen the page in **Composer**, go to the **Configuration** tab, and use\n**Search visibility**. Turning it off (and selecting **Save**) means the page is left out of the\n**sitemap** — the list of URLs your site gives search engines. Everything\nelse stays exactly as it was: the page is still published, still live, and\nstill works for anyone who visits or links to its URL.\n\nTwo things to know:\n\n- **It applies to everything beneath it.** Excluding a section page\n excludes every page under it too, however deep. A page excluded this way\n shows you which parent is responsible, with a link to it, so you can\n change it there.\n- **It takes effect when you publish.** Toggling it marks the page as\n **Modified**, exactly like editing its content — publish the page and the\n change reaches your live site.\n\nThis isn't the same as telling search engines not to *index* a page they\nalready know about. Leaving a page out of the sitemap means you aren't\nadvertising it; a search engine that finds it another way (a link from\nsomewhere else, say) can still list it.\n\n## When search engines are told a page changed\n\nYour sitemap tells search engines when each page last changed, so they know\nwhich pages are worth re-reading. You don't configure this and there's\nnothing to keep up to date — but it's worth knowing what it reflects:\n\n- It's the date the page's **content** last changed, not the date it was\n last published. Republishing a page you haven't edited doesn't move it,\n so publishing a whole site doesn't tell search engines that everything\n changed at once.\n- Renaming a page or editing its content moves it. Reordering pages or\n moving one to a different parent doesn't — neither changes what's on the\n page.\n- Editing the content a page is built from — the Component it's bound to —\n moves it too, even if you only publish that Component. Content nested a\n further step away (a Component referenced by *that* Component) doesn't,\n so the date can occasionally be a little older than the last real change.\n That's deliberate: an early date costs nothing, while a date that's too\n recent teaches search engines to stop trusting it.\n\n## Delivery settings\n\nThe **Delivery** page (in the app navigation) is where you manage delivery\nkeys — credentials external systems use to call the Content Delivery API.\nSelect **Create key**, give it a name, and copy the value shown — it's only\ndisplayed once. If more than one delivery environment is mapped here,\nchoose which one the key reads from. Revoke a key at any time to cut off\nwhatever's using it immediately.\n\nThere are two ways to use a key, and the **Browser-safe key** switch decides\nwhich you're creating:\n\n- **Server-side** (the default) — works from anywhere, so it must stay on\n your server, in a build step, or behind an edge function. Never put one in\n a web page.\n- **Browser-safe** — only works from the **allowed origins** (the websites\n you list, pre-filled from your sites' host mappings; add\n `http://localhost:<port>` for local development) and, optionally, the\n **allowed IP ranges** you list. Because it can't be used from anywhere\n else, it's safe to include in a website's own code. Everything a delivery\n key can read is already published, so a browser-safe key never exposes\n anything a visitor to your site couldn't see.\n\nEach key shows a **Browser-safe** or **Server-side** badge, and **Manage**\nlets you change a key's restrictions later — for example to add a new\nhostname. Removing every restriction from a browser-safe key asks you to\nconfirm, since that key may already be in a shipped site.\n\nRunning the same site against several delivery environments (development,\ntest, acceptance, production)? Create one browser-safe key per environment\nand give the site the matching key per deployment — the site's code stays\nidentical. To keep a non-production environment private, restrict its key\nto your office or VPN address range; the CMS never refuses to issue a key\nfor an environment. Not sure which address your office or server shows up\nas? Open `https://api.ebitex.io/diagnostics/client-address` from it — the\n`clientAddress` it returns is the one to allow.\n\nHost mapping and redirect aliases live on the **Sites** page instead — see\nbelow.\n\n## Host mapping and redirect aliases\n\nOpen **Sites** (in the app navigation) and select **Manage** on a site to\nreach:\n\n- **Host mapping** — which hostname(s) serve this site, for systems that\n resolve content by host rather than passing a site id explicitly. Enter\n one hostname per line and select **Save hosts**.\n- **Redirect aliases** — the list of old paths automatically created by\n renaming/moving this site's published nodes (see above). Delete one if\n you no longer want that old link to redirect.\n\nIf your authoring environment publishes to more than one delivery\nenvironment, a **Delivery environment** picker appears above the host\nmapping and redirect-alias sections — each delivery environment has its\nown independent set of hostnames and aliases, so choose which one you're\nviewing or editing before making a change. With a single delivery\nenvironment mapped, the picker stays hidden and there's nothing extra to\nchoose.\n\nManaging keys uses the same permission as Hub's API keys page; host\nmapping and aliases use the same access-management permission as branch\nrules.\n"
|
|
120
120
|
},
|
|
121
121
|
{
|
|
122
122
|
"slug": "realms",
|
|
123
123
|
"title": "Realms",
|
|
124
|
-
"body": "# Realms\
|
|
124
|
+
"body": "# Realms\n\nIf your organization runs one brand, one site or one team, you will never need this page: Content has a single realm, nothing about it shows, and everything works as it always has. Realms are for organizations that publish several brands or sites which should **share some content and keep the rest apart**: shared design-system blocks, legal text and media Contracts that every brand uses, with each brand's own pages kept to itself.\n\n## What a realm is\n\nA realm is a place in a tree. Your organization has one **root** realm (named *Default* until you rename it), and you can create realms below it: *Shared* at the top, *Brand A* and *Brand B* underneath, and so on.\n\n- A realm sees what it owns **and** what every realm above it owns. Brand A sees Shared's Contracts, Templates, folders and Components without copying anything and without a sync step, so nothing can be out of date.\n- A realm changes only what it owns. Brand A cannot see Brand B, and Shared cannot see inside Brand A.\n- Realms are not environments. An environment is a stage a piece of content passes through (Staging, then Live). A realm is *whose* content it is. Every realm exists in every environment, so \"Live · Brand A\" and \"Staging · Brand A\" are two views of the same brand.\n\n## Switching realm\n\nWhen your organization has more than one realm, a **realm switcher** appears in the header beside the environment switcher, and the page title shows the current cell, for example \"Live · Brand A\". You only see the realms you are allowed to enter (see **Who can do what** below). Search results, My tasks and the review queue show items from every realm you can enter and open the right one when you select a result.\n\n## Owned and inherited items\n\nIn lists, folder trees and pickers, an item that another realm owns is drawn dimmer with a dotted outline and an **Owned by {realm}** chip. A legend under the list explains it, and a filter lets you show **All**, **Owned here** or **Inherited**. Whether an item is inherited depends only on which realm you are in; nothing is stored on the item.\n\nThings you can do with an inherited item:\n\n- **Use it.** Reference an inherited Contract from a Component, put an inherited Component in a page, choose an inherited Template. This is what inheriting is for.\n- **Create under it.** You can create items inside an inherited folder. They belong to your realm and sit in the shared folder, and the folder's own access rules and Allowed contracts still apply. You cannot add to the folder itself; make a subfolder of your own for that.\n- **Edit it.** Saving a change to an inherited Component, Contract, Template, Adapter or Stream is written in the realm that owns it. Before you save, the editor says so (\"Owned by Shared. Saving here changes it for every realm that reads Shared.\") and asks you to confirm. You need permission to edit in your realm **and** in the owning realm; if you lack the second you are told which realm to ask.\n- **Not from here.** Deleting, moving, restoring an older version and changing taxonomy vocabulary are refused on an inherited item, and the message names the owner. Do those in the owning realm.\n\n## Managing realms\n\nOpen **Realms** under **Deliver** (requires the \"Manage Content realms\" permission, and realms must be switched on for your organization). The page shows the tree.\n\n- **Create** a realm under any other. The name is what people see in the switcher. Your plan limits how many realms you can have; Billing shows the number you use. Only creating is refused when you reach the limit: nothing you already have is locked.\n- **Rename** a realm at any time. Its key, which tools use, does not change.\n- **Re-order** realms among their siblings, or **move a realm under another realm**. Moving is refused, with a list, if content in the realm or below it uses something from a realm the new position would not see.\n- **Delete** a realm that has no realms below it. This permanently deletes everything the realm owns in **every** environment and cannot be undone; you type the realm's key to confirm. It is refused while anything still points at the realm (a key, a member's access, an environment owned by it, anything published).\n\n### Move to realm, and duplicate into this realm\n\nFrom an item's row actions:\n\n- **Move to realm…** changes which realm owns an item (or a folder with everything inside it, or a site with all its pages). It is refused, with the list of what would break, when moving would leave something unable to see an item it uses: for instance moving a Contract into Brand A while Brand B's Components use it.\n- **Duplicate into this realm…** makes a copy of an inherited item in your realm, with new ids, so you can change it without changing it for everyone. References between the copied items are re-pointed to the copies; references to anything else are kept.\n\n### When something is still in use below you\n\nDeleting or narrowing something that realms below yours depend on is refused with a count per realm, such as \"used by 3 items in Brand A\". You are never shown their content, only how many items and which realm. Change those items from inside that realm, or ask someone who can, then try again.\n\n### Environments owned by a realm\n\nAn authoring environment can be shared (the default) or **owned by one realm**, in which case it is listed and usable only inside that realm and the realms below it. Choose **Realm…** in the environment's row menu on the Environments page; it is offered once your organization has more than one realm. Your default authoring and delivery environments are always shared.\n\n## Who can do what\n\n- **Members.** On the Environments page, **Members** tab, a person's role in an environment can be limited to one realm. Someone bound to Brand A in Live can enter Brand A and the realms below it, cannot see Brand B, and cannot edit Shared unless they are also bound there. A binding with no realm applies to every realm.\n- **API keys.** A **Management** or **deployment** key acts in exactly one realm, chosen when you create it. A **delivery** key can serve every realm or be limited to one realm and the realms below it, so Brand A's key cannot be used to read Brand B's site. Keys created before realms act in the root realm.\n\n## Publishing and promoting across realms\n\n- **Publishing** a page publishes everything it needs, including items its realm inherits, once. You cannot unpublish an item that a published page still references.\n- **Promoting** works for the realm you are in. If the content needs items a realm above yours owns that the target environment lacks or has behind, promotion stops and lists them by realm. Where you are allowed to promote in that realm, choose **Include {realm}** and they go first. **Promote everything** walks the realms from the top down.\n- **Environment refresh** is not available while either environment holds content in a realm other than the root; use promotion instead.\n\n## Related\n\nSee [content-environments.md](content-environments.md) for environments and promotion, [management-keys.md](management-keys.md) and [deployment-keys.md](deployment-keys.md) for keys, and [export-import.md](export-import.md) for moving content between organizations.\n"
|
|
125
125
|
},
|
|
126
126
|
{
|
|
127
127
|
"slug": "rendering-your-site",
|
|
128
128
|
"title": "Rendering your site",
|
|
129
|
-
"body": "# Rendering your site\
|
|
129
|
+
"body": "# Rendering your site\n\nRead this before you write any code that fetches published content. Content is published to the\n**Content Delivery API**, and ebitex ships a client for it: **`@ebitex/content-sdk`** on npm (and\n`Ebitex.Content.Delivery` on NuGet for a .NET server). Use it unless you have a reason not to. The\nreasons are below, because a hand-written client looks easy on the day it is written and costs the\nmost later.\n\nThis page is for the person or agent building the site that shows the content. Building the content\nmodel itself is [Building a content model through the API](agent-authoring.md).\n\n## Start from the SDK\n\n```sh\nnpm install @ebitex/content-sdk\n```\n\n- **A Vite and React site** that renders in the browser: `createContentClient` and the components in\n `@ebitex/content-sdk/react`.\n- **A Next.js (or other server-rendered) site**: the same package, with the key kept on the server.\n The guide is *Render content on a server* at developers.ebitex.io.\n- **A .NET server**: `Ebitex.Content.Delivery`.\n\nGuides, the API reference and the SDK reference are all at **developers.ebitex.io**. For the exact\nshape of a request or a response, read the OpenAPI document at `https://api.ebitex.io/openapi/public.json`\nrather than inferring it from a few responses you have seen.\n\n## What you stop maintaining\n\nA site that calls the Delivery API with its own `fetch` code owns all of this, and none of it shows\nup until something breaks:\n\n- **Path resolution, components, streams and facets, media and response parsing.** The SDK has one\n method per endpoint and is updated when the API is. A client written against the responses seen on\n one day is wrong the first day the API adds a member or a mode.\n- **The sitemap.** `buildSitemapDocuments` (in `@ebitex/content-sdk/sitemap`) splits at the protocol\n limits, writes the index, and emits `hreflang` alternates when given a `localeUrl`. A hand-built\n sitemap usually has none of these, and joining URLs by string concatenation produces addresses\n like `//sitemap.xml`.\n- **Preview, in-context editing and click-to-edit.** `@ebitex/content-sdk/preview` needs the annotated responses\n of a preview session. A client that parses only the fields it renders discards the annotations,\n so the editor cannot point at anything on the page. This is the feature a hand-written client\n most often loses without anyone noticing.\n- **Locale addressing.** Under the *path prefix* and *locale host* strategies every address the API\n returns already carries its language (see [Locale addressing](locale-addressing.md)). A client\n that adds its own `/${locale}` prefix doubles it (`/fr/fr/cafes`), and one that assumes a prefix\n where the site has none links its home page to a 404.\n- **Caching and invalidation.** What may be cached, for how long, under which key, and what a\n publish should purge.\n- **References that need expanding.** A delivered Presentation is usually a reference. A renderer\n that does not ask the API to resolve it renders a hollow page and nothing reports it.\n\nIf you do write your own client, treat that list as the checklist of what you are taking on.\n\n## Previewing a section or a shared Component\n\nThe Preview pane and in-context editing need nothing new from your site to preview a presentation. The bridge renders whatever document it is sent on any page, so a shared Component is previewed inside a real page that uses it, and a header or footer your site mounts with `<StandaloneComponent>` is previewed on any page that draws it. See [Preview a section, a header or a shared Component](content-composer.md).\n\nA presentation that no page reaches needs nothing new from your site either. The editor builds a page around it, a **Context**, and posts it to the bridge like any other document. The pieces of that page the author did not write carry `synthetic: true` on their annotation, and an up-to-date SDK draws them with a dashed outline; an older SDK draws an ordinary pin that the editor ignores.\n\n## Building in a sandbox\n\nAn organization an agency is building for a client is a **sandbox**. Every Delivery API response from it carries an `X-Ebitex-Sandbox` header and `X-Robots-Tag: noindex`, so a site rendered from it is not indexed by search engines. The SDK reads the header: the client's `sandbox` property says whether the content came from a sandbox, `buildSitemapDocuments` answers a `robots` document that disallows everything while it does, and `onSandbox` lets your renderer add a visible marker. When the sandbox goes live the header disappears and the same code serves a normal site, with nothing to change. See [Agencies and sandboxes](../hub/agencies.md).\n\n## Moving a hand-written client to the SDK\n\nYou can move in steps and keep your own renderers and parsers:\n\n1. Install the package and create a client with the same key you use now.\n2. Replace the fetch calls with the client's methods, one endpoint at a time. The responses are the\n API's own, so the code that reads them keeps working.\n3. Remove any locale prefix your code adds, if the site's locale addressing is not *invariant*.\n4. Replace the sitemap and `robots` code with `buildSitemapDocuments`.\n5. Add the preview bridge from `@ebitex/content-sdk/preview`, and have your preview route call the\n preview endpoints so the responses carry their annotations.\n6. Delete the hand-written client and its tests.\n\n## Related\n\n- [Building a content model through the API](agent-authoring.md): the model, before the site\n- [Locale addressing](locale-addressing.md): how addresses carry a language\n- [Publishing content](publishing.md): what the Delivery API serves, and when\n- [Management keys](management-keys.md) and [Deployment keys](deployment-keys.md): the two kinds of key\n"
|
|
130
130
|
},
|
|
131
131
|
{
|
|
132
132
|
"slug": "sample-references",
|
|
133
133
|
"title": "Linking a post to sample code",
|
|
134
|
-
"body": "# Linking a post to sample code\
|
|
134
|
+
"body": "# Linking a post to sample code\n\nA **Sample reference** block tells a reader where to get the code for the step a tutorial post just\nwalked through. It renders as a distinct, boxed block so someone skimming a long post can find it\nwithout reading the prose around it.\n\nUse one wherever a post reaches a point the reader could check out and run.\n\n## Adding one to a post\n\n1. Edit the post's **Body**.\n2. Insert an embed and choose the **Sample reference** Template.\n3. Create a Component for it and fill in:\n\n| Field | What to put | Required |\n|---|---|---|\n| **Repository** | The repository's home page — `https://github.com/ebitex-io/samples` | Yes |\n| **Tag** | The git tag for this step — `northwind-coffee/step-07` | Yes |\n| **Path** | A folder inside the repo to point at | No |\n| **Seed bundle** | A link to the content export for this step | No |\n| **Label** | The sample's name. Left empty, the repository name is used | No |\n| **Note** | One line on what this step adds | No |\n\nA block with just a repository and a tag is complete and looks finished — most steps have nothing\nelse to say.\n\n## Where the links go\n\n**Repository is the repo's home page, not a link to the tagged code.** The link to the code *at*\nthat tag is built for you from the repository and the tag. This is deliberate: if the tagging scheme\never changes, it's one fix rather than an edit to every post ever published.\n\nFor repositories on hosts we know how to build links for, the reader gets a direct link to the code\nat that exact tag and path. For any other host, they get the repository home page and the tag shown\nas text to check out themselves — never a broken link.\n\n## Seed bundles\n\n**Only add a Seed bundle link on steps that actually have one.** In a tutorial, code and content\nadvance together, and seed bundles are usually published at a handful of checkpoints rather than at\nevery step. A reader joining mid-series imports the nearest bundle at or before their step.\n\nLeaving it empty is the normal case, and the block simply doesn't show a download.\n\n## Using it outside a post\n\nThe same block can be added as a section on an ordinary page, not just inside a post body — useful\non a landing page for a sample.\n\n## Related\n\n- [Blog series](blog-series.md) — grouping tutorial posts in order\n- [Components](components.md) — creating and editing content\n"
|
|
135
135
|
},
|
|
136
136
|
{
|
|
137
137
|
"slug": "starter-kit",
|
|
138
138
|
"title": "Starter kits",
|
|
139
|
-
"body": "# Starter kits\
|
|
139
|
+
"body": "# Starter kits\n\nA **starter kit** gives you a working set of Contracts, Templates, categories and a demo experience, so you start from something instead of nothing. Install it once, then change anything you like: it becomes your own content and never updates by itself.\n\n## Adding a starter kit\n\nOpen **Starter kits** under **Tools**.\n\n1. Read what the kit will add and what you already have, and any permission you are missing. The page tells you before you start, not after.\n2. If Assets is not connected, connect it from the same page first. The kit's media fields choose from your Assets library.\n3. Leave **Include the demo experience** on if you want a finished example to learn from, or clear it to add only the building blocks. The demo's items are all named \"Demo\".\n4. Select **Install the kit**.\n\nWhen it finishes the page tells you the kit is installed, and links to your Contracts and Templates.\n\n## What is safe\n\n- Nothing you already have is changed. If an item with the same name exists, it is left exactly as it is and the preview tells you.\n- Running it again adds only what is missing.\n- If anything goes wrong, nothing from that attempt is kept.\n\n## How the kit is built\n\nThe kit separates **what a section says** from **how it is shown**.\n\n- A **Contract** holds only the content: a hero's heading and lead, a card's title and summary, a tab's label.\n- A **Template** says how a Contract is drawn, and has its own **settings** for the choices that belong to a place: width, background, appearance, a card's emphasis, a banner's tone, a grid's columns, how an accordion behaves.\n- An experience's **Hero** and **Sections** are *presentations*: you choose a Template, set its settings, and give it a Component. The same Component can be used on many pages, each with its own settings, so it looks or behaves differently in each.\n- **Tabs** and **Accordion** hold their own items. Each item is a label and the presentations inside it, so a whole FAQ is one Component you can reuse on every page that needs it.\n- Two Templates can present the same Contract in different ways. Make a second Template over a Contract when the same words need a different look, rather than copying the Contract.\n\n## A header and footer for the whole site\n\nThe kit has a **Site chrome** Component with a **Header** and a **Footer**. The header holds the logo, the site name, a few links and one button; the footer holds the logo, a line of text, links and a copyright line. Pick the logo from Assets.\n\n1. Open the **Site chrome** Component in **Authoring → Components** and change the header and footer. The header's Template settings say whether it stays on screen as the page scrolls, how large the logo is and its appearance; the footer's say its appearance.\n2. **Publish the Site chrome Component itself.** It is not part of any page, so publishing a page does not publish it, and the installer never publishes anything.\n3. Your site fetches it by its id, so every page gets the same header and footer, and a change to it is live everywhere after you publish.\n\nIf it is not published, the pages are drawn without a header and footer and nothing breaks.\n\n## Groups: a heading over what belongs together\n\nA **Group** is a section with an optional eyebrow (a small label) and heading, and any number of presentations inside it: a heading over three cards, a heading over a list of questions. Its Template's settings give the whole group its width, background, appearance and anchor, and **Spacing** (compact, standard, spacious) and **Align** (the heading at the start or centred). Set an appearance on the Group and everything inside takes it; a presentation inside can choose its own.\n\nIf you installed an earlier version of the kit, add **Group** to your experience Contract's **Sections** allowed Templates, as you would for any Template of your own.\n\n## Icons on features\n\nA Feature's **Icon** is a choice from the kit's Icon category group (an organization can add to or edit the categories like any other), drawn in your accent colour by the renderer's line icons. A Feature from an older kit has a free-text field too, **Icon (older, free text)**: it is drawn only when no Icon is chosen, so an emoji written there keeps working.\n\n## After you install\n\nEverything is yours. Edit a Contract, rename a category, restyle a theme, or delete what you do not need. Nothing is linked back to the kit, and a newer version of the kit never changes what you have. Installing again adds only what is missing.\n\nA new **major** version of the kit is not mixed into an earlier one, because its Templates would sit beside Contracts of the old shape. If your environment holds an earlier version, the install tells you so and changes nothing; your copy is left exactly as it is. To use the new version, install it into a new environment or organization.\n\nTo use your own Template in an experience's **Sections**, open the experience's Contract and add your Template to the Sections field's allowed Templates. The kit lists the Templates it accepts, so Hero and the experience itself can never be placed as a section.\n\n## Themes and appearances\n\nAn experience has a **theme**, which sets its colours, type and spacing, chosen in the experience Template's settings; leave it empty for the default. A section can have an **appearance** that adjusts the theme for that section and everything nested inside it; leave it on **Inherit** to take the parent's. Themes and appearances are categories, so you edit them under **Categories**.\n\n## Pictures and video\n\nMedia fields use the Assets app, so Assets has to be connected to Content before the kit can be installed. The Starter kits page offers the one-step **Connect Assets** card when it is not.\n"
|
|
140
140
|
},
|
|
141
141
|
{
|
|
142
142
|
"slug": "tasks",
|
|
143
143
|
"title": "Tasks",
|
|
144
|
-
"body": "# Tasks\
|
|
144
|
+
"body": "# Tasks\n\n**Tasks** lists everything in the environment you are working in that is waiting on a person: a page\nsomeone submitted for review, a translation waiting to be accepted, anything else a workflow has\npaused until somebody acts.\n\nIt replaces having to remember which page you were asked to look at. If a workflow is waiting on you,\nit is on this list.\n\n## Where to find it\n\n**Tasks** sits near the top of the sidebar, under your organization's name. Any member of the\nenvironment can open it — there is no separate permission, because whether you can actually *act* on\nsomething is decided by the workflow itself.\n\n## The three views\n\n**Needs me** is the default, and it is the one to trust. It shows only the runs where at least one\naction is open to your role right now. If this is empty, nothing is waiting on you.\n\n**All open** shows everything still in progress in this environment, including work that is waiting\non somebody else. Those rows say **Waiting on another role** instead of naming an action — useful for\nseeing where something has got stuck, without implying you can unstick it.\n\n**Closed** shows work that has finished or been rejected.\n\n## Reading a row\n\nEach row names the thing being reviewed, then:\n\n- a **kind** label — Publishing, Translation, and whatever else your organization uses\n- the actions your role may take, listed by name (**Approve · Reject**)\n- **About** — a short qualifier: the Contract a Component uses, or the language a translation is for\n- the **workflow** and the **state** the work is currently sitting in\n- how long it has been **waiting**, so the oldest thing is easy to spot\n\n**Open** (or **Review**) takes you to where the work actually happens. The actions themselves live\nthere, beside the content, so you can read what you are approving before you approve it.\n\n## Why something might not be listed\n\n**It is in a folder or section you cannot see.** Tasks never lists work whose content is outside your\naccess — not even as a greyed-out row, because that would still tell you it exists.\n\n**It is waiting on someone else, and you are on Needs me.** Switch to All open.\n\n**Nothing is governing it.** A page only appears here if a workflow has been assigned to the folder\nor section it lives in. Content with no workflow is published directly and never becomes a task.\n\n**You are in a different environment.** Tasks only ever shows the environment selected at the top of\nthe screen. If you work in more than one, check the switcher before concluding a task has vanished.\n\n## If the list is long\n\nUse the search box, or narrow by kind or workflow. When there is more work than fits on one page,\na note says so — deal with some of it, or narrow the view, rather than paging through everything.\n\n## Related\n\n- [Workflows](content-workflow.md) — setting up the reviews that produce these tasks\n- [Environments](content-environments.md) — why the list is scoped to one environment\n"
|
|
145
145
|
},
|
|
146
146
|
{
|
|
147
147
|
"slug": "templates",
|
|
148
148
|
"title": "Presenting content with Templates",
|
|
149
|
-
"body": "# Presenting content with Templates\
|
|
149
|
+
"body": "# Presenting content with Templates\n\n> **Undo, leaving and saving over someone else's work:** see [Undo, leaving a page, and when someone else saved first](../general/undo-leaving-and-conflicts.md) (Undo and Redo work on supported Contracts and settings fields here).\n\nA Template defines how a piece of content gets shown — for example\n\"Hero banner\" or \"Card grid\" — and which kinds of Component it can present.\nA Presentation is a specific use of a Template: pick a Template, bind it\nto a Component, and optionally fine-tune it with per-placement settings\nand overrides. Templates are the presentation half of the system;\nContracts and Components (see [Modeling content with Contracts](contracts.md)\nand [Authoring Components](components.md)) are the content half — they\nstay deliberately separate, so the same piece of content can be presented\ndifferent ways in different places.\n\n## Creating a Template\n\n1. From the Templates list, select **New Template**. A Template has two tabs, **Details** and **Settings**, and\n an existing Template has the same two (plus **Where used** and **History**).\n2. On **Details**, enter a **Name**. The **Id** fills in from it automatically.\n3. Still on **Details**, choose the **Supported Contracts**: the Contracts whose Components this Template can\n present. Select **Add a Contract** and pick from the searchable list. Leave it empty and a Component of any\n Contract can use the Template; constraining it to one Contract (often an abstract one, so several kinds of\n content can share the same Template) is the common case.\n4. On **Settings**, optionally give the Template settings. The settings are a Contract: the fields an editor can\n fill in each time they use this Template, such as a Theme or Padding. A Template with no settings is completely\n normal, and you can add them later. You have two choices:\n - **Define settings for this Template** creates a new Contract that only this Template uses. Add fields the\n same way you would on a Contract (see \"Field types and modifiers\" in\n [Modeling content with Contracts](contracts.md)): the same field types and modifiers, the same generated\n settings form, except a new settings field starts **Contextual** by default (a Template field is almost\n always meant as a per-usage override); you can still switch it off for a field that should live on the\n Component itself. Nothing is added for you: choose **Add a field**, and a row you add but leave empty is\n ignored when you create the Template.\n - **Use an existing Contract** lets you pick an ordinary Contract from your library instead, useful when you\n want two or more Templates to share the same settings shape. A change to that Contract shows on every\n Template that uses it.\n5. Review the change list in the bar at the foot of the page and select\n **Save**. The bar says whether the change is additive or breaking. An\n additive change saves at once; a breaking one asks you to confirm\n first. **Discard** drops your edits, and leaving the page with unsaved\n changes asks before you lose them.\n\n## A Template's settings Contract is an ordinary Contract\n\nA Template's settings fields live on a real Contract, listed in your\nContract library alongside every other Contract — there's nothing hidden\nabout it. Once a Template is saved, its **Settings** tab shows the **Settings Contract** with its name and field\ncount and two actions:\n\n- **Edit Contract** opens its fields in a small side panel without leaving the Template: add, remove, reorder, or\n reconfigure fields, then Save. If the same Contract is used by other Templates too, they all see the change.\n- **Change Contract** points this Template at a different existing Contract\n instead. The Template's Save button still needs to be clicked to commit\n the change — until then it's just a pending pick.\n\nYou can also open and edit a settings Contract directly from the Contract\nlibrary like any other Contract.\n\n## Using a Template on a Component\n\nA Contract field can be given the **Presentation** field type, letting a\nComponent instantiate a Template inline — the common pattern for a page's\nbody is an *enumerable* Presentation field, so the page becomes a list of\npresented sections.\n\nWhen you reach a Presentation field while editing a Component, select\n**Add presentation…** to open a wizard that walks you through picking a\nTemplate and binding a Component to it — including a preview of whether a\ncandidate Component actually fits before you commit. See\n[Authoring a presentation](content-authoring.md) for the full walkthrough,\nincluding what \"Compatible\" vs. \"Needs an Adapter\" mean and the Contextual\nvalues / Settings / Change controls (in the card's **⋯** menus) and Remove on an already-bound field.\n\nIf the Template has been updated to a newer version since this Presentation\nwas created, a small notice appears — **Update to v_N_** moves it onto the\nnew version. Until you do, the existing Presentation keeps working exactly\nas before; a Template change never breaks something already in place.\n\n## Deleting a Template\n\nA Template can't be deleted while any Presentation still uses it, or while\na Presentation field's settings still name it as an allowed Template —\nyou'll see exactly what's blocking the delete so you can address it first.\nDeleting a Template does **not** delete its settings Contract — it stays in\nyour Contract library afterward (in case another Template uses it too, or\nyou want to reuse it later), and you can delete it separately from there if\nyou no longer need it. A Contract still assigned as some Template's\nsettings is itself blocked from deletion until you either delete that\nTemplate or change its settings Contract first.\n"
|
|
150
150
|
},
|
|
151
151
|
{
|
|
152
152
|
"slug": "translation-jobs",
|
|
153
153
|
"title": "Translation jobs",
|
|
154
|
-
"body": "# Translation jobs\
|
|
154
|
+
"body": "# Translation jobs\n\nTranslate a Component's text into another locale automatically, then review the result before it\nlands in your content — or skip the review entirely if you'd rather it apply right away.\n\n## Kicking off a translation\n\nOpen a Component and choose **Translate…** in its header. Pick one or more target locales (only\nlocales your organization has configured beyond the default show up here — add one in Settings\nfirst if you don't see the one you need), pick a translator if your organization has more than one\nactivated, and confirm. One job starts per locale you selected.\n\nOnly certain fields are ever translated: plain text and rich text fields marked as localizable,\nand only their default (root-locale) value — fields that hold a list of values, or that vary by\naudience, aren't picked up by this pass. A field whose target locale already has a value is left\nalone unless you check **Retranslate fields that already have a value in the target locale**.\n\nJobs still in progress are listed in the Component's status strip, under its name, with **Review…** for one that is\nwaiting for you. The complete list, including finished and failed jobs, is on the **Settings** tab.\n\n## What \"review\" means\n\nWhether a job needs your approval before it takes effect depends on whether the folder the\nComponent lives in has a **translation workflow** assigned (see\n[Editorial workflow](content-workflow.md)) — the same governance mechanism that gates publishing,\napplied here to translated text instead:\n\n- **No translation workflow assigned**: the job applies immediately — the proposed translations are\n written straight into the Component, no review step in between.\n- **A translation workflow is assigned**: the job's proposed values sit in **awaiting review** until\n someone acts on them. Depending on how the workflow was built, that might mean an automatic\n decision (for example, routing certain locales straight through with no human step at all) or a\n real review step where a person has to look at it.\n\nTo assign one, create a **Translation workflow** under **Workflow**, then open the folder's\ngovernance panel and pick it under **Translation review**. That picker appears once at least one\ntranslation workflow exists; before then, the folder simply has no translation section, which is\nthe \"applies immediately\" case above.\n\nEither way, once a job applies, the translated text is simply part of the Component from then on —\nthere's nothing left to indicate it arrived via a translation job.\n\n## Reviewing proposed translations\n\nOpen the **Translations** panel on a Component (or click through from wherever the job is listed)\nto see each job's status and, for a job awaiting review, every proposed value side by side with the\noriginal: the source text above, an editable text box below holding the machine translation. Edit\nthe proposed text directly if it needs a tweak, then mark each item **Accept** or **Reject** —\naccepting is also the default if you don't touch an item at all, since a translated value with no\nobjection raised is assumed good.\n\nOnce every item you care about has been handled, use the workflow's own transition buttons (for\nexample **Approve**) to move the job forward. Depending on how many review steps the workflow\ndefines, approving might finish the job right away or hand it to a second reviewer — the panel\nalways shows what happens next.\n\nRejecting sends the job to its own end state without writing anything into the Component — nothing\nis applied, and the proposed translations are discarded.\n\n## What \"stale\" means\n\nIf someone edits the Component's own text while a translation job is sitting in review, the job\nnotices at the moment it's finally approved: any item whose original source text has since changed\nis marked **stale** rather than applied, since the translation was proposed against text that no\nlonger exists. A stale item doesn't block the rest of the job — every other item still applies\nnormally — but the stale field itself is left untouched, and translating it again (a fresh job) is\nthe way to pick up the new wording.\n\n## Deleting a Component with translation history\n\nA Component that still has a translation job **in progress** (queued, translating, or awaiting\nreview) can't be deleted until that job finishes one way or another — finish the review, or reject\nit, then delete. A Component whose translation jobs have all already finished (applied, discarded,\nor failed) has no such restriction — deleting the Component removes that history along with it.\n\n## Permissions\n\nKicking off a translation job requires edit access to the Component. Acting on a job under review\nfollows the same rules as any other workflow transition — see\n[Editorial workflow](content-workflow.md#permissions).\n"
|
|
155
155
|
},
|
|
156
156
|
{
|
|
157
157
|
"slug": "visitor-access",
|
|
158
158
|
"title": "Members-only pages (visitor access)",
|
|
159
|
-
"body": "# Members-only pages (visitor access)\
|
|
159
|
+
"body": "# Members-only pages (visitor access)\n\nYou can keep a whole site, a section or a single page for the members of an **audience**. Everyone else is served an **unlock page** instead, and the restricted page's content, title and address are not sent to them at all. The restriction is enforced by the server, not by the page, so it holds whatever your website does.\n\nThis is different from [personalization](content-personalization.md), which changes what a page *says* for a visitor. A personalized page is still sent to everyone; a restricted page is not.\n\nThe **Visitor access** card appears only when your organization has visitor access turned on. If you do not see it, ask an organization Owner. Changing a rule needs the **Manage visitor access** permission; anyone who can see a page can read who may see it.\n\n## Setting a rule\n\nOpen a page, a section or the site's top page in **Composer** and find the **Visitor access** card. Choose one of three:\n\n- **Follow the parent.** The page is restricted if the closest page above it with a rule is. On the site's top page this reads **Follow the default** and means public.\n- **Open to everyone.** Overrides a restriction above, so one page in a members-only section can be public.\n- **Restrict to an audience.** Choose the audience. Only its members are served the page, and everything under it that follows it.\n\nThe card also says, in a sentence, who can see the page now, and where the rule comes from when it is inherited. Click the name to go there.\n\nA rule is saved at once, but, like any other change to a page, it reaches your website only when the page is **published**. Publishing a restricted page also publishes its unlock page and any restricted section above it that is not yet published, so a restriction is never missing from the live site.\n\n### Who can see this page\n\nThe table at the bottom of the card shows what happens to each kind of visitor, so you can check a rule without trying it:\n\n| Visitor | What happens |\n|---|---|\n| Not a member | Gets the unlock page |\n| Member, email not verified | Opens the page, or is asked to confirm their email, depending on the audience (below) |\n| Member, verified | Opens the page |\n\n### Which audiences you can choose\n\nOnly an audience with **stored members** can be chosen: one whose rule is about a person, such as \"has bought twice\". An audience that reads something about the visit, such as the language of the page, is worked out for each request, and a request can claim anything, so it cannot grant access.\n\nEach audience carries its own setting for how strict its access is (see [Audiences and lifecycle](../audience/lifecycle-and-audiences.md#visitor-access)):\n\n- **Open membership.** Being a member is enough. The audience can name a form that makes someone a member, and the unlock page offers it. Anyone can type anyone else's email into a form, so this suits pages where that does not matter, such as a whitepaper.\n- **Verified access.** A member must also prove they hold their email address, by following a link emailed to it. The unlock page offers a sign-in. Use this for anything that matters.\n\nThe card says which of the two the chosen audience uses, and that it is set in the Audience app, not on the page.\n\n## The unlock page\n\nThe unlock page is an **Experience** like any other, built on the **Unlock page** platform Contract. It has a heading, a message, an optional teaser, and the label of the button that opens the way in. It is always public, even when it sits inside a restricted section.\n\nChoose it in the **Unlock page** line of the card:\n\n- **A page of its own.** Pick any Experience that qualifies. For a restricted placement you can also override the heading, message, teaser and button label **per language**, so one unlock page serves many places with the right words for each.\n- **The site default.** If a placement chooses none, visitors see the site's default unlock page. Set it from **Edit site default** on the card, or from the **Default unlock page** card on the site's top page.\n- **The plain built-in message.** If nothing is chosen anywhere, or the chosen page is not published, visitors see \"Members only\" and a short message in English. They always get an answer.\n\nTo make an Experience that can be chosen, base its Contract on the **Unlock page** platform Contract: in the Contract builder, choose it under **Based on a platform Contract**. Its four fields then appear at the top of the Contract, read-only. A Template that supports that Contract can then render an Experience of it. The card warns you if a page you chose no longer qualifies.\n\nA restricted page depends on its unlock page: publishing, promoting and exporting the page carry the unlock page along, and an unlock page that a rule uses cannot be deleted while it is in use.\n\n## In the page tree\n\nRestricted pages carry a badge in the tree: the audience's name where the rule is set, and **inherited** below it. An unlock page is marked **Unlock page**.\n\n**Preview as** above the tree strikes through the pages a kind of visitor would not be served: **Not a member**, **Member, email not verified** or **Member, verified**. **Editor** clears it. It draws what the rules say; it does not sign you in as anyone.\n\n## Things worth knowing\n\n- A restricted page never appears in the sitemap or in navigation for a visitor who may not read it.\n- Removing someone from an audience takes effect within minutes: a visitor's access is re-checked every few minutes while they browse.\n- Switching visitor access off for your organization stops editing, but any rule already set keeps being enforced. To open a page, change its rule.\n- Deleting an audience that a rule uses is refused until the rule is changed; the refusal lists where it is used.\n- A restriction protects the **page**, not the things it points at. Content written directly in a restricted page is protected with it, but a shared Component that the page *references*, can still be reached by someone who already knows its address. A file in Assets is different: you can limit a private file to an audience in Assets (see *Limiting a private file to an audience*), and then it has no link at all for anyone else, wherever a page shows it. Keep anything else that must stay private written directly in the page.\n\n## Gate a download behind a form\n\nA public page can hold back a report until a visitor asks for it. This is how ebitex.io's own whitepaper works, built only from ordinary pieces:\n\n1. **A private file in Assets**, limited to an audience (see *Limiting a private file to an audience* in the Assets guide).\n2. **An audience that stores its members**, for example \"Whitepaper readers\", with rule \"submitted the whitepaper form\". Turn on **verified access** in Audience if a member must also prove their email.\n3. **A form in Forms** with the ebitex Audience destination, so a submission adds the person to the audience.\n4. **A page with a personalizable Presentation field.** Its **default** is the teaser everyone gets: what is inside, the form, and a way to ask for a sign-in link. Add a **variant** on the audience: the card with the download. Anyone who is not a member never receives the variant, so the file link is not in the page they load.\n5. **Share the page.** A visitor submits the form, follows the emailed link if the audience asks for verified email, and the same page now shows the download.\n\nThe visitor's device is recognised for the visit without storing anything. Remembering them on later visits needs their consent, which your site asks for itself. Give people who decline a way to ask again: the sign-in link does that.\n"
|
|
160
160
|
}
|
|
161
161
|
];
|
|
162
162
|
//# sourceMappingURL=helpCorpus.generated.js.map
|