I want to have all my images in a subfolder. Then, in an <IMG> tag, it _should_ be possible to reference them by making this tag: <IMG SRC="Images.Logo"> assuming the Logo image is in the Images folder... but it doesnt work... some1 give me a clue... -- Arjan Scherpenisse, A.Scherpenisse@zap.a2000.nl ICQ# 27592135
Try this (untested) code: <dtml-with Images> <dtml-var "Logo.tag(alt='Corp Logo',border='3')"> </dtml-with> -- Loren
-----Original Message----- From: Arjan Scherpenisse [mailto:arjan@node1281e.a2000.nl]On Behalf Of Arjan Scherpenisse Sent: Wednesday, November 10, 1999 13:36 To: zope@zope.org Subject: [Zope] Question
I want to have all my images in a subfolder. Then, in an <IMG> tag, it _should_ be possible to reference them by making this tag: <IMG SRC="Images.Logo"> assuming the Logo image is in the Images folder...
but it doesnt work... some1 give me a clue... -- Arjan Scherpenisse, A.Scherpenisse@zap.a2000.nl ICQ# 27592135
_______________________________________________ Zope maillist - Zope@zope.org 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 )
On 10 Nov 1999, Arjan Scherpenisse wrote:
I want to have all my images in a subfolder. Then, in an <IMG> tag, it _should_ be possible to reference them by making this tag: <IMG SRC="Images.Logo"> assuming the Logo image is in the Images folder...
but it doesnt work... some1 give me a clue...
DTML isn't modifying this at all, as there are no DTML commands in there. If the Images folder is in the root of your Zope tree, you want to use <IMG SRC="/Images/Logo"> just like if you were writing standard HTML. A more zopeish method is: <IMG SRC="<DTML-VAR "Images.Logo.absolute_url()">"> Or probably the nicest, that automatically fills out height, width and alt attributes, would be: <dtml-var Images.Logo.tag> or: <dtml-var "Images.Logo.tag()"> This last calls the tag() method of an image object, which will rendered to the correct HTML. This is all from memory so hopefully I got it right :-) ___ // Zen (alias Stuart Bishop) Work: zen@cs.rmit.edu.au // E N Senior Systems Alchemist Play: zen@shangri-la.dropbear.id.au //__ Computer Science, RMIT WWW: http://www.cs.rmit.edu.au/~zen
Arjan Scherpenisse wrote:
I want to have all my images in a subfolder. Then, in an <IMG> tag, it _should_ be possible to reference them by making this tag: <IMG SRC="Images.Logo">
try: <IMG SRC="Images/Logo"> the external (WWW/HTTP) representation uses /
assuming the Logo image is in the Images folder...
but it doesnt work... some1 give me a clue...
If you hav ethw images folder at some point like / or /Z/ use /Images/Logo or /Z/Images/Logo or else the images will not be cached (but will be usable due to Aquisition) ------------- Hannu
participants (4)
-
Arjan Scherpenisse -
Hannu Krosing -
Loren Stafford -
Stuart 'Zen' Bishop