how to create widgets with custom controller

Gokilavani R asked on July 6, 2021 13:52

Hi, I am using kentico 13 free edition to develop simple site. To create this simple site, I need to add reusable components with editable options. I gone through the official kentico tutorial document for basic understanding about basic widgets and widgets with custom controller. But I need simple example to create the widgets with custom controller.

It would be helpful if I get simple example to create the widgets with custom controller

Correct Answer

Sean Wright answered on July 6, 2021 17:20

Are you using ASP.NET Core of MVC 5 with .NET 4.8?

The documentation on widgets can be toggled between .NET Core and MVC 5.

Widgets with Controllers don't exist in ASP.NET Core development and have instead been replaced by using View Components.

If you are starting a new site/application, I strongly recommend using ASP.NET Core (either via .NET Core 3.1 or .NET 5) and avoiding any MVC 5 development on .NET 4.8.

0 votesVote for this answer Unmark Correct answer

   Please, sign in to be able to submit a new answer.