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
Hi,
trying to "downgrade" myself from Xslt to Razor on an Umbraco v6.0.5 install, I've run into a problem:
I've got a Url stored in a Dictionary item (don't ask why), fx. '/about/the-team.aspx', how do I find the actual node based on this?
/SoerenS
I beleive that uQuery is the only way to do this.
Node node = uQuery.GetNodeByUrl("/home.aspx");
More info on the documentation page for uQuery content
Jeavon
Sweet, seems to work just fine!
Thanks!
is working on a reply...
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.
Continue discussion
Razor, Get Node by Url
Hi,
trying to "downgrade" myself from Xslt to Razor on an Umbraco v6.0.5 install, I've run into a problem:
I've got a Url stored in a Dictionary item (don't ask why), fx. '/about/the-team.aspx', how do I find the actual node based on this?
/SoerenS
Hi,
I beleive that uQuery is the only way to do this.
More info on the documentation page for uQuery content
Jeavon
Sweet, seems to work just fine!
Thanks!
is working on a reply...
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.