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

cancel
Showing results for 
Search instead for 
Did you mean: 
smangukiya
Member II

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

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
kalpesh_c2
Senior Member

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

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

smangukiya
Member II

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

Thank you Kalpesh. I will look into it.