Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

can I have a parsys inside parsys

I'm having a paragraph system (parsys) in my page, and inside that I'm dragging one component; that component has two paragraph systems inside it. So now I will be dragging a rich text component in both of the two paragraph systems which are present in the component. However, after dragging the rich-text components in the two paragraph systems, I'm not able to edit the those two rich text components, as they got overlapped. Can you tell me whether we can have a parsys inside a parsys and will that support content authoring.

like image 780
balaji Avatar asked Apr 23 '13 09:04

balaji


1 Answers

Yes it is possible to have a parsys inside a parsys. The overlapping problem would be a CSS issue, and can be solved most of the time by adding the following div at the end of your component code.

<div style="clear:both"></div>

Also, to prevent adding additional div styles to your page, this should be done only in author mode:

<% if (WCMMode.fromRequest(request) == WCMMode.EDIT) { %>
    <div style="clear:both"></div>
<% } %>
like image 200
puuch Avatar answered Oct 17 '22 04:10

puuch