AI OnAI Off
You could try using the IURLResolver
e.g.
public IContent GetContent(string url) { var urlResolver = ServiceLocator.Current.GetInstance<UrlResolver>(); IContent contentData = urlResolver.Route(new UrlBuilder(url)); return contentData; }
Hello,
We are trying to update CMS content item meta details by reading .csv file containing details of pages with friendly url and meta information. We are adding it as a scheduled job to update content items to respective content item with Url's.
But we can't use UrlHelpers to match the friendlyurl with content item as it gives activation error for UrlHelper key being empty.
Is it possible to do it via scheduled job this way or there is any other approach which is more preferred than this?
Thanks,
Deepa