Is a new namespace required to create a new model
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-31-2013 03:50 AM
Hi,
I would like to know if I have to change this URI :
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
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
Labels:
- Labels:
-
Archive
3 REPLIES 3

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-01-2014 01:02 AM
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!
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!
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-01-2014 10:46 PM
<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.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-02-2014 09:42 AM
You don't have to, but it might be wise as it will ensure no conflicts
