Hi! I guess Ben solved his problem the easier way (without the method involved). But still I'd like to comment on this for the record: I have created a Python method
called concatFrame.py:
import string
def concatFrame(str): frame = string.join(str,'_frame') return frame
I'm trying to call it thusly:
<dtml-var "concatFrame(title_or_id())">
It ain't working. What do I need to do?
1.) "title_or_id()" returns a string. 2.) "concatFrame(a_string)" returns another string 3.) <dtml-var "this_new_string_which_actually_is_an_id"> will probably return your document html quoted :-o
Not quite. "<dtml-var "concatFrame(title_or_id())">" will pass the title_or_id as string, which is good. Then it will add "_frame" to the string and then display the STRING ... ;-)
<dtml-var "_[concatFrame(title_or_id())]">
Correct ... Cheers Joachim