Start Bootstrap's Modern Business Theme for Orchard Core as a decoupled Razor Pages Module
Need to git clone https://github.com/BlackrockDigital/startbootstrap-modern-business into src/Themes.Pages/ModernBusiness.Theme/wwwroot/
<Project Sdk="Microsoft.NET.Sdk.Razor">
@inherits OrchardCore.DisplayManagement.RazorPages.Page
. This is done in _ViewImports.cshtml. This counts for razor views like partials as well, except, you inherit from OrchardCore.DisplayManagement.Razor.RazorPage@inherits OrchardCore.DisplayManagement.Razor.RazorPage<TModel>
OrchardCore.Module.Targets
, you will want to reference OrchardCore.DisplayManagement
, OrchardCore.Media
, OrchardCore.ContentManagement
, OrchardCore.Content
and OrchardCore.ResourceManagement
services.Configure<RazorPagesOptions>(options =>
{
options.Conventions.AddAreaFolderRoute("ModernBusiness.Pages.Portfolio", "/", "");
});
Views\Shared
. NotFound.cshtml
(for 404 status cases), the Layout will be resolved from Views
, as this is OC's default Layout location.