I'm customising some views and I want to be able to read proeprties for the currently selected node to so to work. I found the controller for my view(ListView in my case and can see the Id and do work on it. I can't seam to figure out how to read proeprties for the current document though. I have the Id from $routeParams.id. Code:
where contentResource.getById is the contentResource(or mediaResource) and umbracoListViewPageSize is a custom property i createdd on the document. I can see the base propertie sof the document and can see the properties organisied by tabs. (I don't wnt to access teh property by tab becosue the screen layout could change.)
How and i read properties in angularJs
I'm customising some views and I want to be able to read proeprties for the currently selected node to so to work. I found the controller for my view(ListView in my case and can see the Id and do work on it. I can't seam to figure out how to read proeprties for the current document though. I have the Id from $routeParams.id. Code:
contentResource.getById($routeParams.id).then(function (content) {
if(content.umbracoListViewPageSize)
$scope.options.pageSize = content.umbracoListViewPageSize;
});
where contentResource.getById is the contentResource(or mediaResource) and umbracoListViewPageSize is a custom property i createdd on the document. I can see the base propertie sof the document and can see the properties organisied by tabs. (I don't wnt to access teh property by tab becosue the screen layout could change.)
Hi Jeremy,
you can get all properties with contentEditingHelper:
Cheers,
Sören
I tried that but this seems that doesnt work. Can you show me full code? With this code we need to get all properties from current doc type (or node)
Do you have any idea about it now..??
is working on a reply...