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
http://our.umbraco.org/forum/developers/api-questions/7212-Get-List-Of-Unpublished-Nodes-Of-Specific-DocType
Hope some one can lead me in a direction :D
Hi Dan,
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
Jeavon
thanks Jeavon
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:
Upload image
Image will be uploaded when post is submitted
How to get unpublished nodes
I was trying something like
I read that uQuery should get unpublished nodes but Im not getting any nodes back.
got in this old post
http://our.umbraco.org/forum/developers/api-questions/7212-Get-List-Of-Unpublished-Nodes-Of-Specific-DocType
Hope some one can lead me in a direction :D
Hi Dan,
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
Jeavon
thanks Jeavon
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...