[ZPT] Here Parent
Tino Wildenhain
tino@wildenhain.de
Thu, 02 Aug 2001 13:44:08 +0200
Hi Georges,
I would have no use for this and may be others also dont.
So if you need it, you can make an PythonScript named
parent like this in the root:
return(container.REQUEST.PARENTS[-1:0][0])
and call it:
here/parent/title
Regards
Tino
--On Mittwoch, 1. August 2001 18:37 -0300 Georges J Baladi Jr=20
<georges@madisoncomunicacao.com.br> wrote:
>
> 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
>