Copied to clipboard

Flag this post as spam?

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


  • Merijn van Mourik 58 posts 128 karma points
    Mar 07, 2013 @ 13:18
    Merijn van Mourik
    0

    extending existing routes in MVC

    I've been reading around in the MVC documentation about Hijacking routes. However I'm still struggling with the following.

    I setup some content and I successfully hijacked the route "/experiences/skydiving/". Where the document type is 'Experience" and the model of experience skydiving is visible in the Index method of ExperienceController.

    Now I would like to add a route so that I'm able to handle "/experiences/skydiving/buy-as-gift/". It should land on the same documentid as in "/experiences/skydiving/".

    I hope someone can make me an example on how to add the extra Route.... because the existing routes are handled by Umbraco, probably /umbraco/RenderMvc/{action}/{id}.

Please Sign in or register to post replies

Write your reply to:

Draft