Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
In version 4.7 the followering line worked fine, but in version 6 it gives an null reference error.Can someone tell me why?DynamicNodeList _nodes = Model.AncestorOrSelf("NewsFolder").Descendants("NewsItem");
That looks fine to me:
DynamicNodeList nodes = Model.AncestorOrSelf("NewsFolder").Descendants("NewsItem");
Someone else might be able to shed light on wether its a version 6.0 + thing. but i dont think this would be an issue. Are all the document types and nodes correct?
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
DynamicNodeList
In version 4.7 the followering line worked fine, but in version 6 it gives an null reference error.
Can someone tell me why?
DynamicNodeList _nodes = Model.AncestorOrSelf("NewsFolder").Descendants("NewsItem");
That looks fine to me:
DynamicNodeList nodes = Model.AncestorOrSelf("NewsFolder").Descendants("NewsItem");
Someone else might be able to shed light on wether its a version 6.0 + thing. but i dont think this would be an issue. Are all the document types and nodes correct?
is working on a reply...