Navigation and search
Use navigation records for menus that editors manage across pages. Choose page-level blocks for lists, section links, and search.
Menus and shared navigation
- Combine Navbar, Navbar Brand, and Navbar Navigation for a shared header.
- Use Sidebar Navigation for a documentation sidebar or Navigation Auto where an existing layout already uses it.
Page and section links
- Link List holds editorial links. Page List draws entries from published pages.
- Use Breadcrumb for the current location and TOC for headings on the page.
Search
Use Search Form to offer a search field on a page or restrict it to a section. Header Actions can open the site-wide search. See Search for indexing and public search behaviour.
Browse the full navigation block reference. Back to Inventory.
Navigation Blocks
link-list — Link List
| Contract area | Source-backed behavior |
|---|---|
| Editable content | translations.title, translations.subtitle, translations.content; child link copy. |
| Settings and variants | settings.row_layout: index (default), stacked puts each row description under its title. settings.list_frame: joined (default), cards gives each row its own card. Independent; both are writable through the API. |
| Children/media | Only link-list-item. |
| HTML | Generic wrapper with optional intro stack and .wb-link-list, plus wb-link-list--stacked / wb-link-list--cards for the selected styles. |
| Example appearance | Resource index with title, metadata, description, icons, and badges. |
link-list-item — Link List Item
| Contract area | Source-backed behavior |
|---|---|
| Editable content | Required translations.title, optional subtitle, content, and eyebrow badge; shared required URL. |
| Settings and variants | icon_slug, icon_tone, icon_size, badge_tone. |
| Children/media | Optional image media_id thumbnail; intended under Link List. |
| HTML | <a class="wb-link-list-item"> with an optional leading thumbnail or icon (adding wb-link-list-item--media), title/meta/badge, and optional description. |
| Example appearance | Documentation/resource row marked “New”. |
| Render guard | Emits only with both a safe URL and title. |
page-list — Page List
| Contract area | Source-backed behavior |
|---|---|
| Editable content | No page copy. Titles, descriptions, and thumbnails come from each listed page's translation: name, then list_excerpt falling back to seo_description, then og_image_media_id. |
| Settings and variants | scope (page_type, path_prefix, subtree_of_current), page_type, path_prefix, sort, limit (1-48), layout (cards/links), columns, show_thumbnail, show_description, exclude_current, clickable_card. |
| Children/media | Neither. Rows come from a page query; thumbnails resolve from each page translation's Open Graph image. |
| HTML | wb-grid of wb-card articles (or single-link Card roots when clickable_card is enabled), or a wb-link-list of wb-link-list-item anchors. |
| Example appearance | A three-column index of guide cards, each linking from its title. |
| Render guard | Emits nothing when the query returns no pages, or while the scope is unconfigured. Published status, site, render-locale translation, Shared Slot source pages, and the hosting page are filtered in the query and are not settings. |
| Result caching | Reuses results within a request. After the included cache-generation migration, a shared Laravel cache store also reuses bounded listing data across requests for 300 seconds by default (WEBBLOCKS_CMS_PAGE_LIST_CACHE_SECONDS; 0 disables shared reuse). Keys separate installation/database, site, locale, normalized settings, resolved subtree, hosting page and public mount. Empty results are cached too. |
| Cache freshness | CMS/Laravel writes to pages, translations, access rules, page types, sites/locales, default-locale settings and media rotate a SQL generation for that database connection, including bulk/raw writes through Laravel. Transactions bypass shared results and roll back generation changes with content. Old in-flight fills remain under the old generation; cache failures fall back to SQL. Cache hits avoid the listing query, but still require generation/locale resolution and any cache-backend reads. External database writes outside Laravel require an application cache clear or await expiry. |
application — Application Block
| Contract area | Source-backed behavior |
|---|---|
| Editable content | No editorial copy. Selects a database-registered Embedded Application by stable application_handle. |
| Settings and variants | application_settings is validated against the selected definition schema. CMS-owned presentation settings are width, loading, aspect_ratio, min_height, show_loading_state, and show_failure_state. |
| Children/media | Neither. Executable assets belong to the registered application definition and cannot be supplied through block content or Media. |
| HTML | Inline applications receive a generated .wb-application__mount; iframe applications receive a CMS-owned, sandboxed iframe. CSS and JavaScript declared by ready definitions load once per page. |
| API authoring | Writable through content validate/apply and direct block settings patch. Discover handles with GET /webadmin/api/applications and schemas with /applications/{application}/schema; these reads require applications.read. Registry mutation is not exposed. |
| Render guard | Missing, invalid, or duplicate definitions do not load assets or execute. They render nothing unless the block's translated generic failure state is enabled. |
navigation-auto — Navigation Auto
| Contract area | Source-backed behavior |
|---|---|
| Editable content | No page copy; selected CMS Navigation menu. |
| Settings and variants | menu_key from known menu locations. Footer/legal keys render stacked links; primary/default renders clustered button-style links. |
| Children/media | Navigation records, not block children. |
| HTML | Generic wrapper plus semantic <nav> and <ul> tree. |
| Example appearance | Compatibility navigation menu in a slot. |
| Public data reuse | Shares the public menu-data cache and preview label behavior described under Navbar Navigation. |
| Recommendation | Prefer Navbar Navigation for new shared headers. |
| Contract registry gap | This published handle has an admin form and renderer but no entry in BlockTypeContractRegistry at the audit baseline. Do not infer a complete live API contract until discovery confirms it. |
toc — TOC
| Contract area | Source-backed behavior |
|---|---|
| Editable content | Optional shared title. |
| Settings and variants | settings.toc_position: left or right, default right; available in the panel and Internal Content API. |
| Children/media | Reads only Header blocks in its own page-owned slot tree, including nested layouts, in document order. Public output excludes unpublished blocks and their branches; preview includes draft headings. Eligible headings render as H2/H3, have nonblank resolved text and include_in_toc enabled. Other component titles, HTML headings and other slots are not scanned. Shared Slot source trees remain outside this page-owned scan. |
| HTML | Generic wrapper with nav.wb-section-nav; H3 entries nest under their preceding eligible H2. Leading H3 entries and H3 entries after an excluded H2 remain at the top level. |
| Placement | The first eligible direct-child TOC sits in a sticky left/right rail beside the rest of its slot, independently of page layout. Nested and additional TOCs remain inline. At viewport widths up to 1180px, or when the slot is at most 48rem wide in browsers supporting container queries, the rail is above the content in one column without sticky scrolling. |
| Anchors | Uses the same resolved ID as the rendered Header; editing heading copy or translating it does not regenerate its stored automatic anchor. Disabling include_in_toc removes only the entry, preserving its link target. |
| Live behavior | Active-section highlighting uses the bundled WebBlocks UI WBSectionNav; no renderer-owned JavaScript. |
| Render guard | No eligible headings means no TOC navigation and no reserved rail. |
breadcrumb — Breadcrumb
| Contract area | Source-backed behavior |
|---|---|
| Editable content | Shared home_label; current page title comes from the page. |
| Settings and variants | include_current: boolean. |
| Children/media | Uses page/site/locale context. |
| HTML | Generic wrapper plus <nav class="wb-breadcrumb"><ol class="wb-breadcrumb-list">…</ol></nav>. |
| Example appearance | Home / Category / Current page. |
header-actions — Header Actions
| Contract area | Source-backed behavior |
|---|---|
| Editable content | No copy. |
| Settings and variants | Booleans show_search, show_mode_toggle, show_accent_toggle, show_language_switcher. Public preset/accent controls are currently suppressed by the site-level Public Theme model. |
| Children/media | None. |
| HTML | Generic wrapper plus compact .wb-topbar-actions icon controls. |
| Example appearance | Search and light/dark/auto mode actions at the right side of a Navbar. |
| Avoid | Business CTAs. |
sticky-navbar — Navbar
| Contract area | Source-backed behavior |
|---|---|
| Editable content | No direct copy; optional editor-only layout_name. |
| Settings and variants | sticky_mode: sticky/default, static, fixed. |
| Children/media | Allowed children: container, cluster, header, plain_text, rich-text, button_link, cookie-settings, navbar-brand, navbar-navigation, header-actions, search-form. At least one child required by API plans. |
| HTML | Root-owning <nav class="wb-navbar …" data-wb-public-block-type="sticky-navbar">…</nav>. |
| Example appearance | Shared header: Navbar → Container → Cluster(between) → Brand + navigation/actions. |
| Avoid | A second custom header shell. |
navbar-brand — Navbar Brand
| Contract area | Source-backed behavior |
|---|---|
| Editable content | translations.title, translations.subtitle; shared URL, target, aria label. |
| Settings and variants | url; target: _self or _blank; aria_label. |
| Children/media | Optional image media_id for logo. Public raster logos use a contain derivative bounded by 1024×128 pixels, preserving ratio and alpha without enlargement. A successfully generated WebP source is optional; original-format fallback, SVG URLs and intrinsic proportions are retained. |
| HTML | Generic wrapper plus <a class="wb-navbar-brand"> with optional image and identity copy. |
| Example appearance | Logo, site name, and concise tagline. |
navbar-navigation — Navbar Navigation
| Contract area | Source-backed behavior |
|---|---|
| Editable content | Shared title as ARIA label; selected Navigation menu. |
| Settings and variants | menu_key; active_indicator: underline, pill, dot, background, none; active_matching: path, section, current-page, exact, off. |
| Children/media | CMS NavigationItem tree. |
| HTML | Generic wrapper plus desktop .wb-navbar-links, mobile WebBlocks UI dropdown, active classes, and group dropdowns. |
| Example appearance | Responsive primary navigation with automatic burger menu. |
| Preview labels | The selected page preview language applies to menu item and group labels, including Shared Slot navbars, desktop dropdowns and mobile drawers. Missing or blank label translations use the existing item label fallback. |
| Public data caching | Navbar Navigation, menu-backed Sidebar Navigation and Navigation Auto reuse a site/menu-scoped data snapshot. With the included SQL generation migration and a persistent Laravel cache store, shared reuse defaults to 300 seconds (WEBBLOCKS_CMS_NAVIGATION_CACHE_SECONDS; 0 disables shared caching). Snapshots contain public attributes rather than rendered HTML and are capped at 1 MiB; larger trees render without shared storage. Each renderer receives independent model/child collections. |
| Cache freshness and scope | CMS/Laravel menu, translation, page, publication, access-rule, site and locale/default-locale writes invalidate public menu data for that connection, including raw/bulk writes. Hidden items, unpublished/protected/internal source pages and foreign-site page references are excluded; a resolved site is required. Administrative menu reads stay separate. Transactions bypass shared snapshots, rollback restores the SQL generation, and cache outages fall back to SQL. Language fallback, consent links, mounts and active-page state resolve at render time. Direct external SQL writes require an application cache clear or expiry. |
sidebar-brand — Sidebar Brand
| Contract area | Source-backed behavior |
|---|---|
| Editable content | translations.title, translations.subtitle; shared URL, target, aria label. |
| Settings and variants | Same safe link contract as Navbar Brand. |
| Children/media | Optional image media_id for logo. Public raster logos use a contain derivative bounded by 1024×128 pixels, preserving ratio and alpha without enlargement. A successfully generated WebP source is optional; original-format fallback, SVG URLs and intrinsic proportions are retained. |
| HTML | Generic wrapper plus <a class="wb-sidebar-brand"> with logo and identity copy. |
| Example appearance | Documentation logo/title at the top of a sidebar. |
sidebar-navigation — Sidebar Navigation
| Contract area | Source-backed behavior |
|---|---|
| Editable content | translations.title as ARIA label; optional editor-only layout_name. |
| Settings and variants | Optional menu_key; show_icons: boolean; active_matching: path, current-page, exact. |
| Children/media | Either CMS Navigation records or manual sidebar-nav-item / sidebar-nav-group; at least one child is required in manual API plans. |
| HTML | Generic wrapper plus <nav class="wb-sidebar-nav"> and WebBlocks UI sidebar structures. |
| Example appearance | Documentation sidebar with active section indication. |
| Public data reuse | Menu-backed sidebars share the public menu-data cache and preview label behavior described under Navbar Navigation. Manual sidebar blocks retain their existing rendering and ownership. |
sidebar-nav-item — Sidebar Nav Item
| Contract area | Source-backed behavior |
|---|---|
| Editable content | Required translations.title; shared URL and target. |
| Settings and variants | icon from catalog; active_mode: exact, path, current-page, manual; manual_active: boolean. |
| Children/media | None; intended under Sidebar Navigation or Sidebar Nav Group. |
| HTML | <a class="wb-sidebar-link"> or nested .wb-nav-group-item, with optional icon and active state. |
| Example appearance | Manual documentation link. |
sidebar-nav-group — Sidebar Nav Group
| Contract area | Source-backed behavior |
|---|---|
| Editable content | Required translations.title; optional editor-only layout_name. |
| Settings and variants | icon; initially_open: boolean. |
| Children/media | Only sidebar-nav-item. |
| HTML | .wb-nav-group with button toggle, arrow, icon, and .wb-nav-group-items. |
| Example appearance | Collapsible “Guides” group in a docs sidebar. |
search-form — Search Form
| Contract area | Source-backed behavior |
|---|---|
| Editable content | translations.title label, translations.content placeholder, translations.subtitle submit label. |
| Settings and variants | The block variant is primary or secondary. settings.show_button controls the submit button. Optional settings.path_prefix limits this form to descendants of a canonical site path such as /guides. Leave it blank for site-wide search. |
| Children/media | None; requires a resolvable site search route. |
| HTML | Generic wrapper plus <form role="search" class="wb-cluster …">, native input, and optional WebBlocks button. |
| Query contract | HTML and JSON search accept an optional text q, defaulting to at most 200 characters and 20 normalized words. An active Super admin can change both bounds under System → Settings → Security (1–2,000 characters; 1–100 words). Invalid type, length or word count returns localized validation JSON with 422, including for HTML requests, using the effective bounds without redirecting to the invalid GET URL. Missing or empty queries retain the empty-search state. |
| Request budgets | Search endpoints share IP-based minute/hour limits across HTML, JSON and locales (defaults 30/minute and 300/hour). Public CMS pages and legacy page redirects share separate defaults of 120/minute and 1800/hour, including CMS pages served before a redirect plugin catch-all. Host-owned routes, static/plugin assets, robots and sitemaps do not consume these budgets. Saved Super admin Security settings take precedence over cms.public_rate_limits; removing overrides restores installation configuration. Invalid saved values and nonpositive configuration fall back without disabling protection. Exceeding a budget returns 429 with Retry-After. |
| Interaction | Submitting search-form opens the existing search modal with the entered query. Header Actions uses the same modal. In page previews, the modal searches in the selected preview language. Direct /search?q=... entries redirect to the localized site home with the normalized query, cms_search=1 and #site-search. There is no standalone HTML search screen. /search.json and localized/mounted variants remain the data endpoints. Without JavaScript the ordinary page contains an inline results/form fragment for cms_search=1, subject to the same query validation and search budgets. A host-owned home must include the CMS public overlays/fallbacks to provide this experience. |
| Search scope | The same HTML and JSON entry points accept optional path_prefix; it uses a canonical page path without the locale or mount prefix. Descendant filtering applies to indexed and automatic pages before ranking and pagination. The existing modal and no-JavaScript form retain the scope. Header Actions opens the site-wide modal. |
| Search indexability | Compatibility search redirects, JSON results and their localized/mounted variants send X-Robots-Tag: noindex. CMS HTML responses with cms_search=1 send the same header and a robots noindex meta tag, including empty and paginated searches. Ordinary content requests, including plain q parameters without the search flag, keep their existing indexability. No robots.txt disallow or request-budget change is introduced. |
| Example appearance | Site search field in a header or page. |
sidebar-footer — Sidebar Footer
| Contract area | Source-backed behavior |
|---|---|
| Editable content | translations.title, translations.content, translations.subtitle footer note. |
| Settings and variants | settings.variant: info, success, warning, danger. |
| Children/media | None. |
| HTML | Generic wrapper plus .wb-sidebar-footer, toned .wb-callout, and optional muted note. |
| Example appearance | Small documentation notice or version note. |