cancel
Showing results for 
Search instead for 
Did you mean: 

Alfresco Objects Available to Freemarker

veeshoo
Champ in-the-making
Champ in-the-making
Where can I find the documentation on which all Alfresco objects (along with their properties) are available to Freemarker. I want detailed listing of objects. I know person object is available but I dont know what properties of person object can be accessed.For e.g if I want to know the name of the USER GROUP to which the logged in user belong to?? How will I get this information.

I don't know which all person.properties I can access. I have seen the example of person.properties.userName only.

Is there anything like person.properties.groupName?? This gives error in the freemarker template file.
2 REPLIES 2

davidc
Star Contributor
Star Contributor
The list of root objects is accessible in a template is documented in

http://wiki.alfresco.com/wiki/Template_Guide#Models

The properties available on each kind of object is dictated by the type definition associated with that object.  You can find those definitions in the install directory:

/config/alfresco/model/contentModel.xml
/config/alfresco/model/applicationModel.xml

and the other *Model.xml files.

maxtsai
Champ in-the-making
Champ in-the-making
I don't know which all person.properties I can access. I have seen the example of person.properties.userName only.

I am lazy to look up documents sometimes; how about:

<#assign props = person.properties?keys>
<#list props as p>
${p}: ${person.properties[p]}
</#list>