Found out something that made moving the outer collections work again. Instead of simply specifying:
> <cms:contentNodeIterator contentNodeCollectionName="contentParagraph"> > <cms:adminOnly><cms:editBar/></cms:adminOnly> and relying on cms:editBar to determine the contentNodeCollectionName, set the contentNodeCollectionName explicitely and moving the paragraph works again: > <cms:contentNodeIterator contentNodeCollectionName="contentParagraph"> > <cms:adminOnly><cms:editBar contentNodeCollectionName="contentParagraph" /></cms:adminOnly> I'll continue tomorrow and keep you posted on the results. Andreas Weder > -----Original Message----- > From: [email protected] [mailto:[EMAIL PROTECTED] > Sent: Dienstag, 25. April 2006 19:43 > To: [email protected] > Subject: Re: [magnolia-user] Nested Paragraphs > > > > <<<< ON Jan 12, Jean-Sebastien Bournival wrote: > How about this solution for nested paragraphs: > > ------------------------------------------------ > <cms:contentNodeIterator contentNodeCollectionName="contentParagraph"> > <cms:adminOnly><cms:editBar/></cms:adminOnly> > > <%-- retrieving the item node uuid ... --%> > <c:set var="id"> > <cms:out nodeDataName="jcr:uuid"/> > </c:set> > > <cms:includeTemplate> > <%-- ... passing it to sub paragraph --%> > <cms:attribute name="uuid" value="${id}" /> > </cms:includeTemplate> > </cms:contentNodeIterator> > > ------------------------------------------------- > And then, inside the subparagraph JSP : > ------------------------------------------------- > > <%-- collection name is concatenated with "uuid" for uniqueness --%> > <cms:contentNodeIterator contentNodeCollectionName="coll_${uuid}"> > <cms:adminOnly><cms:editBar/></cms:adminOnly> > <cms:includeTemplate /> > </cms:contentNodeIterator> > > <cms:adminOnly> > <cms:newBar contentNodeCollectionName="coll_${uuid}" > paragraph="someParagraph" /> > </cms:adminOnly> > > > ----------------------------- > How about it? Any thoughts?? > > >>>> > > Does Jean's solution work for somebody. I used a similar one, but > passed the name of the paragraph using a request attribute instead. > > My page got corrupted after the first move attempt. Got lot's of > exceptions indicating that the name of the outer collection node > was lost for all but the first paragraph. > > Andreas Weder > > ---------------------------------------------------------------- > for list details see > http://www.magnolia.info/en/magnolia/developer.html > ---------------------------------------------------------------- > > ---------------------------------------------------------------- for list details see http://www.magnolia.info/en/magnolia/developer.html ----------------------------------------------------------------
