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

# _PolicyOnlyLayout

BOL layout variant that shows the policy header without the menus. It suits pages that need the policy bar only.

## Purpose
- Render the policy header and the page body with the shared styles and scripts ([BR-BOLMIDDLEWARE-012](../../business-rules.md#br-bolmiddleware-012-policy-dropdown-visibility)).

## Context
- Namespace: `BolMiddleware.Pages.Shared`
- Assembly/package: `BolMiddleware`

## Public members
| Member | Signature | Purpose |
| --- | --- | --- |
| Layout view | `Pages/Shared/_PolicyOnlyLayout.cshtml` | Razor layout bound to `BolPolicyModel` rendering the policy header view component, context form, and body. |
| Optional partials | `MiddlewareIncludes/*` | Consumer-supplied extension partials included when present. |

## Behavioral notes
- Loads the CDN font stylesheet and Bootstrap 5.3.2 with SRI.

## Constraints and usage notes
- The page model must derive from `BolPolicyModel`.

## Sources
- src/BolMiddleware/Pages/Shared/_PolicyOnlyLayout.cshtml
