We will create a new file for our custom content model. As you know, the file ideally should be created in the \tomcat\shared\classes\alfresco\extension
folder. Although you can create your file in any other folder as well, it is a standard convention to put all custom configuration files in this folder only. This folder is usually referred to as the extension folder of Alfresco.
When you create your own custom content model file, you must let Alfresco know about your content model file—that is, you need to register your model in the Alfresco repository. This is done by the custom-model-context.xml
file located in the\tomcat\shared\classes\alfresco\extension folder.
Note
By default, this file is named custom-model-context.xml.sample
, you need to rename it custom-model-context.xml
.
This file is used to bootstrap all the custom models you create in the Alfresco repository.