Click or drag to resize
ApplicationBuilderExtensionsUsePageBuilder Method

Enables the Page builder feature to compose page content based on registered widgets.

The preview functionality must be enabled using UsePreview(IApplicationBuilder) in order to use the Page builder.

Namespace: Kentico.PageBuilder.Web.Mvc
Assembly: Kentico.Content.Web.Mvc (in Kentico.Content.Web.Mvc.dll) Version: 12.0.0
Syntax
C#
public static void UsePageBuilder(
	this IApplicationBuilder builder,
	PageBuilderOptions options = null
)

Parameters

builder
Type: Kentico.Web.MvcIApplicationBuilder
The application builder.
options (Optional)
Type: Kentico.PageBuilder.Web.MvcPageBuilderOptions
Page builder options.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IApplicationBuilder. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
Exceptions
Remarks
Enabling the Page builder feature also registers components' bundles to Bundles and prepares routes to be mapped once MapRoutes(ExtensionPointRouteCollection) is called. Inherently this method must be called prior to system routes mapping.
See Also