try: <dtml-with folder><dtml-var method></dtml-with> -----Original Message----- From: Mike Mikkelsen [mailto:mikk@microbsys.com] Sent: Friday, October 01, 1999 4:37 PM To: zope@zope.org Subject: [Zope] rendering document in sub-folder Hello all, I can't seem to figure out how to include a document (or method) in a subfolder in the top level index_html. When I use <dtml-var "folder.method"> it just shows me the code *in* the method (or doc). When the method (or doc) is in the same folder as the index_html, it renders the included html properly. Obviously, I missed *something*. 8-) Any ideas?
Thanks for the response. I just tried that, but I get the same results. I've tried a few different methods of "acquisition" that I've seen on the mailing list, but still not the right one. The html from the method *or* document that I call still shows up as html, and is not rendered into a "webpage". Thanx. Terrel Shumway wrote:
try: <dtml-with folder><dtml-var method></dtml-with>
-----Original Message----- From: Mike Mikkelsen [mailto:mikk@microbsys.com] Sent: Friday, October 01, 1999 4:37 PM To: zope@zope.org Subject: [Zope] rendering document in sub-folder
Hello all,
I can't seem to figure out how to include a document (or method) in a subfolder in the top level index_html. When I use <dtml-var "folder.method"> it just shows me the code *in* the method (or doc). When the method (or doc) is in the same folder as the index_html, it renders the included html properly.
Obviously, I missed *something*. 8-)
Any ideas?
Mike Mikkelsen wrote:
Thanks for the response.
I just tried that, but I get the same results. I've tried a few different methods of "acquisition" that I've seen on the mailing list, but still not the right one. The html from the method *or* document that I call still shows up as html, and is not rendered into a "webpage".
Terrel was correct: <dtml-with folder> <dtml-var method> </dtml-with> I'm gusing you typed: <dtml-with "folder"> <dtml-with "method"> </dtml-with> Which would cause what your getting. -Michel
Thanx.
Terrel Shumway wrote:
try: <dtml-with folder><dtml-var method></dtml-with>
-----Original Message----- From: Mike Mikkelsen [mailto:mikk@microbsys.com] Sent: Friday, October 01, 1999 4:37 PM To: zope@zope.org Subject: [Zope] rendering document in sub-folder
Hello all,
I can't seem to figure out how to include a document (or method) in a subfolder in the top level index_html. When I use <dtml-var "folder.method"> it just shows me the code *in* the method (or doc). When the method (or doc) is in the same folder as the index_html, it renders the included html properly.
Obviously, I missed *something*. 8-)
Any ideas?
_______________________________________________ Zope maillist - Zope@zope.org http://www.zope.org/mailman/listinfo/zope
(Related lists - please, no cross posts or HTML encoding!
To receive general Zope announcements, see: http://www.zope.org/mailman/listinfo/zope-announce
For developer-specific issues, zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev )
This is the error I get when I set it without the quotes: Error Type: TypeError Error Value: hasattr, argument 2: expected string, int found Hope this helps. I'm stumped. From what I've heard on this site, how I have it setup is correct. Maybe there is something wrong with my installation. ....Everything else *seems* to work ok..... This happens to be on an almost standard ZServer setup on the modified port of 1104 (ZServer won't run on the default ports) anymore since I did the rewrite thing with one of my "regular" apache served domains. Thanks for your replies. [snip]
Terrel was correct:
<dtml-with folder> <dtml-var method> </dtml-with>
I'm gusing you typed:
<dtml-with "folder"> <dtml-with "method"> </dtml-with>
Which would cause what your getting.
-Michel [snip]
-- Mike Mikkelsen
Mike Mikkelsen wrote:
This is the error I get when I set it without the quotes:
Error Type: TypeError Error Value: hasattr, argument 2: expected string, int found
what does the traceback embeded in HTML comments on this error page say? -Michel
Hope this helps. I'm stumped. From what I've heard on this site, how I have it setup is correct. Maybe there is something wrong with my installation. ....Everything else *seems* to work ok..... This happens to be on an almost standard ZServer setup on the modified port of 1104 (ZServer won't run on the default ports) anymore since I did the rewrite thing with one of my "regular" apache served domains.
Thanks for your replies.
[snip]
Terrel was correct:
<dtml-with folder> <dtml-var method> </dtml-with>
I'm gusing you typed:
<dtml-with "folder"> <dtml-with "method"> </dtml-with>
Which would cause what your getting.
-Michel [snip]
-- Mike Mikkelsen
_______________________________________________ Zope maillist - Zope@zope.org http://www.zope.org/mailman/listinfo/zope
(Related lists - please, no cross posts or HTML encoding!
To receive general Zope announcements, see: http://www.zope.org/mailman/listinfo/zope-announce
For developer-specific issues, zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev )
participants (3)
-
Michel Pelletier -
Mike Mikkelsen -
Terrel Shumway