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 4541 posts 6021 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

Please Sign in or register to post replies

Write your reply to:

Draft