Copied to clipboard

Flag this post as spam?

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


  • Craig Rowe 22 posts 175 karma points
    Aug 30, 2016 @ 12:06
    Craig Rowe
    0

    Querystring value as part of url after specific document types

    Is it possible to add url/routing in some way so that after a specific document type a parameter (or parameters are expected).

    For example:

    domain.com/my-things/thing/1
    

    Could be two umbraco pages (MyThings and Thing DocumentTypes with associated templates) but '1' could be a parameter to the 'Thing' template. It would otherwise be written as:

    domain.com/my-things/thing?id=1
    

    I understand there are url rewriting rules that can be added but does that assume a particular position in the url e.g. id is always third after the word 'thing'. What i'd actually prefer is the understanding that 'Thing' types always have an id after so that it would be at any step in the heirarchy:

    domain.com/section/place/deeper/my-things/thing/1
    

    Without being able to be at any level a UrlRewriting solution feels brittle to pages being moved by a CMS user.

Please Sign in or register to post replies

Write your reply to:

Draft