In a standard MVC controller you can add action filters to the actions, in the past I've used action filters as a means of doing my own custom analytics. Primarily because I've built sites where Google Analytics wasn't an option.
So basically, my question is how can I look at doing something like that with Umbraco?
Is there a base controller I can inherit from where I can easily add either Action level filters or Controller level filters but allow the default behaviour to continue normally?
Ideally, I don't want to have to go and override every single action of the inherited controller just to add an action and call "base.ActionName()" in each of them.
Route Hijacking - Base Controller Override
Hi guys,
A bit of a theoretical question really.
In a standard MVC controller you can add action filters to the actions, in the past I've used action filters as a means of doing my own custom analytics. Primarily because I've built sites where Google Analytics wasn't an option.
So basically, my question is how can I look at doing something like that with Umbraco?
Is there a base controller I can inherit from where I can easily add either Action level filters or Controller level filters but allow the default behaviour to continue normally?
Ideally, I don't want to have to go and override every single action of the inherited controller just to add an action and call "base.ActionName()" in each of them.
is working on a reply...