Can't create a widget if wrap multiple widgets

mark json asked on March 9, 2022 11:59

I have three widgets in my application:

  • TextWidget
  • ImageWidget
  • SliderWidget(wrap and include TextWidget, ImageWidget)

There is no problem if I add text or image by click TextWidget/ImageWidget from CMS. But if I click SliderWidget I can't add text or image here. I copied necessary files from: Views/Shared/Widgets, Controllers/Widgets and Models/Widgets of CardWidget from Dancing Coat example, just renamed it.

Problem output: here Expect output: here

Can someone help me? Thanks in advance!

Recent Answers


mark json answered on March 10, 2022 02:14

Can anyone help me?

0 votesVote for this answer Mark as a Correct answer

Dmitry Bastron answered on March 10, 2022 07:41

Hi Mark,

It's hard to help you with very little context. Could you please post the full code of your slider widget somewhere? Controller, view, model and widget registration.

Also, are there any frontend errors in your browser developer console? It might give you a hint where the problem is.

1 votesVote for this answer Mark as a Correct answer

mark json answered on March 10, 2022 08:30

This problem resolved by edit my SliderWidgetController

0 votesVote for this answer Mark as a Correct answer

indigo card answered on April 15, 2022 12:02

I have same type issue : When using the technique listed here, under the heading "Expanding content to fit the viewport": a Column widget works very well, but a Wrap does not. Is there something maybe missing from the way the Wrap widget lays itself out that could be improved to act more like a Column?

Essentially, the following sample shows the problem. If you run this app on a device, it should start out with a view that can be scrolled so all children are accessible. Hitting the button at the top to switch to using a Wrap will cause an Overflow. Switching back to a Column, you can scroll again, and if you change the number in the text field to a smaller number, you can get the Wrap widget to work well as long as no Overflow happens.

0 votesVote for this answer Mark as a Correct answer

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