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?
Try: <a href="<dtml-var "Catalog.getpath(data_record_id_)">"><dtml-var title></a> See the ZCatalog API documentation. http://www.zope.org/Members/michel/ZB/SearchingZCatalog.dtml also mentions creating a meta_data column for absolute_url but this seems like a waste of space to me? HTH, -- Tim Cook, President - FreePM,Inc. http://www.FreePM.com Office: (731) 884-4126 ONLINE DEMO: http://www.freepm.org:8080/FreePM