I want to make a product that basically has two "properties": an image, and a blurb (HTML text) that an individual can upload the image source in the addForm... So I basically want an image with a blurb property (well, and a custom view method) Background info - I want to make a custom content object that someone can add using the ZMI that is a featured blurb on our site, which has an image and a blurb (and a linkthrough, but that's easy). Ideally the blurb would find the section's master template macro and use that, but I figured I'd learn to flap my wings before dive bombing... How would I go about doing this? Should I make a ZClass inherited off an Image? -jim
Jim Kutter writes:
I want to make a product that basically has two "properties": an image, and a blurb (HTML text) that an individual can upload the image source in the addForm... ... How would I go about doing this? Should I make a ZClass inherited off an Image? You either use a ZClass or make a tiny Python product inheriting "OFS.Image". Read the Zope Developers Guide...
Dieter
participants (2)
-
Dieter Maurer -
Jim Kutter