Thursday, September 20, 2007

Uploading a site template in MOSS

Here is how to correctly upload a site template (.stp) into MOSS.

Uploading a site template in MOSS

1. If the site template file is an exe, download it and unzip the file on your computer.

2. Log on to SharePoint (as an administrator) to the site collection where you want to upload this template. Make sure to browse to the top level site of the site collection.

3. Go to Site Actions --> Site Settings -->Manage All Site Settings --> look for the Galleries section and select Site templates.

4. Select Upload --> 'Upload document' or 'Upload multiple documents' depending on how many site templates you wish to upload.

5. Browse to the .stp file and upload it.

6. The site template should now be ready to go.


Applying the new Site Template to new sites:

1. Log on to SharePoint (as an administrator) to the site under which you want to create a site based on the newly uploaded template.

2. Go to Site Actions --> Site Settings --> Manage all Site Settings --> 'Create' or 'Create Site'.

3. Enter a title, URL and pick the new template from the 'Select a template' section.

4. Click Create. A site based on the new template should now be created.


Wednesday, September 19, 2007

Powerpoint Presentations from user group

As promised, here are the powerpoint files from last night's presentations. Thank you to all those that attended. A special thanks to all those who stayed till the end, even though we were way over time. Hope you all learned something. Please feel free to email me if you have any questions. I will be posting shortly about the migration and branding experiences here as well.

SharePoint 2003 to SharePoint 2007 migration

Branding SharePoint 2007 intranets

Monday, September 17, 2007

Presenting at RM SharePoint User Group

So tomorrow I am presenting at the Rocky Mountain SharePoint user group with my team. We will we talking about our experiences migrating from SharePoint 2003 to MOSS 2007, lessons learned, Do's and Dont's etc.

Right after that presentation, I will also present our learnings and experiences with branding MOSS 2007. This will include using custom navigation providers with list based navigation, building the master pages, style sheets and application of style sheets, changing web part pages to include left navigation, creating custom site templates which display our chosen web parts on the home page, customizing styles in the Content By Query Web Part using XSLT etc. It should be pretty interesting.

Matt Passannante (RM user group president) also asked me to run the user group tomorrow since he will be unable to make it. Talk about screen time!!

Monday, September 10, 2007

Create custom Web Part page template in MOSS

I recently developed a crafty list based custom navigation provider in MOSS that shows custom nav for the global navigation and the current site navigation. We are also working on SharePoint governance in our company and are encouraging users to create meaningful landing pages to surface links to documents instead of just creating sites and going straight to document libraries.

The requirement is that the current navigation also be available on Web Part pages, since it does not appear on there by default because the default Web Part page is meant to really hold more content and not so much navigation. So I had to create a custom page from spcf.aspx file and rename it Customspcf.aspx. I added my custom link in create.aspx to call Customspcf.aspx for creating new Web Part pages. Then I browsed to the \12\TEMPLATE\1033\STS\DOCTEMP\SMARTPGS folder and tried to add my new custom page there. I reset IIS and my new Web Part custom page did not show up in the Customspcf.aspx page (it only showed the default 8 page layouts).

I played around with it a little bit and here is my conclusion. Unless I understand this wrong, MOSS does not allow you to add custom Web Part page layouts to the 8 already pre-configured layouts. In order to add one, you must replace one of the existing layouts with yours. Bummer!!

So I did exactly this to the spstd1.aspx layout. I also went ahead and removed this line <asp:content runat="server" contentplaceholderid="PlaceHolderLeftNavBar"></asp:content>, which basically overrides the left nav placeholder content from the master page with nothing. The left navigation then showed up on the custom Web Part page!!!!

I also went ahead and removed the footer Web Part zone from the spstd1.aspx file as well as changed the width of the left zone to be 70% of the available area. This gives us more space to insert Content Editor Web Part and make the Web Part pages behave more like traditional pages with navigation on the left, content in the center and some links on the right.

TIP: Try not to change create.aspx using SharePoint Designer. You will most likely get an error 'The file '/_layouts/_layouts/application.master' does not exist. at System.Web.UI.Util.CheckVirtualFileExists(VirtualPath virtualPath) .....'

Tuesday, September 4, 2007

New WSS 3.0 and MOSS SDK released

Microsoft recently released the new WSS 3.0 and MOSS SDKs. Be sure to have a look at them.

Here are the links:

Windows SharePoint Services 3.0 SDK

Microsoft Office SharePoint Server 2007 SDK