passing attributes to images
and to other objects <dtml-var imagename> gives me <image src=imagename" width="123" height="456"> How can I get other attributes in there (such as BORDER=0). If I do the <image src=imagename explicitly I have to fill in the dimensions by hand (they are not the default ones). Also, is there a general mechanism for doing this sort of thing? Andy -- ------------------------------------------------- Andy Heath a.k.heath@open.ac.uk The Open University +44 (0) 114 2885738
Use: <dtml-var "imagename.tag(border=0)"> Also: <dtml-var "imagename.tag(xscale=2, yscale=3)"> On Mon, 13 Mar 2000 17:26:26 +0000, Andy Heath wrote:
and to other objects
<dtml-var imagename>
gives me
<image src=imagename" width="123" height="456">
How can I get other attributes in there (such as BORDER=0).
If I do the <image src=imagename explicitly I have to fill in the dimensions by hand (they are not the default ones).
Also, is there a general mechanism for doing this sort of thing?
-Jeff Rush
On Mon, 13 Mar 2000, Andy Heath wrote:
<dtml-var imagename>
gives me
<image src=imagename" width="123" height="456">
How can I get other attributes in there (such as BORDER=0).
For images, you can use: <dtml-var "imagename.tag(border='0')"> I'm not sure what a "general method" would apply to, but I'd hazard to guess that any object that produces a tag when rendered should probably have a similar tag method... --RDM
-----Original Message----- On Mon, 13 Mar 2000, Andy Heath wrote:
<dtml-var imagename>
gives me
<image src=imagename" width="123" height="456">
How can I get other attributes in there (such as BORDER=0).
For images, you can use:
<dtml-var "imagename.tag(border='0')">
For me <image src="imagename" width="123" height="456" border="0"> works fine cb
participants (4)
-
Andy Heath -
Cornelis J. de Brabander -
Jeff Rush -
R. David Murray