I hava a problem on handling publish event in event system.
What I want to do is following.
When a user publish page or component, get following information and output them to a log file.
- published item name
- the user name who published
- publish transaction ID which is generated by the published item
The problem is getting publish transaction ID.
It's possible to get transaction ID by "PublishEventArgs.PublishTransactions". But, for instance a user selects 3 pages and publishes them at one action, "PublishEventArgs.PublishTransactions" returns 3 transactions in each page publishing event. So I cannot distinguish which one is generated by a published page.
Is this normal behaviour of event system?
How can I get correct publish transaction in page publishing event?