Great Both worked. The latter need passdata to make it right.
And it rise an interesting question that when I do a search, the url will looks like: http://txtray.net/jargon/?p=main&query=ginseng It is very like the google result url. But I can copy the google url as a link to perform a same search result, and BoltWire query url not? Cheers, linly On 3月11日, 下午5時26分, The Editor <[email protected]> wrote: > On Wed, Mar 11, 2009 at 4:46 AM, Linly <[email protected]> wrote: > > > I got a few usability problem in my Jargon site (http://txtray.net/jargon/ > > ). > > > 1) The highlight plugin seems not support [(template none)]. > > > Every time I add the [(template none)] markup, the plugin become not > > function. > > Show me your template. You cannot do: > > [[{+p}|+]] > [(highlight "$text" page={+p} length=40)] > [(template none)]No results... > > You have to do: > > [(template each)][[{+p}|+]] > [(highlight "$text" page={+p} length=40)] > [(template none)]No results > > If there are any [(template)] markups in the template at all, it's > parsed one way. If not, the whole template is considered a [(template > each)]. > > > 2) I want the query terms keep in the search box, how to do this? I > > have tested : > > > "[text query size=40 "{=query}"]" > > > but it did not work. Keeping the term in search box makes use checking > > their spelling easily. > > Not sure it will work, but try: > > [text query size=40 "{?query}"] > > The ? mark retrieves $_GET and $_POST vars. If it fails add this to > your search form: > > [session passdata query] > > That will ensure the query field gets passed to the next page as a > $_GET variable. You'll see it in the address bar. > > Cheers, > Dan --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "BoltWire" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/boltwire?hl=en -~----------~----~----~----~------~----~------~--~---
