[dokuwiki] Re: Is there a simple way to get search to work from the current namespace down?

  • From: Eivind Morland <eivind.morland@xxxxxxxxx>
  • To: dokuwiki@xxxxxxxxxxxxx
  • Date: Fri, 1 Jul 2011 17:08:51 +0530

On 01 Jul 2011, at 16:29, Chris G wrote:

> On Fri, Jul 01, 2011 at 11:24:45AM +0100, Chris G wrote:
>> On Thu, Jun 30, 2011 at 08:37:29PM +0200, Gerrit wrote:
>>> Op 30-06-11 12:56, Chris G schreef:
>>>> On Thu, Jun 30, 2011 at 12:47:22PM +0200, Christian Jung wrote:
>>>>> Am 30.06.2011, 12:18 Uhr, schrieb Chris G<cl@xxxxxxxx>:
>>>>> 
>>>>>> Can anyone point me to where the plugin searchbox is code.  I've looked
>>>>>> very hard through all the code at
>>>>>> https://github.com/splitbrain/dokuwiki-plugin-pluginrepo
>>>>>> but I can't see anywhere there that it creates the search box.
>>>>> https://github.com/splitbrain/dokuwiki-plugin-pluginrepo/blob/master/syntax/table.php#L115
>>>>> 
>>>> Brilliant, thank you, now I need to work out how the Javascript does its
>>>> clever business!
>>>> 
>>> 
>>> I have added on similar way a search for namespace 'vormingsbank' ,
>>> either it's hardcoded:
>>> http://trac.knorrie.org/csrdelft.nl/changeset/2270/trunk/wiki/lib/plugins/searchform
>>> 
>> Are the changes there all that's needed?  I.e. does that work without
>> changing the Javascript?
>> 
>> If that's all that's needed then I can modify my copy of the searchform
>> plugin to do what I want.
>> 
>> 
>>> I like to redo it, so setting the right namespace in the syntax will
>>> be possible. But i am now too busy. When i do, i will create also a
>>> fork on github.
>>> 
>> That's what I aim to do.
>> 
> ... and I have it all working now!  Thanks very much for the pointer,
> I'm not very familiar with Javascript and hadn't realised how easy it
> was to add the extra script.js file that's needed for this to work. 
> Once I had done that it was all very easy, trivial in fact.

I for one would be interested if you have a modified version of the searchform 
plugin that searches only the current namespace. :)

Eivind--
DokuWiki mailing list - more info at
http://www.dokuwiki.org/mailinglist

Other related posts: