Copied to clipboard

Flag this post as spam?

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


  • J 351 posts 606 karma points
    Nov 21, 2017 @ 11:52
    J
    0

    How to add parameter

    I have a document type, when i create a page i use this document type. At present the page is created with the name so when i navigate to it the URL is similar to

    http://mysite.com/pagename

    Is there a way to add a parameter for all URLs created in this manner with the value coming from a field on the same document type/page? So the URL is

    http://mysite.com/pagename?p=1 http://mysite.com/pagename2?p=2 etc

  • Jan A 39 posts 243 karma points
    Nov 21, 2017 @ 12:42
    Jan A
    0

    You could do a extension method and use that to insert the querystring into an url. But why do you want to add a parameter from the page you going to instead of just read it on that page?

  • Alex Skrypnyk 5908 posts 22603 karma points MVP 4x admin c-trib
    Nov 21, 2017 @ 13:28
    Alex Skrypnyk
    0

    Hi J

    You can write your own URL provider, have a look how to do it - https://our.umbraco.org/documentation/reference/routing/request-pipeline/outbound-pipeline

    Thanks,

    Alex

  • 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