The SP2 will be released later this month. For SharePoint there will be various improvements and new stsadm commands.
new stsadm command to scan for compatibility for SharePoint 2010 (e.g. not CAML custom fields) broader support for browsers improvements to form based authentication and much more (see link above)
The next SharePoint Server will be “Microsoft SharePoint Server 2010”. No more Office in the server product names. That will make it much easier to talk about the products. We can forget SharePoint 14. Welcome SharePoint 2010!
You can read the announcement at the official SharePoint Blog.
The SharePoint Services will keep the name and have many new features. What exactly these features might be, is still in the dark 🙁
This post is a follow up for my post “ Get default page Url”.
When you access an SPWeb through a URL in your browser, you will be redirected to the default page like home.aspx.
Each SPWeb has a RootFolder. And this SPFolder has a property “WelcomePage”. This property stores the relative path to the default page like “wiki pages/home.aspx”. 1: SPContext.Current.Web.RootFolder.WelcomePage
With a Control Adapter you can customize the rendering of an attached control. Certain control methods can be overridden with custom code, to make the control behave differently.
Some Control Adapters for SharePoint, which already exist:
Adjusting the MOSS ROBOTS meta tag for 3rd party search engines – using a Control Adapter
Modifies to be WebPartZone Adapter
Replaces the tag with a tag in Webpart zones Web Slice Control adapter for MOSS 2007
The Best Practice MSDN page has some interesting hints to generate better code. In this post I write about some point of that article, provide samples and fix bugs which are in the MSDN article.
Caching You should only cache thread safe objects. What’s that?
This means, that you should only cache objects, which can not be changed from the outside of your code. An itemCollection (as list.Items) is changed, if another user adds an item.
For months the Webpart could be installed through a solution/feature without any problems. Then I had to change something in the code. When I tried to upgrade the solution to see the changes, the Webpart could not be added to a page anymore.
The assembly is deployed to the GAC through the solution. It has been upgraded.
Looking at the xml file in my solution did not show any errors.
A couple of days ago Microsoft released 10 themes for SharePoint. They provided solutions for you, so that you can build features to install and deploy the themes on your SharePoint farm. The problem with the provided themes is, that they are only meant to be installed on English SharePoint sites! The path to the images is hard coded to the English LCID.
Daniel Brown has already created a solution which you can install.
As I’ve mentioned earlier, the SPD can be downloaded from Microsoft for free.
All you have to do is register before you can download the SharePoint Designer.
So don’t wait, and get it 🙂 Please remember, that if you modify a SharePoint page, it will be stored in the database and loose its reference to the template. This is called unghosted. Joel Oleson has written a great article about this.
By now most of you should know that there is a SharePoint Diagnostics Tool. This really is a great tool, since it scans your assemblies for memory leaks.
You should also know, that there is an occasion you can create a memory leak which the tool will not recognize. 1: using (var site = new SPSite(“http://yoururl”))
<span class=lnum> 2: </span>{ 3: SPWeb web = null; <span class=lnum> 4: </span> <span class=kwrd>try</span> 5: { <span class=lnum> 6: </span> web = site.
How do you copy the content from a Word document to a Wiki library? A simple Copy&Paste does not work, as it omits the pictures from the document.
Andreas Strothmann has posted a interesting way for deploying Word docs to a Wiki library.
His steps are:
Open your Word document Save it as docx if it is an old doc Publish the document to a SharePoint Blog
Note: the pictures included in the Word document will be uploaded to the Blog picture library!