Friday, November 14, 2008

Be careful if plan to modify list items NEWitem.aspx !!!!!

Error message when you click "New" to create a new item in a list or when you click an existing item in SharePoint Server 2007 or in Windows SharePoint Services 3.0: "Invalid page URL" or "An unexpected error has occurred"
View products that this article applies to.
Article ID : 935504
Last Review : June 5, 2007
Revision : 2.2
SYMPTOMS
Consider the following scenario. You use Microsoft Office SharePoint Designer 2007 to customize the NewForm.aspx page of a list in a Microsoft Office SharePoint Server 2007 site or in a Microsoft Windows SharePoint Services 3.0 site. Then, you connect to the list by using a Web browser. In this scenario, you experience the following symptoms:• If you click New to create a new item in the list, you receive the following message:
Invalid page URL:
• If you click an existing item in the list, you receive the following error message:
An unexpected error has occurred
Additionally, you might view the properties of the list in SharePoint Designer 2007 and then specify the NewForm.aspx page in the New item form box. When you do this, the NewForm.aspx page appears to be saved as the new item form when you click OK. However, the next time that you view the properties of the list, the New item form box is empty.
Back to the top

CAUSE
This issue occurs if you deleted the List Form Web Part from the NewForm.aspx page.
Back to the top

RESOLUTION
To resolve this issue, delete the list, and then re-create it. Then, customize the NewForm.aspx page. When you customize the NewForm.aspx page, make sure that you do not delete the List Form Web Part.
Back to the top

MORE INFORMATION
If you want to customize the controls that appear on the NewForm.aspx page, and if you do not want to show the default List Form Web Part, you can hide the List Form Web Part. To do this, follow these steps: 1. Start SharePoint Designer 2007, and then open the NewForm.aspx page for the list.
2. Right-click the List Form Web Part, and then click Web Part Properties.
3. Expand Layout, click to select the Hidden check box, and then click OK.

Tuesday, November 11, 2008

Serverexpress 2008 and sharepoint - contextual search issue



Found this to explain my problem, with the search web part i can redirect any normal scope search to go to serverserver express results page, however when you choose a contextual search (ie this list) which refers to the list or document/picture library you are on the results are always displayed on the OSSearchResults.aspx page... you cannot touch this page as is a system page (unsupported if you do).


Solution: dont use contextual search, set up a scope say 'research documents' , set a rule agains tit to look a this document library using content source = local sharepoint content. Then set up another rule forcing it to look at web folder /research documents/. Change search box in the document library to use scopes not contextual and point advanced and results to use your custom ones for search server.

Monday, November 10, 2008

Document Libary - opening document in a new window

Best way to do this is

Add content editor web part..ENSURE THIS IS THE LAST WEB PART AT BOTTOM OF PAGE WITHIN THE WEB ZONE OF DOCUMENT LIBRARY ....

ADD THIS JAVASCRIPT TO IT...AS PER




Friday, November 7, 2008

Issue with links web part opening new window - does not save

Tried editing the target attribute for the links web part for an item in xlst mode,
right clicked on the field and set target to new window e.g. _blank and saved it.
It did not save!!!!

Solution , click on url field and edit target property in the 'Tag properties' window instead!!!! works a treat, no idea why other method does not work.

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