Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
In my application i've a page will have a macro
My general Url is http://localhost/Mylistpage
Works fine if http://localhost/Mylistpage?id=236
for <xsl:param name="qryString" select="umbraco.library:RequestServerVariables('QUERY_STRING')" />
My specific url need to be http://localhost/Mylistpage/236
Just similar to mvc default route, i need to access this 236 in my macro as id parameter in macro
is it possible and how to do that?
Let me know if you need more understanding
Hi Vishmay,
What is this url? What is this number? Did you create this route?
Thanks
The url is a page created from content section of menu. I need an optional parameter id to be in that url I can work with ?id=2 but i want to recognize it as url component not query string like mvc default route does
that is http://url/2
Then i need to access this 2 in my macro. hope this helps
Looks like you need to create a new Route. Then try Request["parameter"]
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Can i read id from url route in macro?
In my application i've a page will have a macro
My general Url is http://localhost/Mylistpage
Works fine if http://localhost/Mylistpage?id=236
for <xsl:param name="qryString" select="umbraco.library:RequestServerVariables('QUERY_STRING')" />
My specific url need to be http://localhost/Mylistpage/236
Just similar to mvc default route, i need to access this 236 in my macro as id parameter in macro
is it possible and how to do that?
Let me know if you need more understanding
Hi Vishmay,
What is this url? What is this number? Did you create this route?
Thanks
The url is a page created from content section of menu. I need an optional parameter id to be in that url I can work with ?id=2 but i want to recognize it as url component not query string like mvc default route does
that is http://url/2
Then i need to access this 2 in my macro. hope this helps
Looks like you need to create a new Route. Then try Request["parameter"]
is working on a reply...