Click or drag to resize
ApplicationBuilderExtensionsUsePageBuilder Method

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

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

Parameters

builder
Type: Kentico.Web.MvcIFeaturesBuilder
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 IFeaturesBuilder. 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
ExceptionCondition
InvalidOperationExceptionThrown when MapRoutes(RouteBuilderExtensionPoint) has already been called.
Remarks
Enabling the Page builder feature also registers components' bundles to Bundles and prepares routes to be mapped once MapRoutes(RouteBuilderExtensionPoint) is called. Inherently this method must be called prior to system routes mapping.
See Also