官术网_书友最值得收藏!

Creating a site column

We can add custom columns to our SharePoint lists. However, having to recreate the same column over and over again quickly becomes a pain. Site columns, which are shared between all the sites in your site collection, are the answer.

Getting ready

This recipe works for:

  • SharePoint 2010 Foundation
  • SharePoint 2010 Standard Edition
  • SharePoint 2010 Enterprise Edition
  • SharePoint 2010 Online (Office 365 Edition)

You require either the Design or Full Control permission level to create a site column.

How to do it...

  1. In the top-level site of your site collection, open the Site Actions menu and select the Site Settings option.
  2. From the Site Settings page, select the Site Columns link from the Galleries heading.
  3. The Site Columns page is displayed. Existing site columns are listed on this page. To create a new site column, click on the Create link at the top of the page.
  4. Enter a name for your site column, select its data type, and click on OK.
  5. Your new column is created and added to the list of site columns.

How it works...

SharePoint lists are made up of different columns. These columns can be defined locally (on each list as they are needed) or as site columns, which can be shared by lists throughout the site collection.

If you think that you will need a column more than once, then you should once consider creating it as a site column rather than just adding it to your list directly.

Site columns are particularly useful for columns that contain lookup data or a set of choices (for example, your company's departments or its locations). Using site columns helps you get more consistency in the information that you store within SharePoint.

Site columns are a necessary first step to creating content types, as described in the next recipe.

See also

  • Creating a content type
  • Creating a list column based on a term set, Chapter 3
  • Creating an external content type, Chapter 3
主站蜘蛛池模板: 秭归县| 泾源县| 新余市| 安福县| 石屏县| 怀安县| 正蓝旗| 岳普湖县| 玛沁县| 金湖县| 寿阳县| 新疆| 黑河市| 花垣县| 虹口区| 鄱阳县| 曲麻莱县| 高密市| 胶州市| 广丰县| 当雄县| 荔浦县| 淮北市| 神池县| 凤翔县| 尉氏县| 荃湾区| 黔西县| 珠海市| 柯坪县| 昔阳县| 香港| 张家界市| 科尔| 和硕县| 公主岭市| 会同县| 阳朔县| 曲松县| 宜城市| 涟源市|