Is possible create widget in widget

Kanogwan Latthakanog asked on September 29, 2023 06:25

I want to create widget A and in widget A have widget B , It's possible

Thank you.

Recent Answers


Jono Rickard answered on September 29, 2023 06:52

Heya Kanogwan,

The simple answer is no.

However! Depending on what you need, there are two ways to produce similar effects though.

  1. Inherit from an existing widget - this is good if you want to add before/after html, or expand the available widget properties. Here's a good example in the Kentico docs that expands the default Kentico Form widget to have a heading

  2. You can have a 1-level nested effect here by utilizing Page Builder Sections. You can create a section that only allows your inner widgets to be added inside it, and you can add properties to the section to modify its html in a similar fashion to a widget would - essentially creating a nested-widget approach. Here's Kenticos docs on developing Page Builder sections & here's a link to how you can start restricting what widgets can go inside a editable area (which can also be done for sections)

0 votesVote for this answer Mark as a Correct answer

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