Copied to clipboard

Flag this post as spam?

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


  • Mark Arndt Lønquist 20 posts 89 karma points
    Jul 25, 2015 @ 14:58
    Mark Arndt Lønquist
    0

    Issue with routing

    Hi everyone,

    I'm trying to some custom routing to show a page based on whats at the end of a URL.. Like so;

    http://localhost/forum/hardware-tilbehoer/1
    

    Should present a page with another template than the one 'hardware-tilbehoer' is.

    I've tried different things but I don't think what I do is correct.

    I always end up with a 404 page.

    Anyone can assist me in how I would go about doing this?

  • Casper Andersen 126 posts 508 karma points
    Jul 27, 2015 @ 00:33
    Casper Andersen
    1

    Umbraco goes around the conventionel MVC routing which is Controller/Action/Id where the parameter id is optional.

    but you can create your own custom rutes as shown in the link below

    http://shazwazza.com/post/Custom-MVC-routing-in-Umbraco

    Hope this helps you out

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies