Saturday, February 11, 2006

Global Templates Explained

This is an answer I gave in MSD2D forum for a question that is frequently asked. Original question is preety confused, but here it is: "I'm a Sharepoint newbie and am having some problems understanding the relationship between WSS and SPS. We have created a Sharepoint Portal which provides a tab for sites. I also have been able to create Sharepoint sites directly from within the SPS. However, I would like to add some site templates other than the ones shown. When I am in WSS mode, I am given the ability to Manage Site Templates. I can't find the equivalent within the SPS environment. I was given a suggestion to use stsadm.exe for this, but it strikes me as odd to have to use a command-line utility for what I would expect to be a built-in option like WSS provides." And here is my answer: The advice you were given was accurate up to a point. there are actually two ways to do what you want, and I prefer the second way. Let me explain: Quick overeview: WSS is built in the form of a "Site collection" that hold "webs". what you see as a site is actually a "web" inside the "site collection". The root site is the top level "web" in the site collection. It may or may not have sub webs under it. This is true when the wss sites are under a portal. every site you create from the portal is actually a different "site collection" with a root "web". The portal itself is a site collection on its own, with the "home" area as its root level "web". The fact that you create sites from the portal doesnt mean they are actually under the portal. they are infact stand alone site collections with root webs. WSS site collections have a template gallery you can upload templates to and then use those templates in all webs under the site collection, but you cant use them in other site collections on the same machine unless you install the template globally. How to install templates globaly If you have a template you want to be available globaly there are two ways to achive your goal: Save the web you want using the method you described ("save as template" in the site settings) and then download the stp file to the hard drive and install it with the stsadm command line utility (stsadm -o addtemplate) Create the new template as a site definition. Option number two is harder, since you dont get to just create a site, change it to look like you want and just save it. Instead, you have to manipulate aspx and xml files on the hard drive, and define everything manually. The benefit of the second option over the first is that the sites you will create from the new definition will stay connected to that definition. This means you will be able to change all sites at once if you want to change something in the way they look (not add or remove web parts, but change the layout of the home page). It is also easier to change the template itself when needed. I suggest you read about it in the link above, and ask here if more info is required.

Monday, February 06, 2006

VSTO wont compile

Not sharepoint related, but in blogger, there is no way to create categories! I just had a problem with VS2005 - I tried compiling a Visual Studio Tools For Office 2005 project and got "error occurred while attempting to persist the data". after a quick search in the google-groups I found a post by a guy called "Neil" which solved the problem- simply run the "C:\Program Files\Common Files\Microsoft Shared\vsto\8.0\Microsoft Visual Studio 2005 Tools for Office Runtime\install.exe" file to repair the VSTO installation. Thanks Neil!

Alerts not working just for one user? maybe its spam...

Hey, I was just reminded in the discussion groups about an issue I had with a customer about a two years ago. They had one user who never got alerts. All the other users got the alerts with no problems, but this one user got nothing. He was able to sign to the alert, when checked in the database you saw that he was signed to the alert, but when the list would change - other user got the email and he didn't! I will spare you the whole story (took us a month to chase it down). It turned out the outlook 2003 was treating sharepoint emails as just mail. Why? I cant tell. Perhaps the user was annoyed by a different alert, set junk on it and forgot about it... Hope your users are more careful!