Hi Kentico Tech support,
var grants = DocumentQuery("custom.Grant_Application_Page").OnCurrentSite() when I for loop this grants, I saw DocumentCanBePublished property of each treenode (grant) is protected. How can I get this value or how to get if a page is rejected?
Thanks Jasper
Try ".OnCurrentSite().PublishedVersion(true|false)" to retrieve nodes which can be published or not. The workflow status itself is accessible from the TreeNode's workflow properties.
Please, sign in to be able to submit a new answer.