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
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?
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
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?
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
is working on a reply...