05-07-2025 06:42 AM
Hi,
how can I add aspect to type in a model with "Model Manager"?
Seems it is not possible.
Thanks.
05-07-2025 10:54 AM
You're right.
Limitations of Model Manager in Alfresco Share
The Model Manager in Alfresco Share offers a user-friendly way to define custom types, aspects, and properties, but it comes with several notable limitations:
05-07-2025 12:01 PM
The only alternative I see is creating a Folder Rule or similar, so the type / aspect(s) is set automatically when a document is created. In any case, doing the maintenance of a custom content model is not an easy task. This is mainly why I prefer to deploy models as an independent Repository addon.
05-07-2025 10:54 AM
You're right.
Limitations of Model Manager in Alfresco Share
The Model Manager in Alfresco Share offers a user-friendly way to define custom types, aspects, and properties, but it comes with several notable limitations:
yesterday
Given these limitations, is the xsd or a very complete exampleModel.xml available somewhere? The old link I have is long gone, and the .sample files in the tomcat/shared... directory are really minimal.
Are the default cm:content and cm:folder bootstrap-xml files available as well? Maybe somewhere in github?
Thanks!
05-07-2025 11:19 AM
Thanks Angel. I need to add aspect to type because I have to choose type when upload a document and then set the related properties. Moreover I would be able to change the type and then the properties of a document. But, probably it could not be done because once the type is set, is not possible to modify it, isn't it? Probably I can manage the different properties over different type with aspects. I mean that also the type should be an aspect. And I need to use "model manager" because after the implementation the customer will do application maintenance themself.
05-07-2025 12:01 PM
The only alternative I see is creating a Folder Rule or similar, so the type / aspect(s) is set automatically when a document is created. In any case, doing the maintenance of a custom content model is not an easy task. This is mainly why I prefer to deploy models as an independent Repository addon.
19 hours ago
The most complete and reliable reference you can use today is the source code itself. The full Alfresco Content Model (including cm:content, cm:folder, constraints, types, aspects, and properties) is still available in the public repository.
Primary reference:
contentModel.xml in the Alfresco GitHub repo:
https://github.com/Alfresco/alfresco-data-model/blob/master/src/main/resources/alfresco/model/conten...
This file contains the full, canonical definition of all default types and aspects. It is far more complete than the sample bootstrap files and is the right place to look when you need the exact structure of the “cm” namespace or want to understand how the default models are built.
For step-by-step guidance on creating or extending your own custom model (including model XML, bootstrap configuration, and deployment best practices), Hyland publishes two official tutorials:
Alfresco Content Models – Core Concepts and Examples
https://support.hyland.com/r/Alfresco/Alfresco-Content-Services/25.2/Alfresco-Content-Services/Devel...
Creating and Deploying Custom Content Models
https://support.hyland.com/r/Alfresco/Alfresco-Content-Services/25.2/Alfresco-Content-Services/Tutor...
For a more developer-oriented narrative with working examples, you can also use my Alfresco Developer Series tutorial:
7 hours ago - last edited 7 hours ago
Thank you very much for the detailed reply. The tutorial pages are great!
The other links (especially the first one) are 404's for me.
EDIT: Found the model-xml: https://github.com/Alfresco/alfresco-community-repo/blob/master/repository/src/main/resources/alfres...
One thing I was specifically looking for was recommendations for:
Thanks again. All the best!
18 hours ago
@ajweber I have followed this tutorial shared by @angelborroy and I found it very usefull:
Explore our Alfresco products with the links below. Use labels to filter content by product module.