Copied to clipboard

Flag this post as spam?

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


  • Kevin Walker 66 posts 87 karma points
    Jul 08, 2011 @ 12:15
    Kevin Walker
    0

    Get nodes of a particular document type?

    Im looking to retrieve all nodes of a particular documentTypeAlias within a usercontrol using c#. I can't seem to find any documentation on doing this without traversing through parent node hierarchies an checking document type aliases that way? Can anyone point me in the right direction? Many thanks.

     

  • Rich Green 2246 posts 4008 karma points
    Jul 08, 2011 @ 12:20
    Rich Green
    0

    Hey Kevin,

    You could use uQuery http://ucomponents.codeplex.com/wikipage?title=uQuery which if i'm not mistaken is a rewrite of Hendy's Umbraco Helper Class http://blog.hendyracher.co.uk/umbraco-helper-class/.

    By using either of these you should be able to use an xPath query to get teh DocTypes you need.

    Rich

  • Rich Green 2246 posts 4008 karma points
    Jul 08, 2011 @ 12:22
    Rich Green
    0

    uQuery GetNodesByType() should be what you need.

    Rich

  • Kevin Walker 66 posts 87 karma points
    Jul 08, 2011 @ 14:37
    Kevin Walker
    0

    Cheers Rich, that worked a treat.

Please Sign in or register to post replies

Write your reply to:

Draft