29 Sep
2000
29 Sep
'00
9:34 p.m.
Tres Seaver writes:
You were very close -- the trick here is that 'objectValues' returns real objects, not IDs. Try this (untested)::
<dtml-in "objectValues( [ 'Photo' ] )"> <dtml-let photo=sequence-item> <!-- alias so we can use in expr! --> <dtml-var "photo( display='thumbnail' )"> </dtml-let> </dtml-in> This, probably, will not work, as *ALL* name arguments (as e.g. in <dtml-let .... xxx=name ...>) call the object, if it is callable.
You can use "_.getitem('sequence_item')" to get an object itself and not the result of calling the object. Dieter