[Zope] Re: search results
Sven Rudolph
rudolph@medical-tribune.de
Thu, 17 Oct 2002 15:44:39 +0200
Hello Maik,
> > <dtml-in MYZCATALOG>
> > <a href="<dtml-var "absolute_url(1)">"><dtml-var title_or_id></a><br>
> > </dtml-in>
> >
>
> that does not work if you haven't stored the metadata for absolute_url
> and title in your ZCatalog...;-)
That's right. I forgot it because I always do this.
> a better approach would be: put the current object from the ZCatalog on
> the namespace:
>
> <dtml-with "getobject(data_record_id_)">
> <a href="<dtml-var absolute_url>"><dtml-var title_or_id></a><br>
> </dtml-with>
This would result in a little performance loss because you have to wake up each matching object just to get the url and the id.
Greetings
Sven Rudolph
--
Sven Rudolph, Programmierer
Medical Tribune Verlagsgesellschaft mbH
Unter den Eichen 5, 65195 Wiesbaden
Tel.: 06 11 / 97 46 25 2