PartialWidgetPage.Kentico.MVC.Core
13.0.3
Install-Package PartialWidgetPage.Kentico.MVC.Core -Version 13.0.3
dotnet add package PartialWidgetPage.Kentico.MVC.Core --version 13.0.3
<PackageReference Include="PartialWidgetPage.Kentico.MVC.Core" Version="13.0.3" />
paket add PartialWidgetPage.Kentico.MVC.Core --version 13.0.3
#r "nuget: PartialWidgetPage.Kentico.MVC.Core, 13.0.3"
// Install PartialWidgetPage.Kentico.MVC.Core as a Cake Addin
#addin nuget:?package=PartialWidgetPage.Kentico.MVC.Core&version=13.0.3
// Install PartialWidgetPage.Kentico.MVC.Core as a Cake Tool
#tool nuget:?package=PartialWidgetPage.Kentico.MVC.Core&version=13.0.3
Partial Widget Page
This tool allows you to render out a Widget (Page Builder) Page as a Partial.
Installation
Install the Nuget Package on your .net Core site.
Add this TagHelper to your View or _ViewImport.cshtml
@addTagHelper *, PartialWidgetPage.Kentico.MVC.Core
You may also want to add a Using for the PartialWidgetPage namespace
@using PartialWidgetPage
Usage
See the Repository's Readme for full usage. Here are some sample tag helpers:
<inlinewidgetpage initialize-document-prior="true" documentid="123" >
@await Component.InvokeAsync("ShareableContentComponent", new { Testing = "Hello" })
</inlinewidgetpage>
<inlinewidgetpage initialize-document-prior="true" page=@Model.Page >
@await Component.InvokeAsync("ShareableContentComponent", new { Testing = "Hello" })
</inlinewidgetpage>
<inlinewidgetpage initialize-document-prior="false">
@await Component.InvokeAsync("SomeComponentThatInitializesDoc", new { DocumentID = 123 })
</inlinewidgetpage>
<ajaxwidgetpage relative-url="/Custom/CustomResponse" />
<ajaxwidgetpage documentid="123" />
<ajaxwidgetpage page=@Model.MyTreeNode />
Product | Versions |
---|---|
.NET | net5.0 net5.0-windows net6.0 net6.0-android net6.0-ios net6.0-maccatalyst net6.0-macos net6.0-tvos net6.0-windows |
.NET Core | netcoreapp3.1 |
-
.NETCoreApp 3.1
- Kentico.Xperience.AspNetCore.WebApp (>= 13.0.0)
- Microsoft.AspNetCore.Http.Abstractions (>= 2.2.0)
- Microsoft.AspNetCore.Mvc.ViewFeatures (>= 2.2.0)
- Microsoft.AspNetCore.Razor (>= 2.2.0)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on PartialWidgetPage.Kentico.MVC.Core:
Package | Downloads |
---|---|
PartialWidgetPage.Kentico.MVC.Core.Widget
For Kentico 13 .net Core only, this is the widget that leverages the PartialWidgetPage.Kentico.MVC.Core libraries, allowing you to render pages through a widget |
GitHub repositories
This package is not used by any popular GitHub repositories.
Parital Widget Page failed when rendering on a page that had no previous Page Builder Context. Adjusted to account.