Summer Vacation – See You in August

It is time to take a break from these daily tips for the summer. So far, you’ve gotten 62 tips every weekday, so I will leave you with the best tip so far:
SharePoint of the Day #63: Take a break. Enjoy summer. Come back in August, I know I will.
Delicious Digg This [...]

Posted under Administrator, Developer, End User

This post was written by spotd on June 26, 2009

SharePoint of the Day #61

If you iterate through the AllWebs collection of a site collection you must remember to call Dispose() on the SPWeb objects you retrieve. Otherwise you will have a memory leak.
Delicious Digg This Post

Posted under Developer

This post was written by spotd on June 24, 2009

Tags:

SharePoint of the Day #60

A lot of SharePoint object has a property bag, in which you can store custom properties in the form of a hashtable.
For example, you can store custom site settings for custom applications in the SPWeb.Properties bag.
Delicious Digg This Post

Posted under Developer

This post was written by spotd on June 23, 2009

Tags:

SharePoint of the Day #58

When creating your own site definitions you can set the ProvisionAssembly and ProvisionClass to have .NET code fired when a new site is created. your class should inherit from the SPWebProvisioningProvider class.
This is useful for example if you want to create a site hierarchy as part of the site creation. In MOSS, the Publishing [...]

Posted under Developer

This post was written by spotd on June 19, 2009

Tags:

SharePoint of the Day #57

You can check the SPWeb.LastItemModifiedDate property to see when something was last changed in a site.
Delicious Digg This Post

Posted under Developer

This post was written by spotd on June 18, 2009

Tags:

SharePoint of the Day #55

When you are creating a custom site definition you can set the ExecuteUrl of the onet.xml Project element to a site-relative URL. When users create new sites from the definition they will be sent to the ExecuteUrl instead of the home page when the site is first created.
You can use this to send your users [...]

Posted under Developer

This post was written by spotd on June 16, 2009

Tags:

SharePoint of the Day #53

An SPWeb object has two content type collections, AvailableContentTypes and ContentTypes. The AvailableContentTypes is read-only, though, so if you are updating content types through code, retrieve the content type from the ContenTypes collection.
You can learn more about content types in USP Journal Volume 1, Issue 2
Delicious Digg This Post

Posted under Developer

This post was written by spotd on June 12, 2009

Tags:

SharePoint of the Day #52

SPList objects do not have property bags. However, every SPList has a Rootfolder property which is an SPFolder object. You can store list-specific settings in the SPFolder’s property bag.
Delicious Digg This Post

Posted under Developer

This post was written by spotd on June 11, 2009

Tags:

SharePoint of the Day #51

When you add a site content type to a list you are creating a copy of the content type for the list. This means you can make changes to the list content type without affecting the site content type.
This also means that if you update the site content type and do not opt to apply [...]

Posted under Developer, End User

This post was written by spotd on June 10, 2009

Tags:

SharePoint of the Day #49

Never uninstall a solution containing a custom field type if you have created site columns from that field type. This will cause your site columns page to crash and there will be no way to fix the error except by reinstalling the solution.
You can learn more about SharePoint custom field types in USP Journal Volume [...]

Posted under Developer

This post was written by spotd on June 8, 2009

Tags: