11 Nov
2001
11 Nov
'01
3:50 a.m.
Hi; I'm trying to concatenate a <dtml-var> with a string. I have this poor attempt: <dtml-var expr="_.string(title_or_id.'_frame')(_,_.None)"> where *title_or_id* is (of course) the <dtml-var> and *_frame* is the string. How should I do this?
<dtml-var "_[title_or_id()+'_frame']"> This one was easy ;-) Explanation: titel_or_id is a method. If you want it to return a string, you have to CALL it (that's why you need the "()") ... Joachim