PageBuilderContainers.Kentico
13.0.0
Add Widget Containers functionality to MVC Page Builder. This package is for the Kentico Application (Mother).
Install-Package PageBuilderContainers.Kentico -Version 13.0.0
dotnet add package PageBuilderContainers.Kentico --version 13.0.0
<PackageReference Include="PageBuilderContainers.Kentico" Version="13.0.0" />
paket add PageBuilderContainers.Kentico --version 13.0.0
#r "nuget: PageBuilderContainers.Kentico, 13.0.0"
Restores Kentico "Webpart Containers" to MVC Page Builder Widgets.
This package is for Kentico Xperience 13, to be installed on the Kentico Web Application ("Mother") and not the MVC Site.
Installation
Part 1 - Kentico Application ("Mother"):
- Install
PageBuilderContainers.Kentico
Nuget Package on your Kentico Application - Rebuild your web application
- Log into Kentico as a Global Administrator
- Go to Modules
- Search and edit
Page Builder Containers
- Go to
Sites
and add to your site.
Part 2 - MVC Site
- Install the
PageBuilderContainers.Kentico.MVC
NuGet package on your MVC Site and rebuild
Part 3 - Add to Widgets
- Have your Widget Properties Model class implement
IPageBuilderContainerProperties
,IHtmlBeforeAfterContainerProperties
or both. You can also inherit from the base classes ofPageBuilderContainers.PageBuilderWidgetProperties
orPageBuilderContainers.PageBuilderWithHtmlBeforeAfterWidgetProperties
if you wish. - In your Widget's View, add
@Html.PageBuilderContainerBefore(Model)
at the beginning of your rendering, and@Html.PageBuilderContainerAfter(Model)
at the end
- Note: "Model" must be the Widget Property Class object, if using a model of
ComponentViewModel<YourWidgetModelClass>
, then your property may beModel.Properties
instead ofModel
Usage
Create Containers
- Go to the Page Builder Containers UI element in Kentico
- Create your Containers or edit existing.
- You can use
{% ContainerTitle %}
,{% ContainerCSSClass %}
, and{% ContainerCustomContent %}
as part of the default Container Properties
Add Widget and configure Container
- Add your widget to a Page Builder Area in Kentico, you will see the Containers Name, Title, CSS Class, and Custom Content properties in the Widget's configuration dialog (cogwheel icon)
Restores Kentico "Webpart Containers" to MVC Page Builder Widgets.
This package is for Kentico Xperience 13, to be installed on the Kentico Web Application ("Mother") and not the MVC Site.
Installation
Part 1 - Kentico Application ("Mother"):
- Install
PageBuilderContainers.Kentico
Nuget Package on your Kentico Application - Rebuild your web application
- Log into Kentico as a Global Administrator
- Go to Modules
- Search and edit
Page Builder Containers
- Go to
Sites
and add to your site.
Part 2 - MVC Site
- Install the
PageBuilderContainers.Kentico.MVC
NuGet package on your MVC Site and rebuild
Part 3 - Add to Widgets
- Have your Widget Properties Model class implement
IPageBuilderContainerProperties
,IHtmlBeforeAfterContainerProperties
or both. You can also inherit from the base classes ofPageBuilderContainers.PageBuilderWidgetProperties
orPageBuilderContainers.PageBuilderWithHtmlBeforeAfterWidgetProperties
if you wish. - In your Widget's View, add
@Html.PageBuilderContainerBefore(Model)
at the beginning of your rendering, and@Html.PageBuilderContainerAfter(Model)
at the end
- Note: "Model" must be the Widget Property Class object, if using a model of
ComponentViewModel<YourWidgetModelClass>
, then your property may beModel.Properties
instead ofModel
Usage
Create Containers
- Go to the Page Builder Containers UI element in Kentico
- Create your Containers or edit existing.
- You can use
{% ContainerTitle %}
,{% ContainerCSSClass %}
, and{% ContainerCustomContent %}
as part of the default Container Properties
Add Widget and configure Container
- Add your widget to a Page Builder Area in Kentico, you will see the Containers Name, Title, CSS Class, and Custom Content properties in the Widget's configuration dialog (cogwheel icon)
Release Notes
Release for Kentico Xperience 13
Dependencies
-
.NETStandard 2.0
- Kentico.Xperience.Libraries (>= 13.0.0)
- PageBuilderContainers.Kentico.Base (>= 13.0.1)
Used By
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.