[opencms-dev] Nested containers

Laurent Druart druart at ugr.be
Fri May 27 08:55:55 CEST 2022


Hello,

I'm trying to use nested containers...

I created a content "row" and in the formatter on this content I'm 
creating nested containers with:

<cms:formatter var="content" val="value">
   <div>
     <div>
       <h2>${value.Title}</h2>
       <p>${value.Configuration}</p>
     </div>
   </div>
   <div class="row g-5">
   <c:forEach begin="1" end="4" var="i" step="1">
       <div class="col-lg-3">
       <c:out value="${i}"/><br>
                 <cms:container name="col-container${i}" type="layout"
                width="500" maxElements="8" tagClass="my-container-border">
                <h4>
                Please add content
                </h4>
                </cms:container>
     </div>
   </c:forEach>
   </div>
</cms:formatter>

I can drag and drop this content on a page but I can't drag and drop 
other contents in this component. Nested containers are not "visible".

First I tried without element views and now I've added element views: 
"page" for my main container and "layout" for my nested containers but 
this will not work.

Where is my error?

Thank you,

Laurent





More information about the opencms-dev mailing list