cancel
Showing results for 
Search instead for 
Did you mean: 

Is a new namespace required to create a new model

vincent_roye
Champ in-the-making
Champ in-the-making
Hi,

I would like to know if I have to change this URI :

<namespace uri="http://www.someco.com/model/content/1.0" prefix="sc" />


to my own one if I simply want to add a new aspect to a certain type of document in Alfresco. If then, how can I do it ?

Thank you
3 REPLIES 3

niketapatel
Star Contributor
Star Contributor
Hi, Yes you can have your own namespace URI in your custom model. And it should be unique . You can import other existing nampspace.

To have your custom aspect, you can crate custom model, define aspect .Register your model and you can add your custom aspect to content may be from UI or using alfresco API - nodeservice as per your requirement

For detail, how to add custom model Please check http://wiki.alfresco.com/wiki/Data_Dictionary_Guide#Step_by_Step_Model_Definition

http://docs.alfresco.com/4.2/topic/com.alfresco.enterprise.doc/concepts/content-modeling-about.html

Hope it helps!

kaynezhang
World-Class Innovator
World-Class Innovator

<namespace uri="http://www.someco.com/model/content/1.0" prefix="sc" />
is just a sample ,you 'd better to chang it to your own namespace  and you can chang it to whatever you want to.
Just make sure when you define your own apsect ,you use your own prefix.

rjohnson
Star Contributor
Star Contributor
You don't have to, but it might be wise as it will ensure no conflicts