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
Anyone knows where I can find Get By Route content finder? Trying to see what I can do within Umbraco API Controller, but there's no such method?
If your API controller inherits from UmbracoApiController (which in turn inherits UmbracoApiControllerBase)
You'll have access to the PublishedContentCache through the UmbracoContext property of the controller, this in turn has a 'Content' property that is of type IPublishedContentCache which is where the GetByRoute() method lives:
public class SuperApiController : UmbracoApiController
public IEnumerable<string> GetListOfThings()
// here is GetByRoute...
Face... palm... I should have tried to investigate the methods there, instead of getting stuck on Umbraco.(...) class...
Thank you Marc!
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted