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
How should I change this to achieve the same result in Umbraco 10? public IPublishedContent GetContentByRoute(string route) { return Umbraco.Web.Composing.Current.UmbracoContext.Content.GetByRoute(route); }
Solved by injecting umbraco context!
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
How to get content by route in Umbraco 10?
Solved by injecting umbraco context!
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.