Content Resolver?
j
Using Umbraco 12 we are using the mediaItemResolver for CMS app_plugin blocks (angularjs)- is there a way to get the same type of data for a webpage - such as a contentResolver? Thanks
j
Doesnt look like it, there is a ncNodeName filter to get the name from an id - you could write your own filter though. You can find the built in ones here: https://github.com/umbraco/Umbraco-CMS/tree/contrib/src/Umbraco.Web.UI.Client/src/common/filters And they look pretty straight forward to adapt from
j
Great - thanks
Thanks again - we did look at this yesterday - the odd thing is - we can get the basics out of the Resolver but we can't get the Properties out of it - they just don't seem to exist (or tabs)
We did something like:
j
Not entirely sure about whats in the content obj that is returned by the contentResource, but if it doesn't contain the properties you need then you may have to set up an API controller you can call instead? Then you are also more in control of the return model and can easily extend it
j
That is a great idea - thanks 🙂
4 Views