cancel
Showing results for 
Search instead for 
Did you mean: 

How to add new Aspects to a Document in Alfresco community source?

smangukiya
Champ in-the-making
Champ in-the-making

Please bare with me as this is my first question to Alfresco forum.

I would like to add couple of new aspects to a document. Would it be possible to edit it direct to Alfresco community source code?

Thanks in advance. Any help would be appreciable.

2 REPLIES 2

kalpesh_c2
Star Collaborator
Star Collaborator

Hi  Sandip,

Please don't edit source code directly you can create your own scripts or you can override them as well. 
Web scripts | Alfresco Documentation 
For adding aspect from share please refer this documenation
For adding custom aspect using javascript 

var props = new Array(1);
props['cust:prop'] = "prop_values";
document.addAspect('custom:aspectType', props);

Thanks,

Kalpesh

ContCentric

Thank you Kalpesh. I will look into it.