[Zope-CMF] Compound documents

Jens Vagelpohl jens at dataflake.org
Mon Jun 4 10:22:24 EDT 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


On 4 Jun 2007, at 15:48, Charlie Clark wrote:

> Hi,
>
> for a new site I need a content type that combines a Document with  
> an Image - it's essentially an Employee type and I was wondering  
> the best way to implement this. Because I want there is a strict  
> 1:1 relationship between text and image I am currently thinking  
> about extending CMFDefault.Image to handle the additional  
> attributes but I wonder if there is a way to create a meta-type  
> that would magically bring the two different content types together?

There's no "magic" way to do this. I'd derive from an existing type  
and add what you need.

jens



-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (Darwin)

iD8DBQFGZCAhRAx5nvEhZLIRAuHPAJ9k68cdTTJWktnUMWD2EyN5cSFyeACfWah9
zd07bgbbrwY7TfeSi1btQ14=
=EjXT
-----END PGP SIGNATURE-----


More information about the Zope-CMF mailing list