PageBuilderContainers.Kentico.MVC.Core
13.0.3
This is the Page builder Container Kentico Xperience 13 MVC.Net Core. You must install PageBuilderContainers.Kentico on the admin/mother application along with this.
Install-Package PageBuilderContainers.Kentico.MVC.Core -Version 13.0.3
dotnet add package PageBuilderContainers.Kentico.MVC.Core --version 13.0.3
<PackageReference Include="PageBuilderContainers.Kentico.MVC.Core" Version="13.0.3" />
paket add PageBuilderContainers.Kentico.MVC.Core --version 13.0.3
Page Builder Containers for .Net MVC Core
This tool mimics the older Portal engine "Webpart Containers" which allowed you to wrap your various widgets/webparts in a structured container. These structured containers were managed in the Kentico Admin interface.
This package is for the MVC.Net Core site, you should install PageBuilderContainers.Kentico
on the Admin/mother application before using this.
Installation
- Open your MVC.Net core web app, and install this nuget package.
- In your
_ViewImports.cshtml
file, add@addTagHelper *, PageBuilderContainers.Kentico.MVC.Core
- In your Startup.ConfigureServices, add this implementation:
services.AddSingleton(typeof(IPageBuilderContainerHelper), typeof(PageBuilderContainerHelper));
Usage
In your razor views, use the <containered></containered>
tag as such:
<!-- Example of manually setting container, title, class, and custom content -->
<containered container-name="TestContainer" container-title="Test Title" container-css-class="SomeClass" container-custom-content="Custom Content">TIHS IS THE MIDDLE</containered>
<!-- Example of passing a model that inherits either IPageBuilderContainerProperties and/or IHtmlBeforeAfterContainerProperties -->
<containered container-name="TestContainer" container-model="Model.ContainerModelItem">This wraps the custom model</containered>
Page Builder Containers for .Net MVC Core
This tool mimics the older Portal engine "Webpart Containers" which allowed you to wrap your various widgets/webparts in a structured container. These structured containers were managed in the Kentico Admin interface.
This package is for the MVC.Net Core site, you should install PageBuilderContainers.Kentico
on the Admin/mother application before using this.
Installation
- Open your MVC.Net core web app, and install this nuget package.
- In your
_ViewImports.cshtml
file, add@addTagHelper *, PageBuilderContainers.Kentico.MVC.Core
- In your Startup.ConfigureServices, add this implementation:
services.AddSingleton(typeof(IPageBuilderContainerHelper), typeof(PageBuilderContainerHelper));
Usage
In your razor views, use the <containered></containered>
tag as such:
<!-- Example of manually setting container, title, class, and custom content -->
<containered container-name="TestContainer" container-title="Test Title" container-css-class="SomeClass" container-custom-content="Custom Content">TIHS IS THE MIDDLE</containered>
<!-- Example of passing a model that inherits either IPageBuilderContainerProperties and/or IHtmlBeforeAfterContainerProperties -->
<containered container-name="TestContainer" container-model="Model.ContainerModelItem">This wraps the custom model</containered>
Release Notes
Updated to include new dependency requirement on Views package, again.
Dependencies
-
.NETCoreApp 3.1
- Kentico.Xperience.AspNetCore.WebApp (>= 13.0.0)
- Microsoft.AspNetCore.Mvc.ViewFeatures (>= 2.2.0)
- Microsoft.AspNetCore.Razor (>= 2.2.0)
- PageBuilderContainers.Kentico.MVC.Base (>= 13.0.1)
- PageBuilderContainers.Kentico.MVC.Core.Views (>= 13.0.3)
Used By
NuGet packages (1)
Showing the top 1 NuGet packages that depend on PageBuilderContainers.Kentico.MVC.Core:
Package | Downloads |
---|---|
BootstrapLayoutTool.PageBuilderContainered.Kentico.MVC.Core
Bootstrap Layout tool with Page Builder Containers support. Must install the PageBuilderContainers.Kentico on the admin to leverage.
|
GitHub repositories
This package is not used by any popular GitHub repositories.