AW: [Zope] Searching the Catalog

Marc Fischer marcbpc@gmx.de
Wed, 21 Mar 2001 14:30:56 +0100


Here are my DTML methods, ... nearly the automatic generated ones
Perhabs you could tell me where to edit this source ...


Here is my report form:
--------------------------------

<dtml-var standard_html_header>


<dtml-with NewsItems>

<dtml-in Catalog 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>

   <H2>Ihre Suchanfrage lieferte folgende Ergebnisse</H2>

   </dtml-if sequence-start>


**** This is just the view of the returned attributes ***


      <dtml-call "REQUEST.set('NewsTableFolder','NewsItems')">
      <dtml-var NewsTable_html>
      <br>

**********


   <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-with>


and the search form:
---------------------------------------------------------

<dtml-var standard_html_header>

<form action="Report_html" method="get">

<table>

<tr><th>Vorschau</th>
    <td><input name="Vorschau"
               width=30 value=""></td></tr>
<tr><th>Html</th>
    <td><input name="Html"
               width=30 value=""></td></tr>
<tr><th>Titel</th>
    <td><input name="Titel"
               width=30 value=""></td></tr>
<tr><td colspan=2 align=center>
<input type="SUBMIT" name="SUBMIT" value="Submit Query">
</td></tr>
</table>
</form>
<dtml-var standard_html_footer>





> -----Ursprungliche Nachricht-----
> Von: zope-admin@zope.org [mailto:zope-admin@zope.org]Im Auftrag von Oleg
> Broytmann
> Gesendet: Mittwoch, 21. Marz 2001 11:59
> An: Marc Fischer
> Cc: zope@zope.org
> Betreff: Re: [Zope] Searching the Catalog
>
>
> On Wed, 21 Mar 2001, Marc Fischer wrote:
> > A have a ZCatalog where instances of my zclass are cataloged. I added a
> > search interface, and got three different input fields for
> searching three
> > different attributes of the zclass.
> >
> > Now my question:
> >
> > I want to have only one input field, for searching all the
> three attributes.
> >
> > What syntax do I need? I have no idea where to place this
> syntax - in the
> > searchform or reportform?
>
>    In report form. What DTMl do you use now in report form? It'd
> be easy to
> extend it.
>
> Oleg.
> ----
>      Oleg Broytmann     http://www.zope.org/Members/phd/     phd@phd.pp.ru
>            Programmers don't die, they just GOSUB without RETURN.
>
>
> _______________________________________________
> Zope maillist  -  Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists -
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope-dev )
>