OK, I have a small problem now.
This is my main DTML document1:
<dtml-var standard_html_header>
<dtml-var expr="_.getitem(someMethod,1)">
<p> That's all. </p>
<dtml-var standard_html_footer>
Let's say the variable someMethod holds the string 'Method1'.
The DTML Method 'Method1' holds this:
<h1> HELLO </h1>
This actually outputs what you would expect:
'header stuff'
HELLO (bold)
That's all.
'footer stuff'
But what if Method1 is not in the same folder? For example, if it's in the folder 'Methods' which is in the folder that the main document is in. I can't seem to get that to work. I've tried this:
<dtml-var expr="_.getitem('Methods.'+someMethod,1)">
and I've tried changing the variable name to 'Methods.Method1', but each of these gives me an error:
This resource may be trying to reference a nonexistent object or variable Methods.Method1.
Using Methods.Method1() does not make a difference.
If I just put in <dtml-var expr="Methods.Method1()"> it works. Not what I want though.
Thanks for you time reading through this message. I'm really just experimenting with Zope right now, trying to learn what it can do and how it accomplishes those things. I have a feeling some experienced Zope users are laughing hysterically at some of the things I'm doing!
-Jeremiah