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? thanks for any hint lambert
lambert muhr <lmuhr@web.de> wrote:
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?
The results page itself has to know the search terms itself, if it wants to compute then display the results, right ? I don't see the problem. Florent -- Florent Guillaume, Nuxeo (Paris, France) +33 1 40 33 79 10 http://nuxeo.com mailto:fg@nuxeo.com
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
participants (3)
-
Dieter Maurer -
Florent Guillaume -
lambert muhr