Limiting widgets allowed in zones

Brian Brown asked on September 17, 2021 23:34

I am following the documentation here for Limiting widgets allowed in zones: https://docs.xperience.io/developing-websites/page-builder-development/developing-page-builder-sections

<div>
    @{
        var widgetsWhitelist = new[] { Kentico.Content.Web.Mvc.SystemComponentIdentifiers.FORM_WIDGET_IDENTIFIER,
                                       "LearningKit.Widgets.NumberWidget",
                                       "LearningKit.Widgets.SomeOtherWidget" };
    }
    @Html.Kentico().WidgetZone(allowedWidgets: widgetsWhitelist)
</div>

I am getting a WidgetZone does not have parameter named allowedWidgets error message. Did I forget to add a reference to something?

Correct Answer

Sean Wright answered on September 17, 2021 23:40

This feature is available in Kentico Xperience 13 Refresh 3. What version is your application?

https://docs.xperience.io/release-notes-xperience-13#ReleasenotesXperience13-Ref3

1 votesVote for this answer Unmark Correct answer

Recent Answers


Brenden Kehren answered on September 17, 2021 23:41

What minor version are you on? I believe this is only available on Refresh 3 and above.

1 votesVote for this answer Mark as a Correct answer

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