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