Category Archives: sharepoint 2010
Customizing user interface of SharePoint 2010 system pages
Since SharePoint 2010 system pages are often used by end-users and not just administrators, you might need to customize the user interface of those to match your company’s theme. As you know SharePoint 2010 has 2 sets of masterpages: System … Continue reading
How To: Set security timeouts in SharePoint 2010 using PowerShell
SharePoint 2010 allows you to set timeout of the user session so that your users are logged out after certain time of inactivity. Also, SharePoint allows you to configure the timeout for the current page state to expire. This is … Continue reading
How To: Programmatically create new site collections in SharePoint 2010
Provisioning site collections programmatically is a common task implemented in site provisioning workflows and subscription environments. There are few ways to create new site collection. Naturally, since SPSite object is a child of SPWebApplication you would expect to be able … Continue reading
How To: Make your SharePoint 2010 site collection read-only, restrict delete
SharePoint 2010 allows administrators to set certain site collection read only or restrict delete. This is done on a centralized site collection level and has nothing to do with permission assignments on your lists and libraries. Here is a scenario: … Continue reading
How To: Create SharePoint 2010 custom visual webpart properties
If you’ve created SharePoint 2010 classic web parts before, you know that you can easily define custom web part properties which your web part code-behind can consume. With the popularity of SharePoint 2010 Visual Webpart, you’re probably interested in having … Continue reading
New Book is out: Microsoft SharePoint 2010 and Windows PowerShell 2.0: Expert Cookbook
Today my new book is out on amazon and directly from the publisher! Yes, Kindle too! This new book continues on from my series of developer focused books; this time I focus on all the gotchas related to automating your … Continue reading
How To: Working SharePoint 2010 modals
When working with custom SharePoint modals, you’ve got to be able to collect the user data and then allow them to close the modal. In my last post, we looked at how you can create a new modal rendering your … Continue reading
Getting an SPUser out of Created By field in SharePoint
When you work with SharePoint list fields, it’s often that you need to work with the user Id (the Created By) field. You can certainly get that field value, but how do you translate it into the actual user object … Continue reading
Things to know about working with SharePoint SPQuery on a List
Every once in a while you will hit that roadblock where you can’t use out of the box Content Query WebPart and you got to write your own webpart to render result you’re after. One of the most common methods … Continue reading
Setting SharePoint 2010 default page for publishing and collaboration sites
In SharePoint 2010, whether you’re using Publishing or collaboration site template – you can choose which page will be your home page and load by default when the site is accessed. Depending on whether you’re using collaboration or publishing site … Continue reading