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
I am trying to get an IPublishedContent node by a url.
There was this in v7, but it's now obsolete.
UmbracoContext.Current.ContentCache.GetByRoute(string url)
Is there a v8 equivalent ?
the url i have is /some-page/sub-page/
Hey
You should be able to do the exact same thing in Umbraco 8: Current.UmbracoContext.Content.GetByRoute(url)
Current.UmbracoContext.Content.GetByRoute(url)
Hope it helps.
Regards Malthe
Yep i found the same way.
umbracoContext.Content.GetByRoute(url);
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
Get node by url
I am trying to get an IPublishedContent node by a url.
There was this in v7, but it's now obsolete.
Is there a v8 equivalent ?
the url i have is /some-page/sub-page/
Hey
You should be able to do the exact same thing in Umbraco 8:
Current.UmbracoContext.Content.GetByRoute(url)
Hope it helps.
Regards Malthe
Yep i found the same way.
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.