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

# _ContextOnlyLayout

BOL layout variant for pages that carry the context form but show neither the menu nor the policy header.

## Purpose
- Provide the page header, context form `frmWebContext`, and body, with the context textbox rendered as a text or hidden input depending on `ChangeContextPrivilege`, a presentation choice and not server-side authorization ([BR-BOLMIDDLEWARE-019](../../business-rules.md#br-bolmiddleware-019-context-textbox-visibility)).

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

## Public members
| Member | Signature | Purpose |
| --- | --- | --- |
| Layout view | `Pages/Shared/_ContextOnlyLayout.cshtml` | Razor layout for context-only pages. |
| 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 `BolMenuModel` or a descendant.

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