[Zope] search term in results page

Dieter Maurer dieter@handshake.de
Mon, 4 Feb 2002 22:54:57 +0100


lambert muhr writes:
 > possibly simple, but I don't know how (without using javascript):
 > is there a way to insert the search term, which had been entered in the
 > search form, on top of the results page (like: "you searched for 'search
 > term'; x results have been found") via dtml?
It is easy for simple cases:

  ZCatalog reads the query from the REQUEST object (unless
  you call the search method explicitly with parameters).

  Such you can use the REQUEST content to build a textual
  description of your query. This can become complex for
  complex queries...

  Read the ZCatalog sections in either the Zope book or

    <http://www.dieter.handshake.de/pyprojects/zope/book/chap3.html>

  to find out more about the search features of ZCatalog.


Dieter