PageBuilderContainers.Kentico.MVC 12.29.2

There is a newer version of this package available.
See the version list below for details.
dotnet add package PageBuilderContainers.Kentico.MVC --version 12.29.2
NuGet\Install-Package PageBuilderContainers.Kentico.MVC -Version 12.29.2
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="PageBuilderContainers.Kentico.MVC" Version="12.29.2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add PageBuilderContainers.Kentico.MVC --version 12.29.2
#r "nuget: PageBuilderContainers.Kentico.MVC, 12.29.2"
#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 PageBuilderContainers.Kentico.MVC as a Cake Addin
#addin nuget:?package=PageBuilderContainers.Kentico.MVC&version=12.29.2

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

Restores Kentico "Webpart Containers" to MVC Page Builder Widgets.

This package is for Kentico 12 SP, to be installed on the MVC web application and not the Kentico Application ("Mother").

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 - MVC Site

  1. Install the PageBuilderContainers.Kentico.MVC NuGet package on your MVC Site and rebuild

Part 3 - Add to Widgets

  1. 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.
  2. 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

Usage

Create Containers

  1. Go to the Page Builder Containers UI element in Kentico
  2. Create your Containers or edit existing.
  3. 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 net461 is compatible.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (3)

Showing the top 3 NuGet packages that depend on PageBuilderContainers.Kentico.MVC:

Package Downloads
BootstrapLayoutTool.PageBuilderContainered.Kentico.MVC

Bootstrap 4 based Section tool for Kentico MVC Page Builder

HBS.StaticTextContainerizedWidget.Kentico.MVC

Containerized Static Text Widget for entering static text into a page builder section.

Bootstrap3LayoutTool.PageBuilderContainered.Kentico.MVC

Bootstrap 3 based Section tool for Kentico MVC Page Builder, with Page Builder Container

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
13.0.0 719 11/13/2020
12.29.2 4,834 8/7/2019
12.29.0.1 605 8/7/2019
12.29.0 580 8/6/2019
12.0.0.1 585 7/10/2019
12.0.0 593 7/10/2019

Added null check to Before and After checker to fix bug, split base classes into widget and section variations, switched to SemVer assembly format.