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...
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.
Continue discussion
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...
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.