October 19, 2011 - 12:01, by Steven Van de Craen -
Ever enabled Content Types on a library, removed the default “Document” Content Type and then added your own document Content Type ? If you do it in that order it will set “Folder” as the Content Type for uploaded files.
There’s no apparent way in the user interface to change the default Content Type, since “Folder” is not visible in the list:
If you don’t have a lot of lists already or you can only access SharePoint through the browser, the quickest way to fix this is to add the default “Document” Content Type to the list and immediately remove it again.
If (like in my case) you already have a lot of lists, you can script the Content Type Ordering:
using (SPSite site = new SPSite(url))
foreach (SPWeb web in site.AllWebs)
foreach (SPList list in web.GetListsOfType(SPBaseType.DocumentLibrary))
if (list.ContentTypes["Main Document"] != null)
SPFolder folder = list.RootFolder;
List<SPContentType> lstCT = new List<SPContentType>();
folder.UniqueContentTypeOrder = lstCT;
The above code loops all libraries on all sites in a Site Collection and sets my “Main Document” Content Type as the only (and default) Content Type. If you have different needs feel free to adapt as required.
October 17, 2011 - 21:57, by Steven Van de Craen -
New APIs in SharePoint 2010 Service Pack 1 (SP1)
Funny enough a colleague pointed out to me he couldn’t find the UserProfile.ModifyProfilePicture method. Neither could I (running Service Pack 1 + June 11 CU).
Can you ? Perhaps it was removed in the June 2011 Cumulative Update ?
UPDATE (18 Oct 2011):
Had a chat with Koen Vosters on Twitter on the matter, and he verified the absence of this method in a SP1 build VM. So what happed with that method ? Was it scheduled and removed in the very end? Anyway thanks Koen for verifying !!
October 13, 2011 - 12:04, by Steven Van de Craen -
If you happen to change the Windows Time Zone settings AFTER Central Administration has been provisioned, you will see that the time zone/date format is not updated in the administration pages:
Luckily, the fix is quite easy. You can just update the Regional Settings of the Central Administration site. Since this option is hidden from the Site Settings, you’ll have to navigate to it manually:
Here’s a sample of setting it to Brussels time zone and Dutch Locale:
As you can see only the Time Zone is taken into account while format is still using US Locale. This only applies for certain Administration Pages such as Search Administration. The “Timer Job Status” page for example shows the specified (Dutch) format:
October 2, 2011 - 12:42, by Steven Van de Craen -
BIWUG is announcing another session about SharePoint on Thursday October 27th 2011 in the Microsoft Belgium offices.
18:00-19:00 Welcome with snacks
19:15-20:15 SharePoint Governance (Speaker Patrick Sledz): Stop thinking about features features features when talking about governance.
When designing governance for a SharePoint implementation, a lot (not to say all) energy and words go out to technical stuff, SLA's and not to the things that define the business value. And the business value is not only a perfect technically tuned and performant SharePoint farm (if that even exists).
20:30-21:00 The past, present and the future of BIWUG
During a seemingly quiet period, a lot has been going on behind the scenes. The result of all this secrecy will be revealed in the second part of the evening.
Of course there is also an opportunity to network, socialize and discuss the matter explained the previous hours... therefore SharePint!
Location: Microsoft Belgium Corporate Village - Bayreuth Building, Leonardo Da Vincilaan 3, 1935 Zaventem
Registration is now opened on the BIWUG site www.biwug.be
See you there !