---
title: _MenuOnlyLayout
summary: API reference for the _MenuOnlyLayout Razor layout.
status: draft
owner: SAIF IT Core Services
last_reviewed: 2026-10-12
library: BolMiddleware
reference_type: package
---

# _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](../../business-rules.md#br-bolmiddleware-016-null-menu-error-view)).

## 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
