cancel
Showing results for 
Search instead for 
Did you mean: 

node.properties and getElementById functions

alch3mi5t
Champ in-the-making
Champ in-the-making
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?
2 REPLIES 2

fstnboy
Champ on-the-rise
Champ on-the-rise
Hi,

I know this is almost one month old and you probably solved the issue but you should be able to use ${node.properties["custom:customproperty"]} without the dot "." after properties.

Adei

alch3mi5t
Champ in-the-making
Champ in-the-making
Yeah, I already looked up for the error.
Thanks for your post anyway.
Always helpful
best regards
Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.