[Zope] ZSearch Results Calling URL?

Tim Cook tim@freepm.org
Thu, 24 May 2001 23:28:27 -0500

Leigh Ann Hildebrand wrote:
> I'm modifying the standard ZSearch results and having problems calling
> object URLS using DTML.
> I'm doing a search of documents. The standard search results include
> <dtml-var title> in the table. I'd like that title to be a link to the
> document itself. However, various methods I've tried end up returning
> the URL as the Results page itself, not the document page:
> <td><a href="<dtml-var absolute_url>"><dtml-var title></a></td>
> ...does it, as does plain <dtml-var URL>, etc.
> How do I specify "URL of the thing that you're giving me the title of"
> in this situation?

<a href="<dtml-var "Catalog.getpath(data_record_id_)">"><dtml-var
See the ZCatalog API documentation.

also mentions creating a meta_data column for absolute_url but
this seems like a waste of space to me?

Tim Cook, President - FreePM,Inc. 
http://www.FreePM.com Office: (731) 884-4126
ONLINE DEMO: http://www.freepm.org:8080/FreePM