cancel
Showing results for 
Search instead for 
Did you mean: 

aspect properties

koolalfdev
Champ in-the-making
Champ in-the-making
I have created an aspect and created a content adding the aspect to it. Now I am writing a web script to access the various properties of the content and writing xml out. I also want to access the properties that got included by the aspect. I am not really able to access thse properties in that aspect. I was wondering if there is a way I can do it java script or the free marker template.

Thanks.
1 REPLY 1

zaizi
Champ in-the-making
Champ in-the-making
If one of your aspect properties is "my:customMetadata" and it is attached to a document, you can refer to it by

document.properties["my:customMetadata"];

Info on the wiki at
http://wiki.alfresco.com/wiki/JavaScript_API
http://wiki.alfresco.com/wiki/JavaScript_API_Cookbook
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.