Hi; I've built a site with inline frames. Each page has one inline frame that bears the same name as the page calling it with the tag *_frame*. I want to code into my template a way to call the dtml document and render it within a noframes tag in the calling document. 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? TIA, BenO
Ben Ocean wrote:
import string
def concatFrame(str): frame = string.join(str,'_frame') return frame
Just a small note; 'str' is the name of a python builtin function, you may end up confusing yourself if you use it a lot as a variable name. I get the same with 'type' ;-) cheers, Chris
participants (2)
-
Ben Ocean -
Chris Withers