Alfresco Objects Available to Freemarker

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-25-2007 12:46 PM
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.
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.
Labels:
- Labels:
-
Archive
2 REPLIES 2

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-26-2007 05:52 AM
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.
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.

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-09-2008 04:54 PM
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>
