[Zope] Reading parameter from DTML
HT
htan@gmx.de
Tue, 6 Aug 2002 20:46:01 +0800
This is a multi-part message in MIME format.
------=_NextPart_000_003D_01C23D8A.46A89630
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Hi,
I need help on why my dynamic page reading doesns't work.
As an example below, I have a DTML-Method called dtml_action.
this dtml_action will read the parameter from page (from the same =
directory) that invoked it.
dtml_action document:
--------------------------------------------------
<dtml-var standard_html_header>
<dtml-var page>
<dtml-var standard_html_footer>
-------------------------------------------------
As an example, my index_html need to diplay history_html document by =
using dtml_action.
index_html document:
-------------------------------------------------------------------------=
---
<dtml-if page> =20
<dtml-var dtml_action?page=3Dhistory_html>
</dtml-if>
-------------------------------------------------------------------------=
The code inside index_html definitely doesn't work because there isn't =
such variable like 'dtml_action?page=3Dhistory_html'
But I just don't know the syntax.
Can anyone help?
------=_NextPart_000_003D_01C23D8A.46A89630
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> </DIV>
<DIV><FONT face=3DArial size=3D2>I need help on why my dynamic page =
reading doesns't=20
work.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>As an example below, I have a =
DTML-Method=20
called dtml_action.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>this dtml_action will read the =
parameter from page=20
(from the same directory) that invoked it.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>dtml_action document:</FONT></DIV>
<DIV><FONT face=3DArial=20
size=3D2>--------------------------------------------------</FONT></DIV>
<DIV><FONT face=3DArial size=3D2><dtml-var =
standard_html_header></FONT></DIV>
<DIV><FONT face=3DArial =
size=3D2> =20
<dtml-var page></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><dtml-var=20
standard_html_footer><BR>---------------------------------------------=
----<BR></FONT></DIV>
<DIV><FONT face=3DArial size=3D2>As an example, my index_html need to =
diplay=20
history_html document by using dtml_action.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>index_html document:</FONT></DIV>
<DIV><FONT face=3DArial=20
size=3D2>----------------------------------------------------------------=
------------</FONT></DIV>
<DIV><FONT face=3DArial size=3D2><dtml-if page></FONT><FONT =
face=3DArial=20
size=3D2> </FONT></DIV>
<DIV><FONT face=3DArial size=3D2> <dtml-var=20
dtml_action?page=3Dhistory_html></FONT></DIV>
<DIV><FONT face=3DArial size=3D2></dtml-if></FONT></DIV>
<DIV><FONT face=3DArial=20
size=3D2>----------------------------------------------------------------=
---------</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>The code inside index_html definitely =
doesn't work=20
because there isn't such variable like=20
'dtml_action?page=3Dhistory_html'</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>But I just don't know the =
syntax.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Can anyone help?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2> </DIV></FONT></BODY></HTML>
------=_NextPart_000_003D_01C23D8A.46A89630--