Block Grid
The block grid is the primary content editing surface in UmBootstrap. Editors build pages by placing layouts and features into a block grid property. Umbraco then renders them through a chain of partial views.
Rendering Pipeline
Section titled “Rendering Pipeline”When Umbraco renders a block grid, the chain is:
default.cshtml— entry point, callsGetPreviewBlockGridItemsHtmlAsyncitems.cshtml— loops through items, resolves partial view by aliaslayout363.cshtml(example) — sets layout, callsGetPreviewBlockGridItemAreasHtmlAsync_Layout_Layouts.cshtml— wraps with id, background colour/imageareas.cshtml— renders<div class="areas grid container-xxl">and loops through areasarea.cshtml— renders each area’s<div>(Umbraco adds theg-col-*classes)items.cshtml— renders feature blocks within the area
Views/Partials/blockgrid/ default.cshtml -- Entry point items.cshtml -- Loops through block items areas.cshtml -- Container div with CSS Grid area.cshtml -- Individual area wrapper Components/ layout12.cshtml -- Layout view (delegates to shared layout) layout363.cshtml -- Layout view (delegates to shared layout) _Layout_Layouts.cshtml -- Shared wrapper: id, background, settings _Layout_Features.cshtml -- Shared wrapper: header, body, footer featureRichTextEditor.cshtml -- Feature view (renders content) ...CSS Grid
Section titled “CSS Grid”UmBootstrap uses Bootstrap’s CSS Grid system (not the legacy flexbox grid):
$enable-grid-classes: false; // Disable col-* classes$enable-cssgrid: true; // Enable g-col-* classesThe areas.cshtml container uses container-xxl — fluid below 1400px, capped width above.
Responsive Breakpoints
Section titled “Responsive Breakpoints”Each layout’s areas have column spans and responsive breakpoints configured via the block grid editor. For example, a layout363 might have:
- Tertiary area:
g-col-12 g-col-md-4 g-col-lg-3 - Primary area:
g-col-12 g-col-md-8 g-col-lg-6 - Secondary area:
g-col-12 g-col-md-12 g-col-lg-3
These classes are serialised by uSync but the source of truth is the backoffice UI.
Block Grid DataType
Section titled “Block Grid DataType”The _Content Grid Default - Content - Block Grid DataType is where layouts and features are registered:
- Layout Blocks: Each layout element type, linked to
layoutSettingsfor background options, with areas configured for column spans and allowed features - Feature Blocks: Each feature element type, linked to
featureSettings(or a per-feature settings type) for colour and visibility options