cancel
Showing results for 
Search instead for 
Did you mean: 

How to create custom properties on a document

horia
Champ in-the-making
Champ in-the-making
Hi,

I'm using Alfresco extension to OpenCMIS libs and it seems to be working fine for adding and retrieving predefined aspects to/from documents.
However, I'm in no man's land when it comes to adding custom aspects (eg, "mySmiley Tongueroperty").

How should such aspects be created? Can I do it through Alfresco OpenCMIS Extension or should I do some xml config first to support the addition of the custom properties?

Thanks
2 REPLIES 2

fcorti
Elite Collaborator
Elite Collaborator
Hi Horia,

To manage a custom aspect using CMIS (and all the other supported ways) you have to:

1) Define a new custom model configuring Alfresco. To do this I suggest you <a href="http://wiki.alfresco.com/wiki/Step-By-Step:_Creating_A_Custom_Model">http://wiki.alfresco.com/wiki/Step-By-Step:_Creating_A_Custom_Model</a>.

2) Add the custom aspect to the document you upload or create in Alfresco. Using CMIS I suggest you <a href="http://docs.alfresco.com/4.1/index.jsp?topic=%2Fcom.alfresco.enterprise.doc%2Fconcepts%2Fopencmis-ex...">http://docs.alfresco.com/4.1/index.jsp?topic=%2Fcom.alfresco.enterprise.doc%2Fconcepts%2Fopencmis-ex...</a>.

3) Set the custom property in the way you probably know using CMIS.

Hope this is what you need.

horia
Champ in-the-making
Champ in-the-making
Thanks Francesco, your links were of great help
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.