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
I was trying something like
IEnumerable<umbraco.NodeFactory.Node> nodes = uQuery.GetNodesByType("NodeType").Where(x => x.Parent.NodeTypeAlias.Equals("nodeParentType"));
I read that uQuery should get unpublished nodes but Im not getting any nodes back.
got in this old post
Hope some one can lead me in a direction :D
By coincidence I answered a very similar query just yesterday here
You can use the Content Service and it's methods to query unpublished content as documented here
I will try this !
Awesome, I should add that you can query unpublished content with uQuery using Document however this uses the Umbraco v4 API while the Content Service uses the v6 API so this is the recommend approach.
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted