![]() |
VOOZH | about |
dotnet add package PartialWidgetPage.Kentico.MVC --version 13.0.3
NuGet\Install-Package PartialWidgetPage.Kentico.MVC -Version 13.0.3
<PackageReference Include="PartialWidgetPage.Kentico.MVC" Version="13.0.3" />
<PackageVersion Include="PartialWidgetPage.Kentico.MVC" Version="13.0.3" />Directory.Packages.props
<PackageReference Include="PartialWidgetPage.Kentico.MVC" />Project file
paket add PartialWidgetPage.Kentico.MVC --version 13.0.3
#r "nuget: PartialWidgetPage.Kentico.MVC, 13.0.3"
#:package PartialWidgetPage.Kentico.MVC@13.0.3
#addin nuget:?package=PartialWidgetPage.Kentico.MVC&version=13.0.3Install as a Cake Addin
#tool nuget:?package=PartialWidgetPage.Kentico.MVC&version=13.0.3Install as a Cake Tool
PageBuilderContainers.Kentico Nuget Package on your Kentico ApplicationPage Builder ContainersSites and add to your site.PageBuilderContainers.Kentico.MVC NuGet package on your MVC Site and rebuildHave 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")]
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.
In your Widget's View, add @Html.PageBuilderContainerBefore(Model) at the beginning of your rendering, and @Html.PageBuilderContainerAfter(Model) at the end
ComponentViewModel<YourWidgetModelClass>, then your property may be Model.Properties instead of ModelAdditionally 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)
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET Framework | net48 net48 is compatible. net481 net481 was computed. |
This package is not used by any NuGet packages.
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 13.0.3 | 8,170 | 12/19/2020 |
| 13.0.2 | 1,488 | 12/18/2020 |
| 13.0.1 | 1,469 | 12/15/2020 |
| 12.29.9 | 3,749 | 10/2/2020 |
| 12.29.8 | 812 | 9/2/2020 |
| 12.29.7 | 1,043 | 6/17/2020 |
| 12.29.6 | 787 | 6/17/2020 |
| 12.29.5 | 817 | 6/15/2020 |
| 12.29.4 | 2,756 | 10/10/2019 |
| 12.29.3 | 1,014 | 9/20/2019 |
| 12.29.2 | 964 | 8/9/2019 |
| 12.29.1 | 908 | 8/8/2019 |
| 12.0.0.1 | 894 | 7/15/2019 |
| 12.0.0 | 883 | 7/15/2019 |
Parital Widget Page failed when rendering on a page that had no previous Page Builder Context. Adjusted to account.