Triggering custom behavior, after sub-site (web) creation in SharePoint 2007, involved stapling a custom site feature to the site definition. SharePoint 2010 provides additional “web” events, which developers may bind custom event receivers and execute custom code. Creating a new event receiver and binding to web events is a simple exercise in Visual Studio 2010 [...]
Archive for the ‘Software Development’ Category
Synchronous Web Events
Posted in Software Development, tagged SharePoint 2010 on February 3, 2012 | Leave a Comment »
How to change a Page Layout Associated Content Type Id Programmatically
Posted in Software Development, tagged Microsoft SharePoint on November 3, 2011 | 2 Comments »
I developed some code that uploads a new page layout file (ASPX) from disk to the Master Page Gallery of a site collection. I wanted to associate the uploaded publishing page with an existing content type, such as the “Welcome Page” content type. This is equivalent to editing the properties of the page layout and [...]
Assigning a Unique Master Page to a Page Layout in SharePoint 2010
Posted in Software Development, tagged SharePoint 2010 on July 29, 2011 | 1 Comment »
In the old days of SharePoint 2007, the master page reference in a publishing page layout lived in the MasterPageFile attribute of the @Page reference at the top off the layout file. This made good when you needed to create a page layout that stood out from the common branding of the site – such [...]
TaxonomyClientService.AddTerms Wrong Documentation
Posted in Software Development, tagged SharePoint 2010 on April 28, 2011 | 2 Comments »
I’ve been working lately on a project that requires access to the Managed Metadata Service in SP2010. I got to a point where I needed to add a term to the default term store under a term set. I have some code in my project that takes in the following parameters and creates a term [...]
Programmatically Provision Term Store
Posted in Software Development, tagged SharePoint 2010 on April 14, 2011 | Leave a Comment »
I recently had to write a feature to provision the SharePoint 2010 Term Store. Numerous blog posts exist on how to populate the term store using Power Shell or how to write XML to add terms to the store, but what I wanted to do was a little different. The requirements for my feature were [...]
Managed Metadata Service: DefaultSiteCollectionTermStore == null
Posted in Software Development, tagged SharePoint 2010 on March 14, 2011 | 1 Comment »
I happened to configure my SP2010 farm using Powershell automated scripts and and as a result my default Metadata term store proxy was not default for any new or existing site collections. This issue manifested itself when I was trying to access the default site collection term store via the SharePoint API as a property [...]
Interview Questions for SharePoint Developer Position
Posted in Software Development, tagged SharePoint on March 9, 2011 | 2 Comments »
See how you do… Q1. Name two SharePoint API objects you should define to open a site collection and sub web. Q2. What is the role of the Shared Services provider in Microsoft Office SharePoint Server 2007? Q3. How man content databases can a site collection span? Q4. Can a content database contain multiple site [...]
SP2010 Features – Reference
Posted in Software Development, tagged SharePoint 2010 on February 16, 2010 | Leave a Comment »
This post is to help my my strained memory, the following post contains a list of all SharePoint 2010 feature GUIDs
SP2010 ListData.svc give 404
Posted in Software Development, tagged SharePoint 2010 on January 5, 2010 | 1 Comment »
If you see an HTTP 404 when accessing the /_vti_bin/ListData.svc WCF service in SharePoint 2010 then be sure to install the ADO.NET Data Services 1.5 CTP2 Link
Site Collection URL in a User Control
Posted in Software Development, tagged Microsoft SharePoint on December 15, 2009 | Leave a Comment »
Ever have a problem remembering something small, I do. No matter how many projects I develop in SharePoint I cannot seem to remember how to reference the site collection URL from a user control. So, after digging around for 5 minutes to find the answer I decided to blog it and save my aging memory: [...]
