Dynamic content and automatic pages

Review the content-source, provider, routing, and publication rules for Dynamic Content and Automatic Pages.

Back to Inventory

Dynamic Content authoring workflow

/webadmin/dynamic-content/use connects an existing standard-compliant provider source to an authorized site/page, compatible loop container and direct-child template. It does not register arbitrary API endpoints or credentials. Provider installation and configuration remain integration responsibilities. Page-owned slots support a starter Grid/Card template without overwriting existing blocks. Shared Slot source pages remain managed through their existing block editor.

Collection and binding validation is shared with API authoring. Invalid source, record, field type, template ownership or loop context must fail before a write; only an explicit empty selection removes a binding. A current-record binding is available only in the selected template branch. A loop cannot be changed or removed while leaving current-record fields orphaned. Existing provider settings and binding fallbacks survive unrelated updates.

The workspace edits draft pages only. Published pages can prepare/reuse a staged copy with existing CMS staging metadata, media, translations and remapped loop references. The source page is unchanged. Draft saves are transactional, capture a complete revision and reject an outdated content fingerprint. Publication and staged promotion remain separate approved operations. This workflow does not change automatic-detail routing or automatically publish a page.

Supported blocks expose a dedicated Dynamic Content tab. Binding controls separate editorial fallback, current loop record, and fixed source record, then source/record/type-compatible field. The tree and central mapping groups link to the relevant authoring context. Inventory filtering includes publication state.

An explicit authenticated POST preview applies proposed mappings in memory and renders the actual block tree. It shares collection filter/sort/limit/pagination semantics with public rendering, uses the selected enabled locale, checks source contracts and distinguishes empty, denied, invalid and unavailable results. Preview responses are private/no-store/noindex; they do not persist content. Private preview pagination posts the same unsaved design to the next window; ordinary public pagination retains its existing GET links. Image source, alt text, optional caption and link retain independent mappings. The inventory stays passive; the editor's record-choice lists may consult entity providers, and the explicit preview resolves current records. Providers retain responsibility for bounded transport timeouts and six-language record content.

Dynamic Content source standard and inventory — CMS 1.101.1

The native admin entry is /webadmin/dynamic-content. Sources, loops, field connections and issues are read-only projections of existing relational block settings, including Shared Slot source pages. Site access is enforced before projection. Opening the inventory or block outline does not fetch provider records. Links open the existing page-slot or Shared Slot block editor; the inventory has no independent write state. Counts describe stored block configuration, not live provider record totals or generated cards.

Source standard 1.0 is declared with ContentSourceDefinition::standard($locales, $description, $origin, $recordKey). The provider must support every AdminLocaleResolver::SUPPORTED_LOCALES code: en, de, tr, es, it, fr. Translations belong to the provider. CMS does not create or maintain record translations. The immutable descriptor is exposed as standard in Internal Content API source discovery, with capabilities reporting collection query execution in CMS or provider code, together with standard_status and required_locales. Installed plugin manifests may declare these values under each content_sources[].standard with version: "1.0".

Every standard-1.0 record must return _locale exactly matching the requested render/preview locale, a nonempty stable string record key, and each declared field (explicit null is allowed). Text, rich-text and URL values are strings; CMS media references are positive integer IDs. URLs must be internal paths, fragments, or HTTP(S) URLs, never protocol-relative or executable schemes. A collection must not return duplicate record keys. Schema/language errors use existing resolver-error handling; no silent language substitution is performed by this contract. Discovery labels denote a provider declaration, not a live availability or translation-quality certification. Undeclared values remain excluded from API previews.

Unversioned providers remain readable as legacy and are shown as requiring a standard update. New connections require standard 1.0; an existing legacy selection may be saved unchanged, but cannot be assigned to a new block. Disabled and missing sources retain stored usage references. The compatibility path does not certify legacy language coverage or rewrite records, media, translations or bindings. No automatic record-detail routes or new page-publication lifecycle is introduced.

Page and Shared Slot block trees show compact, localized icon badges next to the block type for system blocks, loops, repeated templates, and field bindings. Containers whose dynamic content comes only from descendants have a separate badge visible even when collapsed. Block search includes the badge labels. The summary links retain loop sources, template IDs, and current-item and fixed record field connections. The requested block translation locale is authoritative for source resolution, including when editorial fallback or a slot owner uses the default language.

Authoring choices and collection previews use the requested block language, or the CMS editor language when the block has no public render context yet. This keeps locale-aware providers selectable in the panel and Internal Content API.

Automatic Pages (CMS 1.103.0)

Dynamic Content → Automatic Pages configures a site-owned detail-design page, optional catalogue page, collection source, canonical non-reserved base path and optimistic revision. Rules persist relationally in wbcms_automatic_page_rules; states are draft, active and paused. Saving draft configuration and private previews never publish routes. Active/paused configuration is immutable.

Provider publication and routing contracts

Standard-1.0 collections optionally declare publishesPages($entitySource, $slugField, $titleField, $descriptionField, $imageField). The entity is enabled, standard-1.0, in the same plugin with the same stable key; slug/title are text, description text/rich_text and image URL/media. Metadata is exposed as publication; capabilities.automatic_pages means a declaration, not certified live availability.

ContentPublicationSource provides publicationPage(?cursor, limit, context) and publicationRecord(key, context). Enumeration returns up to 100 unique nonempty {key,label} identities per page; panel requests 20. Keys are at most 190 bytes, labels 300 characters, cursors 512 bytes; continuation needs entries. The complete transition and sitemap reject duplicate keys/slugs and cursor cycles and do not use block limits/filters. No stale success or hidden fallback copy may be returned. Records distinguish available, missing, unavailable and incomplete. Every public render validates actual source schema and requested _locale, identity and nonempty title in all six CMS languages. Slugs are lowercase hyphenated, at most 190 bytes, identical across languages.

Public routing additionally requires ContentPublicationRouteSource, extending the publication interface with publicationKey(slug, context): ?string. It resolves the current stable key for an exact public slug without enumerating the catalogue. Null means missing/withdrawn; upstream errors throw. Public contexts have preview=false and actor=null, and both source policies must allow every required locale in the same-site design context. Provider translations, images, alt text and captions remain authoritative; the CMS does not fabricate them.

The Extensions catalog can provision a local search index for an opted-in site. The signed catalog snapshot webhook updates the relational, rule-scoped index in one transaction. Pending localization retains the last verified record. A record absent from a complete snapshot is removed. Once enabled for reads, the Extensions rule uses indexed rows even during a source outage.

Designs, preview and transition review

A design is a visible, same-site native page with every enabled site language and entity field bindings. Shared Slot source pages are excluded. Ownership and visibility are revalidated on every read. The form lists blocks, target fields and source fields. Private authenticated previews use the existing native page presenter and shell, preserve per-record existing designs when present and only supply page-owned entity bindings with transient verified record data. Current item loops, other sources and Shared Slot content retain their behavior. Locale switching keeps the selected record. Canonical and alternate links use transient translation identities; no stored path or translation is rewritten. Private previews are noindex,nofollow and private,no-store.

Review transition enumerates current public records, their six-language readiness, preserved native page IDs, exact paths and individual locale previews. It refuses unavailable routing providers, protected/incomplete designs, duplicate or unmatched native paths, missing native translations and overlapping rules. The review digest includes source values, rule revision, design and complete native page snapshots. Activation rechecks it and locks the site/rule/pages; stale source or content refuses the operation with 409 rather than overwriting. Editors may inspect site-owned rules; only Super admin or a site administrator with site access may activate or restore the previous publication state. The activation and pause endpoints use dedicated authorized FormRequests. There is no Internal Content API rule-write endpoint.

Activation captures complete independent native page revisions and records relational adoptions in wbcms_automatic_page_adoptions. Existing detail pages become draft but all blocks, assets, addresses and six-language translations remain intact. Adopted records use their individual retained design; new records use the selected shared design. The catalogue remains native. No native detail page is created for a new source record.

Public resolution and discovery

Only active rules own the matching site/base-path detail range. Host Laravel routes retain normal precedence and existing CMS middleware/quotas apply. The site resolves from the incoming host, and an unknown host cannot bypass that resolver. From CMS 1.103.1, the Redirect Manager catch-all bridge recognizes active automatic detail ranges as CMS-owned and applies the shared public-page limiter before resolving source data; withdrawn records cannot fall through to a redirect or a retained native page. Public rendering includes published blocks and published Shared Slot content only and rechecks access/source policies. Missing/withdrawn records return 404; source failure/incomplete records return 503. The retained native page never becomes a fallback for an owned path. Public automatic responses are private,no-store. Protected designs cannot appear in sitemap discovery.

Sitemaps merge current validated automatic record URLs and all enabled-language alternates outside the native page cache. They deduplicate native addresses, remove withdrawn records immediately and return 503 on source failure rather than serving stale source entries. Native HTML and JSON search also merge current automatic records with native page results, using only declared publication title, description and public URL in the requested enabled language. Both source policies and all six actual translations are validated in a public context with no admin actor. Protected designs and inactive rules are excluded. Active owned prefixes suppress native search copies even if republished. Matching uses all normalized query terms with Unicode case folding and Turkish dotted/dotless I case pairs for Turkish source metadata; relevance prioritizes title, URL, description and then multi-field matches, with native recency/title order winning equal-rank ties and stable title/URL order for source results. One result count and paginator cover both result types without loading preceding native result pages. Source results are read per request with no persistent source search index or stale fallback: withdrawal and republication apply on the next search; unavailable or incomplete source content returns 503. The transition review explains this discovery effect.

Restore previous publication first verifies all retained content hashes, restores original native publication statuses and pauses the rule in a locked transaction. It never overwrites intervening content edits; drift returns 409. Complete revisions and adoptions remain available. Adoption-linked revisions are excluded from maintenance pruning. Retained designs cannot be deleted or moved to another site while their adoption is retained; these operations return an explicit validation message instead of a foreign-key error. A paused rule may be reviewed again and activated only after a new valid digest; its configuration remains immutable. This is an explicit publication operation, never automatic recovery.