16 Jul
2002
16 Jul
'02
8:55 a.m.
Hi,
When the user types in such a complex query automatically pre- and appending '*' will give unexpected results.
But how do I do that?
I want it for the users as least complex as possible, cause they don't know anything about regexps or anything.
now I got it. Puh. Added a Python Script globSearchString: """ Globs searchstring 'string' to '*string*' """ return context.catalog( {'title' : '*' + title + '*' } ) Altered the searchform: <input name="begriff" width=30 value=""> And the report method: <dtml-in expr="globSearchString(begriff)" size=5 start=query_start> And it works. Thanks anyway for your help. Lars