Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • kristian schneider 190 posts 351 karma points
    Jan 30, 2012 @ 12:05
    kristian schneider
    0

    dynamicNode.Next() throws a argument exception

    When I try to do a simple .next() I get the following error:

    Parameter name: Node 1052 has been orphaned and doesn't belong to a DynamicNodeList

    Why does it do that? The structure is like this 

    and I am calling the following code on the Home node:

    var rightContentLib = Model.Next();

     

  • Rodion Novoselov 694 posts 859 karma points
    Jan 30, 2012 @ 13:23
    Rodion Novoselov
    0

    Hi. The Next method will work only when the node it's applyed to has a parent node. If you want to iterate over top-level nodes you'd rather look for other way to do it.

  • awm 187 posts 376 karma points
    Jan 30, 2012 @ 13:40
    awm
    0

    So would it work if all the nodes were under a parent 'site' node then?

  • Rodion Novoselov 694 posts 859 karma points
    Jan 30, 2012 @ 14:24
    Rodion Novoselov
    0

    Yes, it should. Actually from the structure you show I can hardly imagine a scenario when it could be required to call the Next() method on any top-level node ("Home", "RCL", and "Carousel"). Could you just tell what you need it for?

Please Sign in or register to post replies

Write your reply to:

Draft