AI OnAI Off
I can also point out that if a page dosent have a view/template I want to handle this too.
One way is to hook up an eventhandler to EPiServer.Web.TemplateResolver.TemplateResolving (or TemplateResolved) and there set which template to use. See http://world.episerver.com/Modules/Forum/Pages/Thread.aspx?id=79313
You can get the instance of TemplateResolver from IOC container.
Hi,
Im wondering how to attach a provider to run before a page is rendered. I want to check if a page is of a certain page type and if it is I then want to handle it with my logic. Anyone has an example?