Portal Engine Questions on portal engine and web parts.
Version 6.x > Portal Engine > Trigger event on page view View modes: 
User avatar
Certified Developer 8
Certified Developer 8
majoor-evident - 2/26/2013 8:46:17 AM
   
Trigger event on page view
Hello,

Is there a global event that triggers on a user's page view? I need to set a value in a custom table each time a registered user views a page. I tried the CMSPage events, but as the devguide says, those only fire when processing system pages.

Regards,
Martijn

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 2/26/2013 11:06:40 AM
   
RE:Trigger event on page view
Hi,

If you are using ASPX templates - you can do it in the Page_Load event of the template used by the page. Or, in portal engine you can add the code to /CMSPages/PortalTemplate.aspx.cs file or even better create a simple web part with your code and place it on the document's page template.

Best regards,
Juraj Ondrus