Adding a custom web part as a widget

Carson Wong asked on July 28, 2016 23:00

Hi,

I create a custom webpart and I want to add it on Kentico as a widget. I am able to add the webpart on the Design tab. But when I am on the Page Editor, I don't see my webpart available. Can someone guide as to where I could enable said feature (through code or Kentico)?

Thank you!

Recent Answers


Development Support answered on July 29, 2016 04:36

Super easy in Kentico. Once your web part is created, go to the "Widgets" module, add a new widget, and select your web part as it's base.

Then simply go to Properties, hide/set/show whatever properties you want the user to use, then make sure the widget is added to the site, and lastly go to Security tab and hit allow it to be used by whatever you want (i usually do authenticated users). Now it will show!

6 votesVote for this answer Mark as a Correct answer

Chetan Sharma answered on July 29, 2016 08:28

Hi Carson,

Here is a step by step guide to turn an exisiting webpart into a widget.

https://docs.kentico.com/display/K9/Creating+widgets

I must say that documentation is really nice that will help you accomplish your desired goal.

Chetan Chetan

1 votesVote for this answer Mark as a Correct answer

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