I have work flow enabled on my site.
I have a control that reads the CMS site maps and displays links to the pages... But i am unable to figure out how to figure out if to display the page only if the page has god through approval and has been published...
For example i have a page that is waiting for approval (so i would not want it displaying on the site) and i would not want it to display as a link until it have been approved and published.
Sounds simple enoughm, i thought i would be able to figure this out by looking at the status of the page:
|if (currentPage.Status == PageStatus.Published)
But this page, even though it has NOT been published yet comes back as status - you guessed it - published.....
Could someone share with me how to find out the status of a page so that i can avoid adding it to my menu...