We need to determine who triggered the publishing of a Tridion 2009 page: editor or code.
Please use as an example: Publication A Publication B which inherits from A
Now when we publish a page in publication A using “Also publish/unpublish in Child Publications” the event system will be triggered for the page in publication A and also for the page in publication B.
In this case we want to use the event system only on the page from publication A
Something like:
public override void OnPageSetPublishedToPost(Page page, string publicationTarget, bool published, string user)
{
if (!page.IsTriggeredByParent)
{
// do stuff
}
}
The problem is we don`t know how to determine the value for “IsTriggeredByParent”.
Thank you for your time