What I need is to have the Publication Target of a current Page.
With the following code I get the Publication Target where the Page is published, but now I need to ensure that this Publication Target is the same as the Publication Target where the Page is publishing to.
ICollection<PublishInfo> publishInfo = PublishEngine.GetPublishInfo(page);
foreach (PublishInfo info in publishInfo)
I'm trying to avoid the situation that if you publish a Page from the same CMS into Staging and Live and you are showing the Pages just if they are published or not. Also Pages published on Staging will appear in Live.
Thanks in advance