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.
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.
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
uQuery GetNodesByType() should be what you need.
Rich
Cheers Rich, that worked a treat.
is working on a reply...
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.