Accessing Doctype Properties in Custom ListView Layout
Did anything change in recent versions relating to the data available in a ListView?
I am trying to put together a custom layout and seem to not have access to any of the values on the document properties for each item in the $scope.items collection.
If that is the way it is now then I guess I just have to make additional calls out to get them but the below seems a bit of a weighty solution to that?
Not ListView per-se, but I was recently working on a similar issue and found I quickly hit the point where the number of requests was impacting performance so much that I was better served writing a resourcePromise using umbRequestHelper to an UmbracoAuthorizedJsonController, do all the work there with the C# API, and pass back a resultSet object.
I'm not at that point yet but thanks for the heads up. I am sure the property data used to be available but perhaps for the same reasons you found that is no longer the case.
Accessing Doctype Properties in Custom ListView Layout
Did anything change in recent versions relating to the data available in a ListView?
I am trying to put together a custom layout and seem to not have access to any of the values on the document properties for each item in the
$scope.items
collection.If that is the way it is now then I guess I just have to make additional calls out to get them but the below seems a bit of a weighty solution to that?
Is anyone doing this differently or more elegantly?
Not ListView per-se, but I was recently working on a similar issue and found I quickly hit the point where the number of requests was impacting performance so much that I was better served writing a resourcePromise using umbRequestHelper to an UmbracoAuthorizedJsonController, do all the work there with the C# API, and pass back a resultSet object.
I'm not at that point yet but thanks for the heads up. I am sure the property data used to be available but perhaps for the same reasons you found that is no longer the case.
is working on a reply...