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/ wilson@visi.com | <dtml-var pithy_quote> | http://linux.com/
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/ phd@phd.pp.ru Programmers don't die, they just GOSUB without RETURN.
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/ wilson@visi.com | <dtml-var pithy_quote> | http://linux.com/
jason, this is called 'entity notation'. the semicolon is a standard part of it. another example of an item in entity notation would be to replace "<" with < or the often abused blank space this entity notation is a general HTML thing, it's not zope-specific. jens on 1/30/01 17:49, Jason Cunliffe at jasonic@nomadicsltd.com wrote:
example: <img src="&dtml-absolute_url;"> ^ ^ ^ ?
Please can anyone explain why <&dtml...> syntax has a semi-colon ; at the end?
What is for? Why is necessary? etc How to use/abuse it?
thanks
Jason
participants (4)
-
Jason Cunliffe -
Jens Vagelpohl -
Oleg Broytmann -
Timothy Wilson