O'Reilly logo

Alfresco 3 Cookbook by Snig Bhaumik

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Creating new custom content type

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.

Tip

By default, this file is named custom-model-context.xml.sample ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required