DynamicNodeWalker methods missing on a DynamicNode variable
I'm running into a situation where a dynamicNode variable doesn't have the DynamicNodeWalker methods.
dynamic startNode = @Model.AncestorOrSelf(3);
I've verified startNode has children, but when I try @startNode.First().Id I get DynamicNull. I also get DynamicNull when I try @startNode.First().GetType().ToString() . Yet @startNode.Parent.Id works as expected. I think this is a variation of the problem I reported here: http://our.umbraco.org/forum/developers/razor/24951-Razor-best-practice-way-to-check-if-a-node-exists (Maybe I shouldn't have marked that as solved, since it's more of a workaround.)
DynamicNodeWalker methods missing on a DynamicNode variable
I'm running into a situation where a dynamicNode variable doesn't have the DynamicNodeWalker methods.
I've verified startNode has children, but when I try @startNode.First().Id I get DynamicNull. I also get DynamicNull when I try @startNode.First().GetType().ToString() . Yet @startNode.Parent.Id works as expected. I think this is a variation of the problem I reported here: http://our.umbraco.org/forum/developers/razor/24951-Razor-best-practice-way-to-check-if-a-node-exists (Maybe I shouldn't have marked that as solved, since it's more of a workaround.)
is working on a reply...