5 Jan
2002
5 Jan
'02
9:52 p.m.
My Code: <dtml-let myTemp=id> <dtml-let MyID="'theme_'+myTemp+'.gif'"> 'if an image is not available, this will result in an KeyError <dtml-if "images[MyID]">
try <dtml-if "hasattr(images, MyID)"> instead I must correct this a little bit: <dtml-if "_.hasattr(images,MyID) ">
<dtml-var "images[MyID]"> <dtml-else> <dtml-var "images['theme_']"> </dtml-if> </dtml-let> </dtml-let>