[opencms-dev] Nested container doesn't follow its parent
Paoletti Corrado
c.paoletti at fineco.it
Tue Oct 26 09:21:49 CEST 2021
FinecoBank S.p.A. - Internal Use Only
Hi all,
I was reading:
https://documentation.opencms.org/opencms-documentation/content-in-opencms/formatters-and-their-configuration/nested-containers/index.html
and I was wondering what would happens to the nested containers when I move labels.
I have a similar situation (rows instead of labels, see attachments) and when I change their positions inner container does not follow its parent.
My core code is:
<c:forEach var="item" items="${content.valueList.Item}" varStatus="status"> ... some code ...
<a href="#elenco-combinati-${status.index}" data-toggle="collapse">Combinato con</a> <div id="elenco-combinati-${status.index}" class="collapse>
<cms:container name="combinato-${status.index}" type="combinato">
<p>Aggiungi combinato</p>
</cms:container>
</div>
... other some code ...
I suppose ${status.count}, used in inner container name, has to be intended as position, so after parents move to new position children remains at their thus loosing correct reference to their parent.
I am doing some tests to find a unique id to link parent and his child (es. parent uuid) but after:
${item.getContentValue()}
in the forEach loop I can't go forward to find this uuid!
@OpenCms teams: https://documentation.opencms.org/elementary-demo/tabs-accordion/ page does not exist.
Kind regards.
Corrado
-------------- next part --------------
A non-text attachment was scrubbed...
Name: step-1.jpg
Type: image/jpeg
Size: 37844 bytes
Desc: step-1.jpg
URL: <http://lists.opencms.org/pipermail/opencms-dev/attachments/20211026/66546087/attachment-0003.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: step-2.jpg
Type: image/jpeg
Size: 97061 bytes
Desc: step-2.jpg
URL: <http://lists.opencms.org/pipermail/opencms-dev/attachments/20211026/66546087/attachment-0004.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: step-3.jpg
Type: image/jpeg
Size: 52755 bytes
Desc: step-3.jpg
URL: <http://lists.opencms.org/pipermail/opencms-dev/attachments/20211026/66546087/attachment-0005.jpg>
More information about the opencms-dev
mailing list