PartialWidgetPage.Kentico.MVC
13.0.3
For Kentico 13 Full Framework only, provides Html helpers and interfaces to render other pages (with widgets) in your page. Useful for things like Mega Menus, editable header adn footers, tabs, accordions, etc.
Install-Package PartialWidgetPage.Kentico.MVC -Version 13.0.3
dotnet add package PartialWidgetPage.Kentico.MVC --version 13.0.3
<PackageReference Include="PartialWidgetPage.Kentico.MVC" Version="13.0.3" />
paket add PartialWidgetPage.Kentico.MVC --version 13.0.3
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 - Install on MVC Site
For MVC.Net Framework
- Install the
PageBuilderContainers.Kentico.MVC
NuGet package on your MVC Site and rebuild
Add to Widgets
Have your Widget Properties Model class implement IPageBuilderContainerProperties
, IHtmlBeforeAfterContainerProperties
or both.
You can also inherit from the base classes of PageBuilderContainers.PageBuilderWidgetProperties
or PageBuilderContainers.PageBuilderWithHtmlBeforeAfterWidgetProperties
if you wish as these already have the proper [EditingFormComponent]
Attributes for each field
This tool includes a Form Component for selecting the Container Name:
[EditingComponent(PageBuilderContainerSelectorComponent.IDENTIFIER, Order = 990, Label = "Container Name")]
Add to Models
You can also have models inherit the IPageBuilderContainerProperties
and/or IHtmlBeforeAfterContainerProperties
and leverate containers for other objects, you just won't be able to use the Widget configurations.
Usage
For MVC.Net Framework
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
Additionally you can pass any Model that inherites from either IPageBuilderContainerProperties
or IHtmlBeforeAfterContainerProperties
# Create Containers
1. Go to the Page Builder Containers UI element in Kentico
1. Create your Containers or edit existing.
1. You can use `{% ContainerTitle %}`, `{% ContainerCSSClass %}`, and `{% ContainerCustomContent %}` as part of the default Container Properties
# Add Widget and Configure Container
1. 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)
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 - Install on MVC Site
For MVC.Net Framework
- Install the
PageBuilderContainers.Kentico.MVC
NuGet package on your MVC Site and rebuild
Add to Widgets
Have your Widget Properties Model class implement IPageBuilderContainerProperties
, IHtmlBeforeAfterContainerProperties
or both.
You can also inherit from the base classes of PageBuilderContainers.PageBuilderWidgetProperties
or PageBuilderContainers.PageBuilderWithHtmlBeforeAfterWidgetProperties
if you wish as these already have the proper [EditingFormComponent]
Attributes for each field
This tool includes a Form Component for selecting the Container Name:
[EditingComponent(PageBuilderContainerSelectorComponent.IDENTIFIER, Order = 990, Label = "Container Name")]
Add to Models
You can also have models inherit the IPageBuilderContainerProperties
and/or IHtmlBeforeAfterContainerProperties
and leverate containers for other objects, you just won't be able to use the Widget configurations.
Usage
For MVC.Net Framework
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
Additionally you can pass any Model that inherites from either IPageBuilderContainerProperties
or IHtmlBeforeAfterContainerProperties
# Create Containers
1. Go to the Page Builder Containers UI element in Kentico
1. Create your Containers or edit existing.
1. You can use `{% ContainerTitle %}`, `{% ContainerCSSClass %}`, and `{% ContainerCustomContent %}` as part of the default Container Properties
# Add Widget and Configure Container
1. 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
Parital Widget Page failed when rendering on a page that had no previous Page Builder Context. Adjusted to account.
Dependencies
-
- Antlr (>= 3.5.0.2)
- Kentico.Xperience.AspNet.Mvc5.Libraries (>= 13.0.0)
- Microsoft.CSharp (>= 4.7.0)
- Microsoft.Data.OData (>= 5.8.4)
- Microsoft.Data.Services.Client (>= 5.8.4)
- Microsoft.Extensions.Options (>= 3.1.8)
- Microsoft.Owin.Security (>= 4.1.1)
- Microsoft.Owin.Security.Cookies (>= 4.1.1)
- Microsoft.Owin.Security.OAuth (>= 4.1.1)
- Microsoft.Rest.ClientRuntime (>= 2.3.20)
- Microsoft.Web.Xdt (>= 2.1.1)
- Newtonsoft.Json (>= 12.0.3)
- NuGet.Core (>= 2.14.0)
- System.Memory (>= 4.5.4)
- System.Numerics.Vectors (>= 4.5.0)
- System.Runtime.CompilerServices.Unsafe (>= 4.7.1)
- System.ServiceModel.Primitives (>= 4.6.0)
- System.Spatial (>= 5.8.4)
- WebGrease (>= 1.6.0)
- WindowsAzure.Storage (>= 7.2.0)
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.
Version History
Version | Downloads | Last updated |
---|---|---|
13.0.3 | 90 | 12/19/2020 |
13.0.2 | 33 | 12/18/2020 |
13.0.1 | 76 | 12/15/2020 |
12.29.9 | 97 | 10/2/2020 |
12.29.8 | 77 | 9/2/2020 |
12.29.7 | 265 | 6/17/2020 |
12.29.6 | 94 | 6/17/2020 |
12.29.5 | 125 | 6/15/2020 |
12.29.4 | 1,484 | 10/10/2019 |
12.29.3 | 202 | 9/20/2019 |
12.29.2 | 245 | 8/9/2019 |
12.29.1 | 189 | 8/8/2019 |
12.0.0.1 | 168 | 7/15/2019 |
12.0.0 | 165 | 7/15/2019 |