[Zope] <dtml..> show dynamic page

HT htan@gmx.de
Mon, 5 Aug 2002 16:41:59 +0800


This is a multi-part message in MIME format.

------=_NextPart_000_0013_01C23C9F.0499F360
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hi,=20

I have problem understanding thte DTML document and hope some expert =
help.

examples:=20
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=3Duserinfo


If I use the 2nd example, the <dtml-var pg> resolve the page as a String =
instead of as document.
How to solve this?




------=_NextPart_000_0013_01C23C9F.0499F360
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2600.0" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Hi, </FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>I have problem understanding thte DTML =
document and=20
hope some expert help.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>examples: </FONT></DIV>
<DIV><FONT face=3DArial size=3D2>The code below is found in my=20
index_html</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>basically this index_html is wrapping 3 =
more=20
documents which are listed below in dtml-var.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>This is fine and works =
well.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>But please look at 2nd =
example:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>1st example:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>---------------------</FONT></DIV>
<DIV><FONT color=3D#0000c0>&lt;</FONT><FONT color=3D#c00000=20
ex_keyword>dtml</FONT><FONT color=3D#0000c0 ex_op>-</FONT><FONT =
color=3D#c00000=20
ex_keyword>var</FONT> <FONT color=3D#7c0000=20
ex_resword>standard_html_header</FONT><FONT color=3D#0000c0=20
ex_op>&gt;</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;&nbsp; &lt;dtml-var=20
my_content_page&gt;</FONT><BR><FONT color=3D#0000c0 =
ex_op>&lt;</FONT><FONT=20
color=3D#c00000 ex_keyword>dtml</FONT><FONT color=3D#0000c0 =
ex_op>-</FONT><FONT=20
color=3D#c00000 ex_keyword>var</FONT> <FONT color=3D#7c0000=20
ex_resword>standard_html_footer</FONT><FONT color=3D#0000c0=20
ex_op>&gt;</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>-----------------</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>2nd example of dynamicpage =
document</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>
<DIV><FONT face=3DArial size=3D2>---------------------</FONT></DIV>
<DIV><FONT color=3D#0000c0>&lt;</FONT><FONT color=3D#c00000=20
ex_keyword>dtml</FONT><FONT color=3D#0000c0 ex_op>-</FONT><FONT =
color=3D#c00000=20
ex_keyword>var</FONT> <FONT color=3D#7c0000=20
ex_resword>standard_html_header</FONT><FONT color=3D#0000c0=20
ex_op>&gt;</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;&nbsp; &lt;dtml-var =
pg&gt;</FONT><BR><FONT=20
color=3D#0000c0 ex_op>&lt;</FONT><FONT color=3D#c00000 =
ex_keyword>dtml</FONT><FONT=20
color=3D#0000c0 ex_op>-</FONT><FONT color=3D#c00000 =
ex_keyword>var</FONT> <FONT=20
color=3D#7c0000 ex_resword>standard_html_footer</FONT><FONT =
color=3D#0000c0=20
ex_op>&gt;</FONT></DIV>
<DIV><FONT face=3DArial =
size=3D2>-----------------</FONT></DIV></FONT></DIV>
<DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>The &lt;dtml-var pg&gt; contain dynamic =
pg=20
variable.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>At the present moment, I don't know =
what page, the=20
user is selecting.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Assume, the user select: <A=20
href=3D"http://myzope/dynamicpage?pg=3Duserinfo">http://myzope/dynamicpag=
e?pg=3Duserinfo</A></FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>If I use the 2nd example, the =
&lt;dtml-var pg&gt;=20
resolve the page as a String instead of as document.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>How to solve this?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV></DIV></BODY></HTML>

------=_NextPart_000_0013_01C23C9F.0499F360--