[ZPT] Here Parent

Georges J Baladi Jr Georges J Baladi Jr" <georges@madisoncomunicacao.com.br
Wed, 1 Aug 2001 18:37:31 -0300


This is a multi-part message in MIME format.

------=_NextPart_000_017D_01C11AB9.06222EE0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hi,

I am not sure if exists some kind of retrieve proprierts from the parent =
folder object when using ZPT. Some example (my english is not very =
good!):

root (title aaa)
  index_html (my page template)
  folder1 (title xxx)
     folder2 (title yyy)
         folder3 (title zzz)


if I call /folder1/foilder2/folder3 and the page template has this code:

<html>
  <head>
    <title>The title</title>
  </head>
  <body>
        This is Page Template <em
    tal:content=3D"container/title">template id</em>.
  </body>
</html>


I will have: This is Page Template aaa.

If I replace container/title with here/title I will have: This is Page =
Template zzz.

But, if I want something like: "This is Page Template yyy" I can=B4t use =
request/URL2/title. I am using some python code to retrieve the needed =
value, but I sugest something like: here/parent/title or parent/title.

Thanks,

Georges Baladi


------=_NextPart_000_017D_01C11AB9.06222EE0
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 5.50.4522.1800" 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 am not sure if exists some kind of =
retrieve=20
proprierts from the parent folder object when using ZPT. Some example =
(my=20
english is not very good!):</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>root (title aaa)</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp; index_html (my page =
template)</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp; folder1 (title xxx)</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;&nbsp;&nbsp;&nbsp; folder2 (title =

yyy)</FONT></DIV>
<DIV><FONT face=3DArial =
size=3D2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
folder3 (title zzz)</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 call /folder1/foilder2/folder3 and =
the page=20
template has this code:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>&lt;html&gt;<BR>&nbsp;=20
&lt;head&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;title&gt;The=20
title&lt;/title&gt;<BR>&nbsp; &lt;/head&gt;<BR>&nbsp;=20
&lt;body&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; This is Page =
Template=20
&lt;em<BR>&nbsp;&nbsp;&nbsp; tal:content=3D"container/title"&gt;template =

id&lt;/em&gt;.<BR>&nbsp; &lt;/body&gt;<BR>&lt;/html&gt;<BR></FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>I will have: This is Page Template=20
aaa.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>If I replace container/title with =
here/title I will=20
have: This is Page Template zzz.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>But, if I want something like: "This is =
Page=20
Template yyy" I can=B4t use request/URL2/title. I am using some python =
code to=20
retrieve the needed value, but I sugest something like: =
here/parent/title or=20
parent/title.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial><FONT size=3D2>Thanks,</FONT></FONT></DIV>
<DIV><FONT face=3DArial><FONT size=3D2></FONT></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial><FONT size=3D2>Georges =
Baladi</FONT></FONT></DIV>
<DIV><FONT face=3DArial>&nbsp;</DIV></FONT></BODY></HTML>

------=_NextPart_000_017D_01C11AB9.06222EE0--