Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I'm not really understanding your statement, is published to a particular Publication. A Page resides inside a Publication and can be published to one or more Publication Targets (and this can be done for every Publication that Page resides in, in case it is Blue Printed).</p> <p>So to find out if a certain page is published, you need to check if it is published to at least one target. This you can do directly in the list, by means of the OrganizationalItemItemsFilter. The returned list will show you per item whether or not it is published:</p> <pre><code>&lt;tcm:Item ID="tcm:2-46-64" Title="p" Type="64" Modified="2012-03-19T16:21:10" IsNew="false" Icon="T64L0P0" IsPublished="false" Lock="0" IsShared="false" IsLocalized="false" Trustee="tcm:0-0-0" /&gt; </code></pre> <p>Here you see that Page tcm:2-46-64 is not published. if we investigate the unique ID of that Page further we see that it resides in Publication tcm:0-2-1 (the Publication ID is the first number in the TCM URI of an Item).</p> <p>Now if the attribute IsPublished would have the value "true", this would indicate that this Page (in its Publication) is published to at least one target.</p> <p>To find out to which target that page is published, you can use the PublishEngine.IsPublished method. The IdentifiableObject you need to specify as the first parameter, will be that of your Page. It doesn't matter if we are talking about a shared (BluePrinted), localized or local item. The Publication ID in the TCM URI of your Page will tell you from what Publication the Page is Published in this case. </p> <p>Please note you need to use the 3rd overload: IsPublished(IdentifiableObject item, PublicationTarget publicationTarget, bool isPublishedInContext) and set the last parameter to true. This will get you the Publish Status for the specified item only, and not for any of its (BluePrint) parents or children.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload