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...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
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...