Disable delete and re-arrange Widget in Kentico MVC 12

Kyle Pham asked on October 29, 2020 09:12

I wonder If there any way to disable deleting and re-arrange widgets in Kentico MVC 12? Thanks.

Correct Answer

David te Kloese answered on October 30, 2020 13:07

That is basically the power of Widgets... so if you don't want to use those perhaps it shouldn't be widgets to begin with?

2 votesVote for this answer Unmark Correct answer

Recent Answers


Sean Wright answered on October 31, 2020 17:52

I complete agree with David on this one.

Widgets enable the flexible composition of design and content on a Page. If you don't want that flexibility then use the standard approach of Controllers + Actions/Child Actions + Models to place content exactly where you want it on the page.

If you still want to give content editors the ability to change the design options of a Page without having to put those design options in the Page Type fields and you also don't want content editors to be able to re-arrange the layout of a Page, then look at MVC Page Templates.

Your Page Templates can have custom Properties, which enable a properties form dialog for content editors (like Widgets and Sections), but you don't have to have Editable Areas in the Page Template view, which means you (the developer) fully control the Layout and Design options.

0 votesVote for this answer Mark as a Correct answer

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