cancel
Showing results for 
Search instead for 
Did you mean: 

Getting started with Content Models

samblunt
Champ in-the-making
Champ in-the-making
Hi all,

I am just getting started with Alfresco and am looking to see what the how the out of the box content models are set up and what I would do to go about extending them if needed. I have read the help pages on the website, however it doesnt really give me an idea of what comes as standard. My implementation of Alfresco will be purely for WCM and i want to see what content types are defined as standard and the properties associated with them, as we may need to add properties in order to match with our business requirements. Can anyone help me out with this or direct me to somewhere that will help.

Many thanks

Sam
3 REPLIES 3

smicyk
Champ in-the-making
Champ in-the-making
Hi,

I think you should check <install_path>\tomcat\webapps\alfresco\WEB-INF\classes\alfresco\model folder. There are all models available in Alfresco.

smicyk

samblunt
Champ in-the-making
Champ in-the-making
Thanks for that smicyk.

I think I am begining to understand it a bit more now. One aspect is confusing me a little however. When defining a type within a content model, one of the tags that you define is <type>. I can see d:text and d:content as types in the contentModel.xml. where are these defined, and can i see what they actually represent, i.e. If i define a type as <type>d:content</type>, what is this actually going to mean the behaviors of this type will be?

thanks

samblunt

smicyk
Champ in-the-making
Champ in-the-making
Hi,

I think you should check http://wiki.alfresco.com/wiki/Data_Dictionary_Guide for general information about creating new content models.

Answer to your question: d:text and d:content are data types of your model type properties and they are defined in dictionaryModel.xml. The difference between those two is that d:content property holds information (size, disk location and mime type etc.) about content (pdf, doc etc.) and d:text property keeps only text information (no binary content) and it is stored in database not on disk.

smicyk