SharePoint Columns, Site Columns or Content Types?
After working for so many years with SharePoint, I realized that I might take some things for granted. I don’t question too long anymore whether I should create a column, a site column or a content type, I just do it. My mistake is in assuming that Power Users who are beginning with SharePoint every day or migrating to a new version might not know. I did a one day power user training for a customer of mine recently and I saw their jaw drop when I told them what we could do with just site columns. None of them were aware of them, they just created regular columns straight from the list or library. In this article, my goal is to explain what these are and when you should use them.
Columns in SharePoint
As you may have experienced by now, SharePoint is a platform that allows a user to quickly and easily create a Site. This may be to help a team collaborate or an external site, there are many scenarios. How do you do this? With Lists and Libraries, which are kind of “Excel” spreadsheets on the web if you like. We create a table and as we add columns to this table (list/library) we are asking whomever is entering information in it to specify certain details we call “Metadata”.
However, the columns we have in a list or library can be created or added in multiple ways. Each of these ways has pros and cons.
List and Library columns
This is probably the most popular type of column created. It’s easy to create and you don’t have to think about it too much.
It’s accessible directly from the ribbon and is available on all lists and libraries.
The person creating the list or library column can then choose from a list of column types to help control the information coming in to the list. For example, if you are making an Invoices document library, you want to make sure that the customer associated comes from a verified list of customers without any spelling mistakes.
Advantage: Well, it’s easy to create. Within seconds the Power User can find himself in the create column menu and adding ways to control content coming in his list or library. Does not require any questioning on reusability or architecture, it’s an instant consumption.
Disadvantages: It’s easy to create. Yes, one of the issues I have found with SharePoint is that sometimes it’s greatest advantage can also be its disadvantages. The option is right there in front of you in the ribbon and will satisfy the immediate need for a column. However, it doesn’t promote reusability or help leverage what already exist in a parent site. It exists in that list or library once it’s created and that’s it.
A customer once had close to a 100 document libraries in a site. They all had one column that was exactly the same. They always used “Create Column” to create a library column, this made it only available in each of these libraries. What happened? Well after a couple of months they realized that a few libraries had the column misconfigured, this was simply due to human error after repeating the same action so many times. Others realized that it was just too long to update the column with new configuration, they had to go to each library in the site one by one to edit the column.
SharePoint also offers you the possibility to create Site Columns. What are these? They are columns that we create in a SharePoint site to be available to its’ sub sites.
As you can see when you create a SharePoint Site Column it is available to the site and its’ sub-sites. This makes it very interesting for us to reuse a configuration.
Do more with Foundation
SharePoint gives you a site and allows you to collaborate within it. However, if you try to interact with another site it can be very difficult. Unless you have the Standard or Enterprise version of SharePoint with the Content Query Web Part, it will be difficult for you to interact with other sites.
In some cases, it can be useful to create a Lookup Site Column so that the actual lookup will also be available in sub sites. Take the diagram above for instance, if Site Column A was a lookup column to a list of customers available only in the Top Site, then all sub sites would have the Site Column A with the lookup to the customers list in the top site.
Creating the Site Column
I usually recommend creating the Site Column at the top site so that all sub sites and future sub sites can benefit from it. However, this may not always be the best thing to do in all cases. If you have 100 sub sites and all site columns are created at the top, you will quickly find yourself overwhelmed with columns that are not needed in most sites.
To create a Site Column you will have to go through the Site Settings and find Site Columns under the Galleries section.
When you create a Site Column you also have different choices than the usual suspects.
Most of these columns are available for Publishing Sites. They are columns used in page layouts to facilitate the entry of metadata while create a Publishing Page in SharePoint. Simply put, these are columns that are placed in a Page.
Advantages: It can be reused by multiple lists and libraries within and a site and its’ sub sites. It also helps by centralizing the configuration of the column in one place which makes it easier to update choices in a choice column for example that are used by multiple lists and libraries.
It allows all sites from a Site Collection to lookup information in a single list like a customers or manufacturers list for example.
Disadvantages: It is not so intuitive to create as the list/library column and you need administrative rights to create it. If overused, it can create a chaos amongst available sub sites. It also requires the administrator to think about his columns and architecture every time he creates one.
You will hear this word repeatedly while working in SharePoint. Everything revolves around Content Types, in fact you have been using them since you started. Content Types are basically a way of grouping Site Columns together into a reusable group that represents some kind of content to us. For example I could group the Site Columns Invoice #, Customer and Related Product together into an “Invoice Content Type”. This way every time I go to a document library that would need to use these I would just assign the Invoice Content Type to it.
By default when you create a Content Type, just like Site Columns, it is pushed to all sub sites of the designated site where it was created. A Content Type can only exist within a Site Collection, if you want to reuse it in another you will have to recreate it or use tools like Sharegate to transfer them. Microsoft offers an alternative in SharePoint called the Content Type Hub, which I will not cover in this article, but basically it’s a way to centralize your Content Types in one place. It also comes with its’ pros and cons of course.
What did I mean by you have been using them since you started with SharePoint? Well, how do you think your “Announcement list” or “Task list” got their columns? Magic? Simple, someone at Microsoft created a few Site Columns that make sense for each of them like “Task Name”, “Start Date” and “Due Date” and grouped them together calling it a “Task” Content Type. When you create a Task list, it simply creates an empty list and associates the Task Content Type to it.
Don’t believe me? Take any list or library in SharePoint and do the following:
Go in the List or Library settings
Then click on Advanced Settings in the General Settings menu
You see, SharePoint hides the use of Content Types to the general User and Power User so that it doesn’t confuse them by giving them too many options. Finally, we are going to Allow the Management of Content Types.
By clicking on OK and returning to that list or libraries settings you will see a new section below the General Settings. You will notice all the associated Content Types to the list and the necessary options to manage them.
When I first started with SharePoint and Content Types it took me a while to realize that when you associate a Content Type to a list or library, it is copied to it. This means that if you edit the Content Type from the List or Library settings menu, it will only affect that List or Library. The original Content Type will stay untouched in the Content Type Gallery of the site it was created in. In most cases, this happens to be the top site. So if I follow the steps above for our Task list with the Task Content Type and “Remove” the Assigned To column from the Task Content Type, it will only affect this specific Task List.
Content Types can be much more than just a way of grouping together Site Columns, it also offers some basic settings to be attached to that grouping. For example, you can associate a document template to your Content Type. Taking my previous example, I could associate a blank invoice template to my Invoice Content Type so that each library using that Content Type would also have the template. Many other settings can be configured per Content Types.
And if your users have ever asked you to remove the “Title” column, well it’s through the Content Type associated to the list or library that you can set the Title column to “Hidden”.
They follow a hierarchy
You can’t just create a Content Type anywhere to be used with anything, there are no “wildcard” Content Types in SharePoint. Some of these come with SharePoint and are at the top of the tree like “Item” and “Document”. It’s not for no reason that SharePoint asks you create a New “Item” when you are in a list and to Upload “Document” in a library. These are not just words they have written in the page, those are the names of the Content Types used.
When you create your Content Type, you have to choose under which Parent Content Type you will want to create it. This will make it inherit the Site Columns associated with the Parent Content Type as well.
For example, if I create an Invoice Content Type that inherits from the Document Content Type, I will automatically have the column “Title” with my Invoice Content Type. And this is only because “Document” inherits himself from “Item” as a Content Type.
Here are the questions you are asked when creating a Content Type:
If I create my Content Type under the “Item” Content Type, then it will be available to all SharePoint lists but no Libraries. And Vice Versa if I create it under “Document” then it will not be available for any Lists.
Above is a quick view of the Hierarchy of some of the Content Types you may recognize in SharePoint 2010.
Advantages: Content Types are necessary to organize reusable content and configurations within SharePoint. Making sure all Invoices have the same metadata and document templates for example. It also helps you centralize all of these configurations in one place, the site where the Content Type is created. Content Types are lot more powerful than I have led on to believe and with deeper exploration, you will find out powerful they can really be.
Disadvantages: Not so easy to understand at first for beginners in SharePoint. They are also very powerful and can be misused or help destroy SharePoint solutions very quickly in the wrong hands. Have a very large impact on your SharePoint Architecture and should not be created without having seriously considered the impacts on other SharePoint features or sites.
Once again, SharePoint has proved me that there are no “golden rules” to follow. It always depends on a few factors, some may be more important to you than others given the situation.
It may be easier to show Users how to create regular list or library columns to increase User Adoption in the project. End Users might feel like they have more control over their site. They will probably be a lot faster into creating their own lists and libraries to manage their content. However, when the time will come to update a configuration or migrate information in a column it could be a challenge and cost just as much time as they saved at first. Then we have Site Columns which are reusable columns and offer additional functionality that the regular columns do not offer like the cross site lookup. Then again, it requires some thinking and time to think about when to create the Site Column. And same thing for Content Types.
There are no easy pre-cooked solutions in SharePoint, but the first step to making the right choices is to understand how it all actually works.
- The Just Damn Simple Video Series!
- How To Migrate multiple SharePoint Site Collections
- Preparation and Clean Up are Key to any Successful SharePoint Migration
- How To successfully migrate your Site Collection (a step-by-step approach)
- How To - Migrate Master Pages and Page Layouts
- How to migrate multiple SharePoint libraries in PowerShell and Sharegate