Hmmm, have a look in the umbraco.config to see make sure that there are actually children, you may not be seeing the correct structure in the content tree?
Other than that, try to see what Model.Id / Model.Name is to make sure that you're trying to access the correct node.
Thanks Sebastiaan. I should have checked the umbraco.config first. For some reason the contents were not in the correct order, I did republish all and the order was restored and everything behaved as expected.
I suspect it may be possibly be related to AutoFolders and it's process of creating folders and moving the nodes, I guess if they are not republished once moved their location in the XML file will not be updated.
Problem Accessing Descendant Nodes
Any reason why the following returns NewsItem nodes as expected:
But the following does not even though it is being used on a node that is the parent to a bunch of "NewsItem" nodes?
Am I missing something obvious?
Have you tried this:
No luck with that either. If I step through the code in Visual Studio it shows the node as having no children despite the fact there are 3.
I'm wondering if perhaps it may be related to the AutoFolders package in some way.
Hmmm, have a look in the umbraco.config to see make sure that there are actually children, you may not be seeing the correct structure in the content tree?
Other than that, try to see what Model.Id / Model.Name is to make sure that you're trying to access the correct node.
Thanks Sebastiaan. I should have checked the umbraco.config first. For some reason the contents were not in the correct order, I did republish all and the order was restored and everything behaved as expected.
I suspect it may be possibly be related to AutoFolders and it's process of creating folders and moving the nodes, I guess if they are not republished once moved their location in the XML file will not be updated.
is working on a reply...