Lesson 2 - Managing Content Models

Using CMM to create a basic content model.

Exercise 1 - Creating a basic model in CMM

Creating a basic Content Model

Creating a basic Content Model

Before we we go deeply into the configuration details of planning and creating a complex content model using CMM, we want to introduce the essential skills to get you started as quickly as possible with the Content Model Manager.

Whatever model you are developing with CMM, you will always need to follow the same basic steps:

  • Create the model framework
  • Create Custom Types and Aspects
  • Create a form using the Layout Designer
  • Activate the Model
  • Apply and test in Share  

In this tutorial will first take you through the process of creating and deploying a new model, then using it in Alfresco Share.  We will ask you to view two short demos that quickly demonstrate these processes and complete the associated tasks.  

Exercise 1 -  Mind Map

The aim of this exercise is to complete the associated Mind Map that summarises on a single page all the key processes you need for creating and testing a basic content model.

  • The map has been created in Libre Office on your VMWare installation under the directory /CMM/Lesson2/Exercise1.odp
  • You should frequently pause the video and fill out the text boxes on the mind map. Feel free to add more details to your map if you wish.  
  • You will be using these notes as a guide to creating a model as you work through the rest of the course.




Exercise 1 - Creating a Basic Content Model Video

This aim of the following videos is to quickly show you how to create the following Custom Properties and Aspects and apply them to a document.

  • Customer Properties:
    • Writer - text field
    • Domain - list of departments
  • Aspects
    • isActive - tick box
    • Published - date/time

You will find the two videos on these URL's: 



Lab 1 - Creating a Content Model

Lab 1 - Colt Automotive

Colt Automotive Content Model


Colt Automotive uses a content model to manage information about the cars they sell. Eventually, the content model will include all data that will be used by all the various departments (Sales, Marketing, Finance, Parts, Service and Management).
You have been asked to create a new model for a customer POC demonstration that adds information to help Marketing show the available cars on their website:

  • Description, Manufacturer, Availability and Date

Marketing have also said that in the future they will also need to track the availability of other items other than vehicles.

Lab 1 - Colt Automotive Model

After discussions with your colleagues you have decided to create a model that simply contains:

  • a Custom type called ‘vehicle’ to hold all the specialised properties.
  • an Aspect called ‘availability’ which could also be used with other items on the website.


Using your notes you should create the following:

1. New Content Model:

  • Namespace uri: colt.colt-auto-mark.ma
  • Prefix:  ma
  • Name:  marketing

2. A Custom Type called ‘vehicle’ with two properties:

  • ‘description’ - car details that should  appear on the web site.
  • ‘manufacturer’ – list of manufacturers that can be selected.

3. An Aspect called called ‘availability’ with two properties:

  • ‘isAvailable’ -  flags if the car is available to be sold​
  • ‘DateAdded’ - the date it was added to the list. 

You should test your new model by a creating a document in Share and applying your new model.

Additional background Information on Colt Automotive:

User Names:

Car Manufacturers sold by Colt Automotive:
Hup Mobile, REO Speedwagon, Giddy Up, Shocking Motors, El Toro

Lab 1 Content Model Summary


The graphic below summaries the required model:

Exercise 2 - Managing Content Models

Managing Content Models

Managing Content Models

In this section we show you how you can easily manage the content models you create  in CMM.

When working with CMM, you will need to be able to:

  • Export
  • Import
  • Deactivate
  • Delete

For your convenience, we have included a mind map that summarises the information from the videos.

Please review the following 3 short videos and check the details on your mind map. 


Export and Import a Content Model

Exporting a Content Model Demonstration

Importing a Content Model Demonstration


Deactivating and Deleting a Content Model


Lab 2: Managing your Content Model

Lab 2: Managing your Content Model



Colt Automotive has asked for a demonstration of how the model can quickly be migrated from a Proof of Concept to a Production system.  You have been asked to show how the model can be exported and deleted from your system.

Using your notes you should:

  1. Export your content model to a zip file.
  2. Confirm that you are unable to Deactivate your content model
  3. Test the feature ‘Find Where Used” by clicking on a Custom Property and searching for content.
  4. Delete the document from your repository and empty your Trash icon.
  5. Deactivate and delete your model.