Русский

HOBA

What a site is made of in Core

Know which object to edit and how many pages a change will affect.

Page and composition

A page defines a URL and language. Its composition defines which blocks to render. Parent and order are structural; visual placement and responsive settings are separate properties.

Layout and reusable definition

A layout connects page areas, such as the header and main content. A definition holds a reusable composition. Editing a shared header affects all pages that reference it once a new release goes live.

Collection, entry, and template

A collection defines fields, an entry holds values, and a template displays them. To add a product, create an entry. To redesign all product cards, change the template.

Key, ID, and URL

Keys connect entities in theme source. Core assigns separate installed IDs on import. A public URL is independent: when moving a page, preserve its key and verify redirects.

Entry fields and translations

Keep collection field keys stable: removing a field or changing its type affects existing entries. rich_text stores a string with an optional structured document. reference stores an entry ID; target is an editor hint, not a foreign-key constraint.

An entry’s translation group can hold only one entry per locale. Review and publish a draft translation separately before releasing the site.

A page is a tree node, not a menu record

SiteTreeNode defines the kind (root/section/page), parent, position, slug, locale, and optional layout. The public path joins the slugs of all non-empty ancestors with the page slug: docs and guide produce /docs/guide. The aliases home, index, and an empty slug collapse to the parent, while a top-level home becomes /. The menu stores references to nodes and never duplicates pages.

Locales are separate pages

Each language version is a separate node with its own locale; a translation does not appear automatically. The default locale is served without a prefix and other locales under /{locale}: with Russian as default those are / and /en/.... Changing the default locale only changes which existing version sits at the root; it does not rewrite pages, IDs, translation groups, or SEO.

URL role, key, and SEO

Page metadata may declare url: {role, key?}. The role selects a site pattern (page, collection, category, item) and key fills its placeholder; without key, the node slug is used. In default mode, or when the role has no pattern, the hierarchy path stays unchanged. Two canonical paths cannot collide: release planning fails instead of choosing a page by order. Metadata title overrides the heading, but the node label is the fallback.

Moving, trash, and restore

Renaming or moving a page captures an automatic redirect from the old path. Trash hides a page from live lists, the release snapshot, runtime, and sitemap while preserving identity and children; the slug becomes reusable. Restoring onto a reused slug returns 409 SLUG_REUSED. A redirect whose source is a live page, or which targets itself, is dropped from the release.