jessica lee tishmack <jlt29707@sci.tamucc.edu>
Say, for example, you uploaded an image called foo_jpg (Zope does not allow dots in object names). You could reference it from any object in the same folder as the image or nested folders using dtml-var
<dtml-var foo_jpg>
Thank you for your input..I think I need to explain myself a little better, however. I have no trouble with a static image...the trouble I am having is with images created on the fly.
For example, I have a cgi program (which I would like to continue residing in my linux structure.....static pages I would like to be in my Zope structure). This program will generate a graph based on the time units, and whatever particular data sets I pass as parameters to the program. So, the image can't be stored on Zope, since the image may be different each time it is brought up...for example, I have the ability to pass the word "today" as a parameter...this means that everyday, the graph generated will be different. Is there a way for Zope to respond to a cgi program that's being called as "img src" value?
I think maybe the issue got clouded by the phrase, "server-side includes". What you are asking for is not a server-side include: you want to generate a tag in Zope, something like: <img src="build_graph?units=hours&series_a=hit_count&series_b=load_factor"> This isn't SSI because the browser makes a separate request for the image, after/while loading the page containing the tag; SSI is massaged by the server before the browser ever sees the text. That said, it *is* feasible to build a parameterized image link, using exactly this kind of syntax. There are a couple of contributed products which do on-the-fly image generation: * "gdchart":http://www.zope.org/Members/teyc/ZGDChart "draws charts using data from your ZSQLMethod" * "TTImage":http://www.zope.org/Members/RainDog/TTImage Converts text strings into a GIF/PNG/JPEG images using TrueType fonts. I may have even missed one -- check out the "Zope Products":http://www.zope.org/Products page. -- ========================================================= Tres Seaver tseaver@palladion.com 713-523-6582 Palladion Software http://www.palladion.com
participants (1)
-
Tres Seaver