AnsweredAssumed Answered

node.properties and getElementById functions

Question asked by alch3mi5t on May 9, 2011
Latest reply on Oct 21, 2011 by alch3mi5t
Hi all,
this is my first post in here;
We have acquired an Enterprise License of Alfresco, and we are allready working with it.
Now we are trying to develop some API's for our purposes, like getting reports/statistics on Repo and uploaded documents..
Now: we have a script like this
http://drquyong.com/myblog/?p=5
that we're trying to modify;
this web script lists all documents in a folder,but we would like to display instead of Name/created/modified/description/body, some custom properties. And we're getting this error if we try to use {document.properties["my:myprop"]}
What is the correct syntax of displaying a custom property in a FTL freemarker template file?
For example instead of
       <td><div id="desc_${node_index + 1}">${node.properties.description}</div></td>
i'ts possible to use something like:
       <td><div id="desc_${node_index + 1}">${node.properties.["custom:customproperty"]}</div></td>
or something like that?

Outcomes