Try our conversational search powered by Generative AI!

Process the event when an Instance of the certain page type is publishing

Vote:
 

Hello all,

I need to process the event when an instance of the certain page type is publishing. I understand that it can be done in the InitializationModule by defining DataFactory.Instance.PublishingPage and casting page type.

But is it possible to process this event not in the InitializationModule?

#113605
Nov 25, 2014 14:16
Vote:
 

You can do it from whereever you want, as long as that code is executed before you publish the page. Just think about that if the code is executed several times, you'll attach your event handler to the event each time.

#113613
Nov 25, 2014 16:14
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.