Hi, I have problem understanding thte DTML document and hope some expert help. examples: The code below is found in my index_html basically this index_html is wrapping 3 more documents which are listed below in dtml-var. This is fine and works well. But please look at 2nd example: 1st example: --------------------- <dtml-var standard_html_header> <dtml-var my_content_page> <dtml-var standard_html_footer> ----------------- 2nd example of dynamicpage document --------------------- <dtml-var standard_html_header> <dtml-var pg> <dtml-var standard_html_footer> ----------------- The <dtml-var pg> contain dynamic pg variable. At the present moment, I don't know what page, the user is selecting. Assume, the user select: http://myzope/dynamicpage?pg=userinfo If I use the 2nd example, the <dtml-var pg> resolve the page as a String instead of as document. How to solve this?
I think you can get what you want with: <dtml-var standard_html_header> <dtml-var "_[pg]"> <dtml-var standard_html_footer> Rick HT wrote:
Hi,
I have problem understanding thte DTML document and hope some expert help.
examples: The code below is found in my index_html basically this index_html is wrapping 3 more documents which are listed below in dtml-var. This is fine and works well. But please look at 2nd example:
1st example: --------------------- <dtml-var standard_html_header> <dtml-var my_content_page> <dtml-var standard_html_footer> -----------------
2nd example of dynamicpage document
--------------------- <dtml-var standard_html_header> <dtml-var pg> <dtml-var standard_html_footer> -----------------
The <dtml-var pg> contain dynamic pg variable. At the present moment, I don't know what page, the user is selecting.
Assume, the user select: http://myzope/dynamicpage?pg=userinfo
If I use the 2nd example, the <dtml-var pg> resolve the page as a String instead of as document. How to solve this?
thanks you. it works. I thtink, I don't find such usage of ( "_[pg]") in the zopebook. Where can I find such documentation? Best regards, Heri ----- Original Message ----- From: "D. Rick Anderson" <ruger@comnett.net> To: "HT" <htan@gmx.de>; <zope@zope.org> Sent: Monday, August 05, 2002 4:57 PM Subject: Re: [Zope] <dtml..> show dynamic page
I think you can get what you want with:
<dtml-var standard_html_header> <dtml-var "_[pg]"> <dtml-var standard_html_footer>
Rick
HT wrote:
Hi,
I have problem understanding thte DTML document and hope some expert help.
examples: The code below is found in my index_html basically this index_html is wrapping 3 more documents which are listed below in dtml-var. This is fine and works well. But please look at 2nd example:
1st example: --------------------- <dtml-var standard_html_header> <dtml-var my_content_page> <dtml-var standard_html_footer> -----------------
2nd example of dynamicpage document
--------------------- <dtml-var standard_html_header> <dtml-var pg> <dtml-var standard_html_footer> -----------------
The <dtml-var pg> contain dynamic pg variable. At the present moment, I don't know what page, the user is selecting.
Assume, the user select: http://myzope/dynamicpage?pg=userinfo
If I use the 2nd example, the <dtml-var pg> resolve the page as a String instead of as document. How to solve this?
HT writes:
it works. I thtink, I don't find such usage of ( "_[pg]") in the zopebook. Probably, you did not read carefully enough (see the DTML namespace).
Where can I find such documentation? You will find something also in the "Name lookup" section of
<http://www.dieter.handshake.de/pyprojects/zope/book/chap3.html> Dieter
HT wrote:
The <dtml-var pg> contain dynamic pg variable. At the present moment, I don't know what page, the user is selecting.
Assume, the user select: http://myzope/dynamicpage?pg=userinfo
You should let the page render itself. So your url would become:: http://myzope/dynamicpage/userinfo <http://myzope/dynamicpage?pg=userinfo> regards Max M -- "Sorry I would Really Like To Help More On This Project, But Am To Busy Doing Paid Work On A Tight Deadline" Max M
participants (4)
-
D. Rick Anderson -
Dieter Maurer -
HT -
Max M