Hey David,

If you don't mind, I would like to try to integrate your solution to the magnolia code.
The nested paragraph is really a powerful feature.

Can you let us know when you have something written ? Or maybe you can contact me directly ?

Regards,

Niko

On Sep 6, 2006, at 11:03 PM, David Smith wrote:

PS -- will try to post something to the wiki tonight on this solution and a compiled content node iterator implementing the solution.

-- David

David Smith wrote:
ContentNodeIterator saves it's state in a set of fixed name request attributes. If you start a content node iterator inside a running content node iterator, the second instance corrupts the state of the outer one. I handled this by creating my own version of content node iterator that detected a previous running iterator, saved it's state, and then proceeded. At the end of the run, it restores the previous state if any existed.

On the plus side, it works very well and extremely simple. On the down side, the outer node iterator's state isn't available anymore until the current one finishes.

--David

Bernd Brenner wrote:
Hello magnolians :-)

I would like to implement a paragraph in which there will be another collection of nested paragrahps.

The problem is that when I insert the editBar/newBar of the inner paragrpah, the outer paragraph looses its "context", so that all following <cout>-tags of the outer paragraph won't be able to be displayed. And also the following outer paragraphs don't find their data.

When I take the inner paragraph out of the template source, all outer data is correctly shown.

Is it possible to set the "context" manually? Or is this a stupid idea?

Did anyone of you already sucessfully implemented a nested paragraph?

Thanks in advance for any hints,

Bernd

----------------------------------------------------------------
for list details see
http://www.magnolia.info/en/magnolia/developer.html
----------------------------------------------------------------




--
David Smith
Network Operations Supervisor
Department of Entomology
Cornell University
2132 Comstock Hall
Ithaca, NY 14853
Phone: (607) 255-9571
Fax: (607) 255-0940


----------------------------------------------------------------
for list details see
http://www.magnolia.info/en/magnolia/developer.html
----------------------------------------------------------------


----------------------------------------------------------------
for list details see
http://www.magnolia.info/en/magnolia/developer.html
----------------------------------------------------------------

Reply via email to