Skip to content

_MenuOnlyLayout

BOL layout variant that shows the top and side menus without the policy header, for pages that are not policy specific.

Purpose

  • Render the page header, both menus, and the body; the error view replaces the menus when the menu is missing (BR-BOLMIDDLEWARE-016).

Context

  • Namespace: BolMiddleware.Pages.Shared
  • Assembly/package: BolMiddleware

Public members

Member Signature Purpose
Layout view Pages/Shared/_MenuOnlyLayout.cshtml Razor layout bound to BolMenuModel that renders the menu view components and body.
Optional partials MiddlewareIncludes/* Consumer-supplied extension partials included when present.

Behavioral notes

  • References static assets as _content/bolMiddleware/ paths with a lowercase first letter, unlike the other layouts, which can break on case-sensitive hosts.

Constraints and usage notes

  • The page model must derive from BolMenuModel or a descendant.

Sources

  • src/BolMiddleware/Pages/Shared/_MenuOnlyLayout.cshtml