[Zope] How to display image returned from Catalog query

2001-01-30 Thread Timothy Wilson

Hey everyone,

I've got a PythonScript that returns a list of 'Photo' instances. I'm using

dtml-in returnPOTD size="1" orphan="0"

to grab the first instance off the list.

What I can't figure out is how to display that image. I can use

a href="dtml-absolute_url;"dtml-var title/a

to make a link to the image, but I want this method to display the image
directly.

dtml-var sequence-item returns the instance itself and doesn't display
anything. I'm sure there's something simple I'm missing here. Any
suggestions?

-Tim

--
Tim Wilson  | Visit Sibley online: | Check out:
Henry Sibley HS | http://www.isd197.k12.mn.us/ | http://www.zope.org/
W. St. Paul, MN |  | http://slashdot.org/
[EMAIL PROTECTED] |   dtml-var pithy_quote | http://linux.com/


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




Re: [Zope] How to display image returned from Catalog query

2001-01-30 Thread Timothy Wilson

On Tue, 30 Jan 2001, Oleg Broytmann wrote:

 On Tue, 30 Jan 2001, Timothy Wilson wrote:
  What I can't figure out is how to display that image. I can use
 
  a href="dtml-absolute_url;"dtml-var title/a
 
  to make a link to the image, but I want this method to display the image
  directly.
 
img src="dtml-absolute_url;" ?

Doh! I was trying to do too much with DTML. Thanks for the tip!

-Tim

--
Tim Wilson  | Visit Sibley online: | Check out:
Henry Sibley HS | http://www.isd197.k12.mn.us/ | http://www.zope.org/
W. St. Paul, MN |  | http://slashdot.org/
[EMAIL PROTECTED] |   dtml-var pithy_quote | http://linux.com/


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




Re: [Zope] How to display image returned from Catalog query

2001-01-30 Thread Oleg Broytmann

On Tue, 30 Jan 2001, Timothy Wilson wrote:
 What I can't figure out is how to display that image. I can use

 a href="dtml-absolute_url;"dtml-var title/a

 to make a link to the image, but I want this method to display the image
 directly.

   img src="dtml-absolute_url;" ?

Oleg.

 Oleg Broytmann http://www.zope.org/Members/phd/ [EMAIL PROTECTED]
   Programmers don't die, they just GOSUB without RETURN.


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )