Subclassing ATContentTypes with ArchGenXML
This How-to applies to: Any version.
- Add a class called ATDocument.
-
Give that ATDocument the stereotypes <<stub>> and <<archetype>>. (Stub makes sure the class isn't actually generated into your project, archetype makes sure that archgenxml knows that it doesn't need to re-add archetypes' BaseContent or BaseFolder class.)
- Add a tagged value import_from with the value Products.ATContentTypes.content.document.
- Now you can add your own class and inherit from ATDocument.
All you need to know is in the picture below. You can use the same method for ATImage, ATFolder, etc.

Note: The 1.6 beta ArchGenXML has the ATCT stereotypes (<<atdocument>>, <<atnewsitem>>, etc.) that makes this subclassing really simple.
reordering...
The 1.6 beta archgenxml has a <<atdocument>>, <<atnewsitem>> etc. stereotype that makes this subclassing REAL simple, btw.
ok
http://images.google.com/imgres?imgurl=http://plone.org/products/archgenxml/documentation/reference-manuals/archgenxml-manual/atct-subclassing.png/image_preview&imgrefurl=http://plone.org/products/archgenxml/documentation/how-to/subclassing-atcontenttypes&h=190&w=368&sz=13&hl=en&start=1&sig2=SvCQ7TqDXI1ibYrLmZ4qag&um=1&tbnid=qF3IbFT1u2-MqM:&tbnh=63&tbnw=122&ei=A4ACR-nEK5nWgALWtOTUAw&prev=/images%3Fq%3DUML%2Bdiagram%2Bof%2Bsubclassing%2Bfrom%2BATCT%26svnum%3D10%26um%3D1%26hl%3Den%26client%3Dfirefox-a%26rls%3Dorg.mozilla:en-US:official%26sa%3DN
... showing a preview is even worse than simply saying "we can't find it!" ;)
removed <<archetype>> and worked