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...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
How to get content by route in Umbraco 10?
Solved by injecting umbraco context!
is working on a reply...