[Zope] Display parent container title in Page Template
Satheesh Babu
vattekkat.babu at verizon.net
Mon Aug 18 17:37:21 EDT 2003
hpinson at indepthl.com wrote:
> <span tal:content="here/../title">
>
> works... but
>
> <span tal:content="result/../title">
>
> does not work. Unfortunaly, I need to use the latter, since this is
> the results of a ZCatalog search and is dynamic. Thanks anyway.
Is "result" a record returned by ZCatalog search? If so, it wouldn't
work. It will work if result is the *actual* object corresponding to the
record.
If I understand correctly, you want to display the parent's title of the
objects returned in a Catalog query.
<div tal:repeat="result here/Catalog/searchResults">
<strong tal:define="obj
python:here.Catalog.getobject(result.data_record_id_)">
<span tal:content="obj/../title">title of parent of record
returned</span>
</strong>
</div>
Babu
http://vsbabu.org/
More information about the Zope
mailing list