Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
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 :)
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
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
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 :)
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
is working on a reply...