03 October, 2020
A site column is a reusable column definition, or template, that you can assign to multiple lists across multiple SharePoint sites. Site columns decrease re-work and help you ensure consistency of metadata across sites and lists. For example, suppose you define a site column named Customer. Users can add that column to their lists, and reference it in their content types. This ensures that the column has the same attributes, at least to start with, wherever it appears. Much like site content types, you define a site column at the site level, independent of any actual list or content type. When you add a column to a list, SharePoint Foundation copies the site column locally onto the list as a list column. You can then make changes to the list column; these changes apply only to the column as it behaves on that list. You can also create your own list columns, directly on a list. Either way, list columns apply only to the list to which you add them; they cannot be added to multiple lists. You can reference a site or list column in a content type.
If you want to enrich your career and become a professional in SharePoint, then visit Tekslate - a global online training platform: "SharePoint Training" This course will help you to achieve excellence in this domain.
|In the SharePoint Foundation object model, and Collaborative Application Markup Language (CAML), columns are most often referred to as fields.|
Column Properties You can specify the following properties for a column:
|If you select a lookup data type, the site column behaves as though you are creating it on a list in the current site. You can select any list in the site. If you select a calculated data type, SharePoint Foundation performs no validation on the column formula when you create it. When you add the column to a list, either directly or by adding a content type that contains the column, SharePoint Foundation validates the column as though you were creating the column on the list for the first time.|
Site columns also behave like site content types in terms of scope. When you create a site column on a site, that site column also becomes available to any child sites, and thereby, the lists on those sites. Also, like content types, site columns are available to all the child sites of the site on which they are defined. At the site level, the site column collection contains definitions for each site column defined on the site, whether or not it has been added to a content type or list on that site.
You can add site columns to a list. When you do, SharePoint Foundation copies the site column locally onto the list as a list column. You can then make changes to any of the list column properties you choose. However, when you add a site column to a content type, SharePoint Foundation includes only a reference to that site column in the content type, not the entire column definition. Because of this, in content types, you can change only a subset of the column properties, such as the column display name, XML promotion and demotion attributes, and whether the field is optional, required, or hidden. For more information, see Fields and Field References. You can also add columns you create directly to lists, as well as create site columns and later add those to a site content type or list. You can also create columns on a list and add those columns to the list content types on that list.
|To create or manage a site column on a site, you must have Web Designer access rights to that site. Specifically, you must have Manage Lists and Add and Customize Pages access rights on the site where the column resides. To add a column to a list, you must have List Administrator rights to that list.|
You can reference the site and list columns in content types. When you reference a column in a content type, SharePoint Foundation adds a reference to the column to the content type. This reference includes the column ID. When you add a content type to a list, the columns referenced in that content type are added to the list as list columns, if have not already been added. You can reference site columns in a site content type. The site column must be in scope for the content type. That is, the site column must be defined on the same site or a parent site of the site content type. For a list of content types, you can reference site columns, as well as any list columns defined on the same list. In the column reference in a content type, you can override a subset of the column properties, such as the following:
Changing these properties in the column reference changes them only as they apply to the specific content type that contains the column reference.
You can create columns in three ways:
For more information, see Using Features in SharePoint Foundation. In each case, columns created at the site level are site columns, while those created at the list level are list columns.
If a site collection contains lists that contain a site column you want to delete, you cannot delete that site column. If you delete a column from a list, that column is also deleted from any list content type on that list. When you delete a column, all data associated with that column is also deleted.
Site columns allow you to create re-usable definitions for columns that can be added to any list across the site collection When comparing the "create site column" screen of SharePoint 2010 versus the one in SharePoint 2007, the features are mostly similar except for three enhancements in 2010. These include 1. Column types for Rich Media and Managed Metadata. 2. "Enforce unique values." 3. Column validation.
For an in-depth understanding of SharePoint click on:
TekSlate is the best online training provider in delivering world-class IT skills to individuals and corporates from all parts of the globe. We are proven experts in accumulating every need of an IT skills upgrade aspirant and have delivered excellent services. We aim to bring you all the essentials to learn and master new technologies in the market with our articles, blogs, and videos. Build your career success with us, enhancing most in-demand skills .