[Zope] Display parent container title in Page Template

Satheesh Babu vattekkat.babu at verizon.net
Mon Aug 18 17:02:55 EDT 2003


In content.htm:

<span tal:content="template/title">content.htm's title<span>
<span tal:content="here/title">content.htm's parent container folder's 
title<span>
<span tal:content="here/../title">content.htm's parent's parent's 
title<span>

and so on...

Babu
http://vsbabu.org/

hpinson at indepthl.com wrote:
> Hi. In a Page Template, how can I display the title property of a  
> parent container, in this case, a folder?
> 
> For example:
> 
> Title: <strong><span tal:content="result/title">Item 
> Title</span></strong><br>
> 
> Returns the title of the page template document, but I need to show 
> the title property of the folder that contains it.
> 
> Folder (My Folder's Title)
>   |__ content.htm (a Page Template)
> 
> Ultimately the parent folder would have a title property for each of 
> several languages.





More information about the Zope mailing list