Copied to clipboard

Flag this post as spam?

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


  • Rocoeh 65 posts 86 karma points
    Mar 14, 2013 @ 12:47
    Rocoeh
    0

    Getting node by alias rather than id

    Hi,

     

    I have been creating a dynamic node with

    DynamicNode node = new  umbraco.MacroEngines.DynamicNode(2471);

    Is there a way I can do this using the alias so if the node id changes (when I use courier) it still works.

     

    Thanks


     

     

  • Charles Afford 1163 posts 1709 karma points
    Mar 14, 2013 @ 21:55
    Charles Afford
    0

    Hello, i think you want to use

    umbraco.NodeFactory.Node

    There are some methods on there that will allow you to get the node by alais i believe :),  Charlie

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies