Tony McDonald wrote:
At 6:19 pm +0000 15/2/00, Chris Withers wrote:
<dtml-var "images.logo"> (*should* work, may need to add () to the end of logo)
This works really well and partly solves the other problems I mentioned (ie relative URLS for images, however HREF's still remain a problem...) using the following syntax:
<dtml-var "PARENTS[-1].project.images.logo">
Except for one problem:
'logo' is actually a gif called 'Niplogo.gif'
Using the above syntax, how would I access the Niplogo.gif object? I tried the following:
<dtml-var "PARENTS[-1].project.images.Niplogo.gif">
and got an attribute error for my troubles ;-)
cheers,
Chris
Hmmm, How about renaming niplogo.gif to niplogo and trying it that way (what you're trying to do when you do <dtml-var "PARENTS[-1].project.images.Niplogo.gif"> is get the attribute '.gif' from the object Niplogo). In other words, you need to get away from using the extension....
I also found this; <dtml-var "yourimage.tag(border=0, alt='', width='', height='')">
hth tone. ------ Dr Tony McDonald, FMCC, Networked Learning Environments Project http://nle.ncl.ac.uk/ The Medical School, Newcastle University Tel: +44 191 222 5888 Fingerprint: 3450 876D FA41 B926 D3DD F8C3 F2D0 C3B9 8B38 18A2