how to check if a page is rejected ?

PITO Web CMS asked on February 15, 2024 00:05

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

Recent Answers


Elmar Höfinghoff answered on February 20, 2024 10:50

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.

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.