Container Around Multiple Widgets

jason zerr asked on November 9, 2018 16:20

Hey Is there a way to create some kind of wrapper around mutiple instances of same widget type, I am trying to create a section wrapper when this happens,Typically a editor would be able to group together these widgets in a container of some sort and the container will abstract adding wrapper div and classes to that wrapper. I have looked into the Layout webparts but I don't know if I am looking in the right place.

Recent Answers

Rui Wang answered on November 9, 2018 18:39

Not easily with a single container. I would suggest create 2 containers (file), one ContainerXOpen contains the opening div and stuff goes before the widgets. one ContainerXClose contains the closing div tags. When editor adds multiple widgets in a roll, select ContainerXOpen for the first widget and Close for the last widget.

Similar to how you can use HTML Envelop Before and After across multiple web parts.

0 votesVote for this answer Mark as a Correct answer

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