[Zope] ZCatalog

Chris McDonough chrism@digicool.com
Mon, 17 Jul 2000 00:49:42 -0400


Jonathan Desp wrote:
> 
> Hi Chris,
> 
> thanks alot for your help,
> 
> You said:
> 
> > <dtml-var title>
> >
> > You would replace it with:
> >
> > <a href="<dtml-var "catalog.getpath(data_record_id_)">">
> > <dtml-var title>
> 
> But there is no <dtml-var title>
> 
> I think it's the right file "Report" though, he said:
> 
> "To fix this, go to the management view of report. report is called by
> search to display the results from catalog. "
> 
> do you know what I should change if <dtml-var title> is  not there ?

You've got the right method.  Replace

<dtml-var raw>

with

<a href="<dtml-var "catalog.getpath(data_record_id_)">"><dtml-var
title></a>

The tutorial is getting a little long in the tooth.

> here is my source for the "Report" file:
> 
> _________________________
> 
> <dtml-var standard_html_header>
> <dtml-in s size=50 start=query_start>
>    <dtml-if sequence-start>
> 
>       <dtml-if previous-sequence>
> 
>         <a href="<dtml-var URL><dtml-var sequence-query
>                  >query_start=<dtml-var
>                  previous-sequence-start-number>">
>         (Previous <dtml-var previous-sequence-size> results)
>         </a>
> 
>       </dtml-if previous-sequence>
> 
>       <table border>
>         <tr>
>           <th>Raw</th>
>         </tr>
> 
>    </dtml-if sequence-start>
> 
>         <tr>
>           <td><dtml-var raw></td>
>         </tr>
> 
>    <dtml-if sequence-end>
> 
>       </table>
>       <dtml-if next-sequence>
> 
>          <a href="<dtml-var URL><dtml-var sequence-query
>             >query_start=<dtml-var
>             next-sequence-start-number>">
>          (Next <dtml-var next-sequence-size> results)
>          </a>
> 
>       </dtml-if next-sequence>
>    </dtml-if sequence-end>
> 
> <dtml-else>
> 
>   There was no data matching this <dtml-var title_or_id> query.
> 
> </dtml-in>
> 
> <dtml-var standard_html_footer>
>