Copied to clipboard

Flag this post as spam?

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


  • Peester 14 posts 20 karma points
    Jun 05, 2009 @ 16:47
    Peester
    0

    Retrieve all nodes

    hi all,

    i please need some help with following:

    i am trying to retrieve all active published nodes with a certain nodeTypeAlias. I am trying to do this using C# inside a usercontrol, can anyone maybe give me a example of how to accomplish this?

    many thanks :)

  • Dirk De Grave 4537 posts 6006 karma points MVP 3x admin c-trib
    Jun 05, 2009 @ 18:09
    Dirk De Grave
    0

    Hi,

    Could use content.Instance.XmlContent for that.

    [code]XPathNavigator xp = content.Instance.XmlContent.CreateNavigator();
    return xp.Select(xpathQuery);[/code]

    xpathQuery should read something as '//node [@nodeTypeAlias = 'Alias']'

    (Btw, all code for this can be found in the library class...)

    Cheers,
    /Dirk

  • 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