Monday, October 27, 2008

Creating a small neat Sharepoint Calendar

The Sharepoint calendar in calender view sucks, it is way too big

Found a good solution here:
>

Basically drop a calendar control into web zone, add a contend editor control with it and add this to it :







Wednesday, October 15, 2008

Get the links webpart to open in a new window

Tried to use the links web part as it was on my intranet, turns out does not by default open up in a new window!

Found an easy solution rather than some suggestions to modify schemas and the like (yuck!)





1. Open the site in sharepoint designer.
2. Select the Links webpart and convert it into XSLT Data View
3. Then, select any one of the link in Links webpart and right click you will find Hyperlinks Properties option, Click on that
4. It will open Edit Hyperlink dialogue. Click on the Target Frame button which is located right side of the dialogue box.
5. Here, now it opens one more dialogue box naming Target Frame. Select the New Window option from common tragets list and click OK.

Friday, October 3, 2008

Getting google search box on your sharepoint site

Found an easy way to get the google search box on the home page of my site
http://www.heathersolomon.com/blog/archive/2005/07/18/1023.aspx

I followed the directions but made a few slip ups, my path is different (I'm using WSS not MOSS i guess). This is how I got it working for me :

Steps:

1. Create the directory and call it external in
C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\LAYOUTS
2. Create a text file called google.html in this external directory and put the following code in it

The following code was placed in blogger by this great utility
http://francois.schnell.free.fr/tools/BloggerPaste/BloggerPaste.html




<center>
<FORM method=GET action="http://www.google.com/search"
target="_blank">
<A HREF="http://www.google.com/" target="_blank">
<IMG SRC="http://www.google.com/logos/Logo_25wht.gif" border="0"
align="middle"></A><br>
<INPUT TYPE=text name=q size=17 maxlength=225 value=""><br>
<INPUT type=submit name=btnG VALUE="Search" style="font-
size:5px font-family:Verdana"><br>

<select name="sitesearch" style="font-
size:5px font-family:Verdana" >
<option value=""></option>
<option value="www.test.com">test</option>
</select>
</FORM>
</center>



3. On your home page drop in a Page Viewer web part and set it to point at a web page and
put the link as /sites/Portal/_layouts/external.html or whatever your equivalent is.
I intially put in my full path htt://servername/sites/portal/_layouts/external.html and it changed it to a relative path itself which is much preferable.

4. To alter the size of the google box mess around with the google.html file input box size and the height and width of the web part itself , ideally we do not want scroll bars either side. Also set it so there is no title on the web part.

Customising the look and feel....this site



has a good overview for changing look and feel of the google box

Thursday, October 2, 2008

Random Thumbnails from picture library for intranet front page

MOSS comes with "This week in pictures", WSS alas does not.

I came across this free bit of code for implementing random or sorted thumbnails for my WSS 3.0 intranets front page.

http://www.codeproject.com/KB/sharepoint/WssPictureThumbnails.aspx

Download the web part http://www.codeproject.com/KB/sharepoint/WssPictureThumbnails/WssPictureThumbnails.zip

unzip it

stsadm -o addsolution -filename QuesttechSolution.wsp

Go SharePoint Central Administration/Operations/Global Configuration-Solution Management and deploy the solution to selected web applications. In the site collection where the solution is deployed, activate the Site Collection feature "Questech Systems Web Parts". After that, the Picture Thumbnails web part (listed under Questech Systems) should be available for you to add to pages.


To get it working I needed to add the three javascripts in the package in my front page , litebox-1.0.js, moo.fx.js and prototype.js (put them in seperate tages and put the contents of the two css files in with header of the masterpage for the site(looking at the article and my experience just putting the contents in core.css did not work? , think they should be put in a custom.css file later)

*** IMPORTANT: Make sure blank.gif, closelabel.gif, loading.gif, nextlabel.gif, prevlabel.gif are copied to /images for the website


***IMPORTANT, PUT CSS CLASS TO PT IN THE CSS CLASS BOX IN THE WEB PART ***


***Important: to get the thumbnails bigger look at what you are using in the picture library, e.g by default thumbnails are 160 w 160 h, if use change the CSS for PT from 80w 80 h there will be none of the thumbnail clipped off! Of course if u change value of thumbnails coming in then need to change below to match!

.PT li a{ width:160px; height:160px; border:solid 1px #fff; display:block; text-indent:-5000px; font:0/0 Arial;}