k.a.bouton at reading.ac.uk
Thu Jul 28 04:06:41 CDT 2005
Also - not a problem I think but maybe a design issue?
Above the searchbox created by SearchTagFmt ii a label/link 'Search Wiki'
which, when clicked, goes to Site/Search and goes outside the field - ie the
field sidebar is gone, unlike with other searches to a search form with
Site/ filled in
Shouldn't it go to a field specific search page if available with Main/
Can I make it do this?
> -----Original Message-----
> From: John Rankin [mailto:john.rankin at affinity.co.nz]
> Sent: Thursday, July 28, 2005 2:15 AM
> To: pmwiki-users at pmichaud.com; K.A.Bouton
> Cc: pmichaud at pobox.com
> Subject: Re: [pmwiki-users] SearchExtensions
> On Thursday, 28 July 2005 1:57 AM, K.A.Bouton
> <k.a.bouton at reading.ac.uk> wrote:
> >> Try downloading the latest version of search2.php from the
> >> Cookbook.SearchExtensions and see if that makes a difference.
> >Done - and no it doesn't seem to make a difference unfortunately. In
> >fact seems worse :)
> >Here is the url
> I believe I might know what the problem is!
> Are you using the searchterms recipe to highlight
> search terms in the resulting pages?
> If so, try changing
> $words[$w]++; to $words[preg_replace('/^.*?\\//','',$w)]++;
> in the foreach(preg_split(... statement of that script.
> The problem only occurs if the search term has a '/' in it.
> This messes up the following statement: Markup('searchterms',
> "<font class='searchterms'>$1</font>");
> producing, for example
> The / causes the pattern to end, and the c generates an
> error. The search was for 'Main/comments'.
> The proposed change removes any text up to and including a /.
> >Curious if this is worth our effort if action=search is to be
> >implemented which will do what I want - ie just get the
> search results
> >returned within the field it was searching
> Well, if I am doing something wrong, I'd like to learn, so I
> can avoid making the same mistake again in future. In this
> case, I think it's the searchterms recipe that's
> mis-interacting with the searchextensions.
> If my hypothesis is correct, the problem will occur if a
> regular search (using PmWiki's standard search feature)
> includes a Group/ qualifier. I think.
> Let me know how you get on.
> >Anyway - willing until then
> John Rankin
More information about the pmwiki-users