Google Search Web Part



I have been searching for a Google Search Web Part that allows a user to type a search term in (and the results are displayed in a new browser window), so that users still keep the originating intranet page open. The solution I have chosen is Todd Bleeker’s Google Search Web Part: http://mindsharpblogs.com/todd/archive/2005/08/04/647.aspx .The zipped file contains the following file GoogleSearch.dwp . This web part needs to uploaded to the site:

Site Actions > Site Settings > Gallery > Web Parts

Upload the template:















Once installed it can be added like any other web part. I made a minor alteration to search goggle.co.uk rather than .com. This was changed by modifying Google Search web part :

Edit > Modify Shared Web Part > Source Editor and paste the below over Todd’s code (just replaces .com with .co.uk):

<script language="JavaScript">


function SubmitGoogleSearch()



{



var q = document.getElementById("q");



if(q && q.value.length > 0)



{



var newPage = document.getElementById("newPage");



if(newPage)



{



var url = "http://www.google.co.uk/search?q=" + q.value;



if(newPage.checked)



window.open(url);



else



document.location.href(url);



}



}



else



{



alert("Please enter one or more search words.");



}



}



</script>



<div onkeydown="JavaScript:if(event.keyCode==13) SubmitGoogleSearch();" nowrap><a href="http://www.google.co.uk" target="_blank"><IMG SRC="http://www.google.co.uk/nav_first.gif" border="0" align="top" alt="Google Search"></a>



<INPUT id="q" size="24" maxlength="254"><IMG SRC="/_layouts/images/icongo01.gif" border="0" align="absmiddle" style="cursor: hand" onclick="JavaScript:SubmitGoogleSearch();" accesskey="s" alt="Execute search"



ONMOUSEOVER="this.src='/_layouts/images/icongo02.gif'" ONMOUSEOUT="this.src='/_layouts/images/icongo01.gif'"



ONMOUSEDOWN="this.src='/_layouts/images/icongo03.gif'" ONMOUSEUP="this.src='/_layouts/images/icongo02.gif'"><input id="newPage" type="checkbox" CHECKED>New</div>

Document library accessible from other sites?

From: http://www.sharepointu.com/forums/p/1355/11487.aspx

as long as the lists or document libraries are in the same site collection. Use the content query webpart and point to the desired list or library.

Follow these steps:

1. Move to the page where you want the list to be displayed
2. Site Actions -> Edit Page
3. Click 'Add a Web Part' in the area you want the list to be displayed
4. Scroll down to the Default section and choose Content Query Web Part
5. Click Add button at bottom of window
6. Note: A default output will be showing in the web part... ignore it
7. Menu dropdown: edit -> Modify Shared Web Part
8. Expand the Query tab in the tool box
9. Choose Show items from the following list radio button
10. Browse to your selected list
11. Click OK after selecting list

12. IMPORTANT: In the 'Show items from this list type', choose Document Library

13. Click the Apply button to verify results

14. Tweak as necessary

Mobile Blog Test

Testing from my mobile (not my feet!). Cool I can update on the move....

Starting point

I seem to spend half my life searching the web for solutions to problems and issues I come across whilst using SharePoint 2007. I thought I would create a blog to share my findings with others.

About me - I'm thirtysomething, based in London, UK and I am responsible the SharePoint 2007 environment that the company I work for uses for their Intranet.

Find It