PartialWidgetPage.Kentico.MVC 13.0.3

dotnet add package PartialWidgetPage.Kentico.MVC --version 13.0.3                
NuGet\Install-Package PartialWidgetPage.Kentico.MVC -Version 13.0.3                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="PartialWidgetPage.Kentico.MVC" Version="13.0.3" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add PartialWidgetPage.Kentico.MVC --version 13.0.3                
#r "nuget: PartialWidgetPage.Kentico.MVC, 13.0.3"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install PartialWidgetPage.Kentico.MVC as a Cake Addin
#addin nuget:?package=PartialWidgetPage.Kentico.MVC&version=13.0.3

// Install PartialWidgetPage.Kentico.MVC as a Cake Tool
#tool nuget:?package=PartialWidgetPage.Kentico.MVC&version=13.0.3                

Installation

Part 1 - Kentico Application ("Mother"):

  1. Install PageBuilderContainers.Kentico Nuget Package on your Kentico Application
  2. Rebuild your web application
  3. Log into Kentico as a Global Administrator
  4. Go to Modules
  5. Search and edit Page Builder Containers
  6. Go to Sites and add to your site.

Part 2 - Install on MVC Site

For MVC.Net Framework

  1. 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 be Model.Properties instead of Model

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)
Product Compatible and additional computed target framework versions.
.NET Framework net48 is compatible.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
13.0.3 7,048 12/19/2020
13.0.2 1,254 12/18/2020
13.0.1 1,233 12/15/2020
12.29.9 2,683 10/2/2020
12.29.8 524 9/2/2020
12.29.7 802 6/17/2020
12.29.6 526 6/17/2020
12.29.5 584 6/15/2020
12.29.4 2,494 10/10/2019
12.29.3 744 9/20/2019
12.29.2 701 8/9/2019
12.29.1 647 8/8/2019
12.0.0.1 619 7/15/2019
12.0.0 622 7/15/2019

Parital Widget Page failed when rendering on a page that had no previous Page Builder Context.  Adjusted to account.