Try our conversational search powered by Generative AI!


I would like to know how and where to put code that should trigger when a page is published.
Sep 16, 2008 16:13

Hello Johan,

Ruwen made a post about determining if its a new page or and update when lisening to the publish event. Could check it out here.

Sep 17, 2008 8:27

You need to add an event handler to handle the On publish page event for the EPiSever

In your page initializer add

DataFactory.Instance.PublishedPage += new PageEventHandler(Instance_PublishedPage); 

This will create a handler as below

 void Instance_PublishedPage(object sender, PageEventArgs e)

	//put your code here


Sep 17, 2008 8:34
It´s working fine. Thanks to Petter and Alok Smile
Sep 17, 2008 10:22
* 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.