You are wanting to do this in .NET, correct? One way is to use uQuery from uComponents, something like this:
using umbraco.presentation.nodeFactory; using uComponents.Core.uQueryExtensions;
List<Node> nodes = uComponents.Core.uQuery.GetNodesByXPath("//* [@isDoc and yourProperty='yourValue'");
I'm not sure if you can do this using only the built-in NodeFactory. Another alternative might be to use umbraco.library:GetXmlAll() and filter using xpath - but the uQuery method is nice since it returns a Node object and has several other handy methods.
Get all content nodes by property
I need to get all content nodes by a certain property. Is there any way of doing this?
Hi,
You are wanting to do this in .NET, correct? One way is to use uQuery from uComponents, something like this:
I'm not sure if you can do this using only the built-in NodeFactory. Another alternative might be to use umbraco.library:GetXmlAll() and filter using xpath - but the uQuery method is nice since it returns a Node object and has several other handy methods.
Hope this helps,
Tom
is working on a reply...