cancel
Showing results for 
Search instead for 
Did you mean: 

Single Master Content Type for Content Model

tedmasterweb
Champ in-the-making
Champ in-the-making
In Jeff Potts' <a href="http://ecmarchitect.com/alfresco-developer-series-tutorials/content/tutorial/tutorial.html#creating-...">Content Model Tutorial</a>, he seems to suggest using a custom content type from which all of your own content types will inherit as a way to easily organize your content.

However, if I follow this advice and my content model includes types that would ordinarily inherit from cm:content or cm:item, won't I lose the benefits of inheriting directly from those types? Won't I have to, essentially, recreate the types (and create extra work and maintenance)? I feel like I'm missing something important here…

Thanks in advance.

Ted Stresen-Reuter
1 REPLY 1

darkredd
Star Contributor
Star Contributor
Hi,

If I understand you correctly, you custom types will not lose any of the parent type properties. Say you have a custom type (invoice) which the parent is "cm:content"; which has amongst other properties "cm:modified". Now you "invoice" type will by default inherit "cm:content" properties and you custom properties will be attached. So in effect no extra coding; however in your form config "share-config.xml" you will have to explicitly list all properties for them to appear when document properties is invoked.

Hope this helps.