In part one of this two part post, we saw how to use Document Sets and what the out-of-the-box behaviour provides. In this post we’ll be looking at how to customise Document Sets to meet your specific business requirements.
Part one showed us that a Document Set is actually a content type we can add to a document library. Like any other content type, we can create our own content types based on the Document Set content type – this is the basis of starting to customise the way Document Sets behave.
In this example we’ll be creating a new Document Set content type to support one of our example business process – creating a SharePoint implementation plan. Like many other business processes, this process involves creating several different documents, each of which has its own template but they all relate to the same process – a perfect fit for a Document Set.
To begin with, let’s create a new content type that inherits from the Document Set content type:
![clip_image002 clip_image002](https://briancartmel.wordpress.com/wp-content/uploads/2011/05/clip_image002_thumb2.jpg?w=244&h=175)
Once created, you’ll notice a new content type setting option called ‘Document Set Options’, a quick look at the available options shows us that we can customise many aspects of this document set including the allowed content, default content, shared columns, welcome page columns and the welcome page layout. But before we begin, add a few custom columns to our new SharePoint Implementation Plan content type. I’ve added the following columns:
![clip_image004 clip_image004](https://briancartmel.wordpress.com/wp-content/uploads/2011/05/clip_image004_thumb2.jpg?w=244&h=84)
To start customising our document set, we’re going to define the allowed content that this document set supports. This is done by adding existing content types (that I’ve already defined) to the allowed content option. By leaving the existing ‘Document’ content type in place you’ll allow any document to be uploaded to the Document Set, whilst removing it ensures that only your business process specific content types are allowed inside the Document Set:
![clip_image006 clip_image006](https://briancartmel.wordpress.com/wp-content/uploads/2011/05/clip_image006_thumb2.jpg?w=244&h=86)
Next, we’re going to define the default content. This is done by adding content types to the default content option. For each content type added, a new item will automatically be added to the document set based on the document template you specify in the File Name option:
![clip_image008 clip_image008](https://briancartmel.wordpress.com/wp-content/uploads/2011/05/clip_image008_thumb2.jpg?w=244&h=70)
For those of you familiar with SharePoint you might be wondering why the document template is uploaded here and not pulled from the template specified by the content type. The answer is so that multiple documents of the same content type can be added to the Document Set, each with a different template.
Next, we’re going to add the custom columns we added earlier as Shared Columns. This will push the column definitions from the document set down to the documents it contains:
![clip_image010 clip_image010](https://briancartmel.wordpress.com/wp-content/uploads/2011/05/clip_image010_thumb2.jpg?w=244&h=71)
Additionally, we can show these columns on the Welcome Page by adding them to the Welcome Page Columns option:
![clip_image012 clip_image012](https://briancartmel.wordpress.com/wp-content/uploads/2011/05/clip_image012_thumb1.jpg?w=244&h=79)
Finally, we can customise the Welcome Page layout for this document set by click on the ‘Customize the Welcome Page’ option. For my custom Welcome Page, I’ve simply changed the image and added a content editor web part but you can alter the page as much as you like:
![clip_image014 clip_image014](https://briancartmel.wordpress.com/wp-content/uploads/2011/05/clip_image014_thumb.jpg?w=244&h=145)
We’ve now configured our custom document set so now it’s time to use it. First, using the same process as part 1 of this post, our new custom document set content type needs to be associated with a document library. Once associated, new instances of our document set can be created from the New Document ribbon option:
![clip_image016 clip_image016](https://briancartmel.wordpress.com/wp-content/uploads/2011/05/clip_image016_thumb.jpg?w=244&h=217)
During the document set creation process you’ll be asked the specific the properties or columns we added to the custom document set content type:
![clip_image018 clip_image018](https://briancartmel.wordpress.com/wp-content/uploads/2011/05/clip_image018_thumb.jpg?w=244&h=113)
Finally, once created, our document set should contain an instance of each of the content types we added to the document set, the custom properties assigned to both the document set and each item it contains and our customised page layout:
![clip_image020 clip_image020](https://briancartmel.wordpress.com/wp-content/uploads/2011/05/clip_image020_thumb.jpg?w=244&h=165)
I hope you enjoy configuring your own document sets and using the power they provide to support your own business process.