Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Nik 1599 posts 7179 karma points MVP 6x c-trib
    Oct 14, 2015 @ 13:30
    Nik
    0

    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.

Please Sign in or register to post replies

Write your reply to:

Draft