images as properties of a document.
I am wondering how I might create a property of a DTML Document that is an image. In the standard implementation of a DTML Document, the properties can be strings, lines, text etc. I would like to create a new type of document with the ability to create a property that is an image and upload it to the page as you edit the property. Can anybody suggest how I would go about this? I have not created a product before, but I am game to try. I am really looking for some hints and tips. Perhaps an existing product that is similar that I could copy or subclass. As a further explanation, I am trying to create a very structured template page. The end user simply edits the properties of the page and I create the templates and how it renders by modifying the index_html method. I have looked at ZPT and they dont seem to do exactly what I want. TIA Tom Cameron
On Wed, Jul 18, 2001 at 04:09:05PM +1000, Tom Cameron wrote:
As a further explanation, I am trying to create a very structured template page. The end user simply edits the properties of the page and I create the templates and how it renders by modifying the index_html method. I have looked at ZPT and they dont seem to do exactly what I want.
Subclass a folderish object, perhaps? The images wouldn't be properties per se, but would be held inside the object and would be just as accessible. The folderish object could have its own properties (or included dtml objects, for that matter), and you could still edit its index_html rendering just like you are now. Do it as a ZClass if you're really lazy, or look into MaxM's minimal product howtos if you want to do it The Right Way in Python. -- Mike Renfro / R&D Engineer, Center for Manufacturing Research, 931 372-3601 / Tennessee Technological University -- renfro@tntech.edu
participants (2)
-
Mike Renfro -
Tom Cameron