Skip to content

ported umbootstrap to v15)#257

Merged
deanleigh merged 1 commit intoUmTemplates:Upgrade-Umbraco-from-13.4.0-15.2.1from
Matthew-Wise:feature/v15-update
Jun 20, 2025
Merged

ported umbootstrap to v15)#257
deanleigh merged 1 commit intoUmTemplates:Upgrade-Umbraco-from-13.4.0-15.2.1from
Matthew-Wise:feature/v15-update

Conversation

@Matthew-Wise
Copy link
Contributor

Hi Dean,

Here is a v15 version of Umbootstrap it looks feature complete as far as I can tell :D

Hopefully I am right

Thanks
Matt

@deanleigh
Copy link
Collaborator

Hi Matthew,

That's amazing! Please bear with me as I need to remember how to make this Umbraco Version specific.

@deanleigh deanleigh requested review from Copilot and removed request for Copilot May 20, 2025 11:33
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR ports the Umbootstrap site to Umbraco v15 by updating view templates, migration to minimal hosting, and bumping project dependencies.

  • Refactored Razor views to use strongly-typed block models and property shortcuts
  • Replaced Startup.cs with minimal hosting in Program.cs and added BootUmbracoAsync
  • Upgraded target framework to .NET 9 and updated package references in the .csproj

Reviewed Changes

Copilot reviewed 391 out of 391 changed files in this pull request and generated no comments.

Show a summary per file
File Description
Views/Partials/blockgrid/Components/featureInternalLinksChildren.cshtml Use AssignedContentItem and strongly-typed property access
Views/Partials/blockgrid/Components/featureInternalLinks.cshtml Switched to generic BlockGridItem and props
Views/Partials/blockgrid/Components/featureImage.cshtml Updated inheritance and added alt attribute for accessibility
Views/Partials/blockgrid/Components/featureHTML.cshtml Access HTML property via generated model property
Views/Partials/blockgrid/Components/featureFormContactUs.cshtml Updated inheritance to use FeatureFormContactUs generic
Views/Partials/blockgrid/Components/featureFAQs.cshtml Access FAQ items via model property
Views/Partials/blockgrid/Components/featureCode.cshtml Access code snippet via model property
Views/Partials/blockgrid/Components/_Layout_Layouts.cshtml Simplified null checks and unified Settings access
Views/Partials/blockgrid/Components/_Layout_Features.cshtml Simplified Settings checks and var declarations
Views/Home.cshtml Updated block grid call to use Model.ContentGrid
Views/Head/_meta.cshtml Made baseUrl constant and improved null safety on thumbnail URL
Views/FeaturesGlobal/header.cshtml Refactored navigation logic, current page retrieval, and DI usage
Umbootstrap.Web.csproj Bumped to .NET 9, updated Umbraco v15 packages, removed legacy refs
Startup.cs Removed legacy Startup class (migrated to Program.cs)
Program.cs Introduced minimal hosting builder, BootUmbracoAsync and endpoints
Extensions/UmbNavExtensions.cs Added IsActive extension for UmbNav with minLevel parameter
Extensions/PublishedContentExtensions.cs Removed old GetBlocksWithGroupNames extension
BlockPreviews/BlockPreviewComposer.cs Added BlockPreviewComposer for block grid previews
Comments suppressed due to low confidence (4)

Umbootstrap.Web/Views/Partials/blockgrid/Components/_Layout_Layouts.cshtml:53

  • This should be an else if so that the background-image style doesn’t overwrite a background-color when both are set.
if (backgroundImage != null)

Umbootstrap.Web/Views/FeaturesGlobal/header.cshtml:13

  • Remove the extra closing parenthesis after GetCropUrl() to fix the Razor syntax error.
<img src="@Model.Logo?.GetCropUrl())" alt="" />

Umbootstrap.Web/Views/FeaturesGlobal/header.cshtml:46

  • [] is not a valid C# literal; use Enumerable.Empty<UmbNavItem>() or Array.Empty<UmbNavItem>() for an empty sequence.
@foreach (var subItem in menuItem.Children ?? [])

Umbootstrap.Web/Views/FeaturesGlobal/header.cshtml:48

  • subItem.IsActive requires currentPage and minLevel parameters; update call to something like subItem.IsActive(currentPage, 2).
<li><a class="dropdown-item @Html.If(subItem.IsActive, "active")" href="@subItem.Url()">@subItem.Name</a></li>

@deanleigh deanleigh changed the base branch from develop to Upgrade-Umbraco-from-13.4.0-15.2.1 June 20, 2025 08:15
@deanleigh deanleigh merged commit e44681d into UmTemplates:Upgrade-Umbraco-from-13.4.0-15.2.1 Jun 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants