Page goes into an endless loop when using Ditto with NestedContent
Hi,
When applying Ditto to a page with a field based on the "Nested Content" package, the page goes into an endless loop. This is probably related to the "Warning: If you have a POCO model that contains a reference to a child node, then this may create a circular-reference and cause the model-factory to enter an endless loop!"
But I am not using DittoPublishedContentModelFactory.
Is there anything I can do to remedy this problem? I would like to continue to use the nested content field if possible.
Does the DocType for the Nested Content contain any content picker properties? I'm trying to understand what would be causing the circular reference. Strange thing is that others have used Ditto with Nested Content.
I can confirm that Ditto and NestedContent work (really) well together, can you post some code or describe your setup so we can try and pin-point the issue ?
I did have the Our.Umbraco.Ditto.ModelFactory in my solution previously, but removed it later, because of the looping problem. The endless loop kept occurring anyway. After I removed the Glimpse7 package the problem went away, but I don't know if that is significant. Things are working OK now. The nested document type has both a media picker and a content picker, but that seems to be no problem.
Page goes into an endless loop when using Ditto with NestedContent
Hi,
When applying Ditto to a page with a field based on the "Nested Content" package, the page goes into an endless loop. This is probably related to the "Warning: If you have a POCO model that contains a reference to a child node, then this may create a circular-reference and cause the model-factory to enter an endless loop!"
But I am not using DittoPublishedContentModelFactory.
Is there anything I can do to remedy this problem? I would like to continue to use the nested content field if possible.
Any suggestions appreciated!
John
Hi John,
Does the DocType for the Nested Content contain any content picker properties? I'm trying to understand what would be causing the circular reference. Strange thing is that others have used Ditto with Nested Content.
Thanks,
- Lee
Hi John,
I can confirm that Ditto and NestedContent work (really) well together, can you post some code or describe your setup so we can try and pin-point the issue ?
Hendy
Hello Hendy, Lee,
I did have the Our.Umbraco.Ditto.ModelFactory in my solution previously, but removed it later, because of the looping problem. The endless loop kept occurring anyway. After I removed the Glimpse7 package the problem went away, but I don't know if that is significant. Things are working OK now. The nested document type has both a media picker and a content picker, but that seems to be no problem.
Thanks very much for your help.
John
is working on a reply...