Book Image

Alfresco 3 Cookbook

Book Image

Alfresco 3 Cookbook

Overview of this book

Alfresco is the renowned and multiple award winning open source Enterprise content management system which allows you to build, design, and implement your very own ECM solutions.You have read a number of tutorials, blogs, and books on Alfresco. Now you're in the real world, trying to use Alfresco, but you’re running into problems with it. This is the book you want. Packed full of solutions that can be instantly applied, this cookbook with its practical based recipes and minimal explanation meets that demand.This Alfresco 3 cookbook boasts a comprehensive selection of recipes covering everything from the basics to the advanced. The book has recipes for quickly installing Alfresco in Windows and Linux and helping you use custom content model, rules, and search. There is also a collection of recipes focused on creating Scripts, Freemarker templates, Web Scripts, and new workflow definitions. Steps to integrate Alfresco with other systems like MS-Office are also included. You will be able to use Alfresco’s File and Email servers. Finally, step-by-step recipes are presented to create an Alfresco build environment and compile the source code. This Alfresco 3 Cookbook is perfect for developers looking to start working on Alfresco quickly, gain complete understanding, write custom implementations, and achieve expertise very easily.
Table of Contents (21 chapters)
Alfresco 3 Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

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.

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.

Getting ready

First we will create the file where our custom model will be defined.

  1. 1. Create...