... inherit file behaviour to your contenttype

by zet — last modified Feb 03, 2011 11:20 PM
copy the whole behaviour of a plone's contenttype to your contype

Let's say you need your own contenttype that is a copy of the Plone's contenttype 'File'.

Create a non-folderish contenttype with paster.

Go to the ZMI->portal_types copy and paste File, rename copy_of_File to YourContentTypesName.

Export Types Tool from portal_setup. Copy the YourContentTypesName.xml to your product.

That's it.