Hi Wouter,

I hope I have understood what you would like to do with the search results:
if you add a space parameter to the request generated by the search form 
in the header, your URL should look something like:
http://localhost:8080/xwiki/bin/view/Main/Search?space=Main&text=test
This should display only results in the Main space, but has no effect on 
the live suggestions.

Oana

On 4/1/11 6:05 PM, Wouter de Vos wrote:
> Hi Oana
>
> I tried your solution but of no avail, I overrode the global.vm, but
> results are still the same.
> I tried to give the search results page no parents, so it would appear
> in my Space A, this works with the breadcrumbs, but the panels change
> to the panels used on the Main.
> This makes sense since the URL still links to bin/view/Main, as oppose
> to bin/view/Space A where I want it to link to.
> What am I missing out on?
> I have my search bar in the header, but why does it show the results
> in a different Space then where I started my search from?
>
> Thanks for your help, I am sure there is way to solve this...
>
> Wouter
>
>
> On 4/1/11, Elena-Oana Tabaranu<[email protected]>  wrote:
>> Hi,
>>
>> You can send the space parameter so that the search results are
>> displayed for the current space. Updating the search form under the
>> #globallinks section on the global.vm template should do the trick:
>> <input type="hidden" name="space" value="$doc.space"/>
>> You can also take a look at
>> http://platform.xwiki.org/xwiki/bin/view/DevGuide/Skins#HD.OverridingtheSkincomponents
>> on how to override templates in the skin.
>>
>> Hope this helps,
>> Oana
>>
>> On 04/01/2011 04:35 PM, Wouter de Vos wrote:
>>> Hi All,
>>>
>>> I am testing around with the Lucene Search, all works well, one problem
>>> remains:
>>>
>>> I search in Space A. My search results however, are shown in the Main
>>> Wiki Page. This has a different look and feel, and since I do not want
>>> to have confused users, I would like to display the search results in
>>> the same Space as where the User was was in when he-she started the
>>> search. I am guessing its only a one line change in some form, but I
>>> cant seem to find it, I hope someone can help me out..
>>>
>>> Thanks in advance,
>>>
>>> Wouter
>>> _______________________________________________
>>> users mailing list
>>> [email protected]
>>> http://lists.xwiki.org/mailman/listinfo/users
>> _______________________________________________
>> users mailing list
>> [email protected]
>> http://lists.xwiki.org/mailman/listinfo/users
>>
> _______________________________________________
> users mailing list
> [email protected]
> http://lists.xwiki.org/mailman/listinfo/users


-- 
Oana Tabaranu

_______________________________________________
users mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/users

Reply via email to