I'm a little bit confused here, but  I haven't found any way to figure out if a page (retrieved with a FindPagesWithCritera) is published or only saved.

StopPublish is always "12/31/9999 11:59:59 PM" and PendingPublish always seem to be false, what am I missing?

#27313 Jan 26, 2009 15:54
  • René Voigt
    Member since: 2005

    You can use the CheckPublishedStatus method as below:



    #27347 Jan 27, 2009 10:49
  • M I

    Actually I just figured something out, I'm using two different kinds of searches, one using a SearchDataSource, and one FindPagesWithCriteria, when listing the results and filtering the results (same filter for both searches) I output PageLink.ID, PendingPublish and CheckPublishedStatus(PagePublishedStatus.Published).

    In the FindPagesWithCritera output this outputs: "558 True False", which is correct, but when I look at the same output after the SearchDataSource search the output is the opposite, for some reason, resulting in "558 False True". So for some reason the Page is published all of a sudden, any suggestions to what is happening here?

    #27350 Edited, Jan 27, 2009 11:45
  • M I


    I completly missed the fact that I was searching on a specific language, and I got the page as a result and it was not published, but when I checked if the parent page was published I didn't forgot to send along an ILanguageSelector, resulting in the page being fetched from on the language it was created, and published.

    Oh well, accidents happen :)

    #27372 Jan 27, 2009 14:50