cancel
Showing results for 
Search instead for 
Did you mean: 

display full property names

dooley
Champ in-the-making
Champ in-the-making
I have a quick question. 

Does anyone know how to get the names of each property displayed on a ftl page?  Example:

{http://www.alfresco.org/model/content/1.0}creator

I know how to get the value of the property displayed (${node.properties.creator}, but I haven't been able to get the property name displayed.

Any help would be much appreciated.
2 REPLIES 2

davidc
Star Contributor
Star Contributor
I assume you mean the property name, title and description.  At this time, the model dictionary (inc. namespaces) hasn't been exposed via javascript.

However, this would be a handy extension, allowing model driven scripts and templates.  Although not there today, new root objects can be injected into javascript - http://wiki.alfresco.com/wiki/JavaScript_API#Adding_Custom_Script_APIs

Perhaps you could add one which wraps the Namespace and DictionaryService java APIs.

davidc
Star Contributor
Star Contributor
And new root objects can injected into templates too - http://wiki.alfresco.com/wiki/Template_Guide#Custom_Root_Objects