Hi Actually for this project, i would like to just store the pictures "under" the "product", and then have some kind of DTML-Method to show the product with the pictures. Jens -----Original Message----- From: Max M Sent: ma 02-09-2002 13:59 To: Jens Bjerre Cc: zope-dev@zope.org Subject: Re: [Zope-dev] Relations Jens Bjerre wrote: >Can anyone please explain to me, how it's possible to make relations >using ZClasses. >Let's say that i would like to make a product catalog with x numbers of >pictures, and sometimes no pictures. I guess it's something about making >a ZClass wich can contain objects??? > > In that case you can subclass an objectmanager. But if the pictures should be shared between different products this approach can be a problem. If you want to share images you should put them in their own folder and then store a list of paths in your product, to the images you want to relate to an object, or you could use the mxmRelations product. regards Max M "Skeptic Effect" or the "Randi Effect" When a skeptic is near, supernatural effects seem to disappear.
Jens Bjerre wrote:
Hi
Actually for this project, i would like to just store the pictures "under" the "product", and then have some kind of DTML-Method to show the product with the pictures.
Then you should just create a zClass and subclass Objectmanager as the first class. You can also choos subbobjects to have the meta_type 'Image' so that only images can be put into the folder. But I would _strongly_ recommend that you use a Python Product instead of a zClass. See mxm_EasyProduct at: http://www.zope.org/Members/maxm/HowTo/easyProduct which is able to do everything you want to from the get-go. Hav en god dag! regards Max M ><evolve> > >
participants (2)
-
Jens Bjerre -
Max M