SharePoint 2010 Search Results Outside of SearchCenter
-
Freitag, 16. März 2012 16:17We have a SharePoint 2010 site that has a search center as a sub-site (http://sharepoint/searchcenter) that is working properly. We now want to have a People Search Box and People Search Core Results on our home page on the parent site. This will allow employees to quickly get a number without having to go to another site. I have added the two web parts to the page however they continue to re-direct to http://sharepoint/searchcenter/pages/peopleresults.aspx. I have changed the option "Target search results page URL" to point to the same page "default'aspx" as well as tried the full url "http://sharepoint/default.aspx" but it keeps re-directing to the peopleresults in the search center. How do I redirect the People Search Box so that it goes to a page not in the search center's site?
Alle Antworten
-
Freitag, 16. März 2012 17:27
Try to change your "cross web part query ID", and see if that will help. Take a look at the screenshot in my blog post at step 3:
http://www.sharepoint911.com/blogs/laura/Lists/Posts/Post.aspx?ID=90 "Web
Part: Sites that I have access to"Laura Rogers
SharePoint911: SharePoint Consulting
Blog: http://www.sharepoint911.com/blogs/laura
Twitter: WonderLaura
Books:Beginning SharePoint 2010: Building Business Solutions with SharePoint
Using InfoPath 2010 with Microsoft SharePoint 2010 Step by Step -
Freitag, 16. März 2012 18:21
Unfortunately I am not using a cross web part query and to continue troubleshooting I have simplified the scenario. I now have just a "People Search Box" webpart and when I use click the search icon in it I want it just to return to the same page. Once I have it doing that then I will look at configuring the actual search results.
I have set the "Target search results page URL" setting on the People Search Box webpart to point back to the default page for our site collection (our intranet homepage) but it continues to want to go to the default peopleresults.aspx page within the search center. How do I get just this search box to go to a page that is not the default peopleresults page without changing it for all other search boxes?
-
Freitag, 16. März 2012 19:36When I put the search box web part, I was able to achieve what you need by putting the URL for the page I'm on in the "target search results url" box. Also, I made sure that the box was UNchecked next to "use site level defaults".
Laura Rogers
SharePoint911: SharePoint Consulting
Blog: http://www.sharepoint911.com/blogs/laura
Twitter: WonderLaura
Books:Beginning SharePoint 2010: Building Business Solutions with SharePoint
Using InfoPath 2010 with Microsoft SharePoint 2010 Step by Step -
Dienstag, 5. Juni 2012 17:38
It seems that the People Search Box will always use the PeopleResults.aspx page for results if it is used in a Search Center (or something like that).
I've found that I need to export the People Search Box web part and add the following properties to get it to honor the target search results page setting:
<UseSiteDefaults xmlns="urn:schemas-microsoft-com:SearchBoxEx">false</UseSiteDefaults>
<HonorUseSiteDefaults xmlns="urn:schemas-microsoft-com:SearchBoxEx">true</HonorUseSiteDefaults>string fakeEmail="jim.duncan@sharesquared.spam.com"; string realEmail=fakeEmail.Replace(".spam","")

