[Zope] searching Google and Catalog

Jeff K. Hoffman jeff.hoffman@goingv.com
Tue, 22 Feb 2000 17:29:38 -0500 (EST)


On Tue, 22 Feb 2000, Timothy Wilson wrote:

> I tried using a <dtml-call
> RESPONSE.redirect('http://www.google.com/search?q=<dtml-var string>')>
> This obviously won't work because I can't nest DTML tags. Plus, for Google
> the query URLs have the items in the search string separated by + symbols.

You might try (untested):

  <dtml-call expr="RESPONSE.redirect('http://www.google.com/search?q=%s'
    % url_quote_plus(string)">

> -Tim

--Jeff

---
Jeff K. Hoffman                                         704.849.0731 x108
Chief Technology Officer                                mailto:jeff@goingv.com
Going Virtual, L.L.C.                                   http://www.goingv.com/