Logo
programming4us
programming4us
programming4us
programming4us
Home
programming4us
XP
programming4us
Windows Vista
programming4us
Windows 7
programming4us
Windows Azure
programming4us
Windows Server
programming4us
Windows Phone
 
Windows Server

Micorosoft Sharepoint 2013 : SharePoint Metadata Types (part 3) - Metadata in Lists

- Free product key for windows 10
- Free Product Key for Microsoft office 365
- Malwarebytes Premium 3.7.1 Serial Keys (LifeTime) 2019
12/23/2014 8:43:28 PM

Metadata in Lists

Lists and content types marry together nicely—if a content type describes some data, and lists contain instances of data, then the content type effectively describes the schema of a list. For example, if a list is to contain contact addresses, you could imagine the list having columns for the person’s name, street address, city, state, ZIP, etc. If you create a content type, which includes these aforementioned columns, your content type defines the schema for hosting contact information in the list.

By default, new custom lists do not maintain columns with content types. You simply create a new list instance and begin adding columns to the list. In this case, SharePoint implies a local list content type from the list definition. Changing a list to allow the management of content types provides for greater control of content in the list—for one, a list may associate with multiple content types, and thus have list items with different columns. This is a very powerful concept, which separates SharePoint lists from tables found in relational databases (which limit rows to a single set schema). Using the previous example, picture the ability to add different classifications of contacts to the list, some US contacts and some European, where the US addresses contain City, State, and ZIP, and the European addresses contain City, Province, and Postcode.

The following steps demonstrate adding content types to a document library or list:

  1. Navigate to a list or document library.
  2. From the ribbon, click the Library tab, or List tab if a list.
  3. From the ribbon, click the Library Settings (or List Settings) icon.
  4. Under General Settings on the Settings page, click the Advanced Settings link.
  5. Toggle the option to Allow Management of Content Types to Yes.
  6. Scroll to the bottom of the page and click the OK button.
  7. The List/Library Settings page should now show a Content Types section, as shown in Figure 6.

9781430249412_Fig09-06.jpg

Figure 6. Content types section in the List/Library Settings page

In my example (using a document library), you see that my document library has one content type—Document—and this content type is the default for all new items added to the list. Farther down the page (not shown in the figure), in the Columns section, is the Title column, sourced from the Document content type. SharePoint adds the special Modified By, Create By, and Checked Out columns to each list, which are not associated with any content type. Add an additional content type to your library (assuming you are following at home using a document library; the steps work similarly for lists).

  1. From the List/Library Settings page, click the Add from Existing Site Content Types link.
  2. In the Content Type Section page, change the drop-down to display Document Content Types group.
  3. Select the content type Picture, and click the Add button.
  4. Click the OK button.
  5. In the Library Settings page, within the Content Types section, you should see the addition of a Picture content type.
  6. Scroll to the Columns section and notice the presence of new columns, as used in the Picture content type.
  7. Navigate back to the default view of the Shared Documents library (hint: you can use the breadcrumb at the top of the page).
  8. Click the Files tab on the ribbon.
  9. From the ribbon, click the New Document (lower part of the icon), as shown in Figure 7.

9781430249412_Fig09-07.jpg

Figure 7. Creating a new document of a specific content type

You may apply the preceding series of steps to regular lists so that content owners and contributors may add list items to a list with different column data. This practice greatly comes into play when creating multiple content types for different publishing pages within a single Pages document library of a publishing site.

One area of confusion I have seen with lists and content types is in the inheritance chain. When adding a content type to a list, SharePoint makes a new content type at the list level, which inherits from the site content type of the same name. The purpose of this action is to provide a degree of abstraction from changes applied to content types at the site level that differ from specific changes at the list level.

Note  List-level content types inherit from site-level content types. This provides a level of abstraction, and provides data integrity at the list level if you delete columns from the site content type.

The following series of steps demonstrates this thinking:

  1. Navigate to your Library Settings page.
  2. Scroll to the Content Types section.
  3. Click the Document content type.

    SharePoint shows the Content Type Settings page for the Document content type. At the top of the page, notice that the parent of this selected content type is Document also. The heading at the top of the page shows as List Content Type Information.

  4. Click the parent Document content type.
  5. SharePoint now shows a page for the site-level Document content type.
  6. The page heading changes to show Site Content Type Information.
  7. Click Add from New Site Column to navigate to the new column page.
  8. Scroll to the bottom of the page and notice the setting for Update All Content Types Inheriting from This Type.
  9. Toggle this option to Yes.
  10. Navigate back to the List page and notice that the list-level content type has this column because you propagated the change down.
  11. Repeat the steps to add a new column but toggle the option to update inheriting content types to No.
  12. Navigate back to the List page and notice that the column is absent.
Other -----------------
- Micorosoft Sharepoint 2013 : The SharePoint Content Type Model - New Content Type Model Functionality
- Microsoft SQL Server 2012 : Knowing Tempdb - Troubleshooting Common Issues (part 3) - Troubleshooting Space Issues
- Microsoft SQL Server 2012 : Knowing Tempdb - Troubleshooting Common Issues (part 2) - Latch Contention - ikelihood of it happening. Multiple Tempdb Data Files
- Microsoft SQL Server 2012 : Knowing Tempdb - Troubleshooting Common Issues (part 1) - Latch Contention - Allocation Page Contention
- Microsoft SQL Server 2012 : Knowing Tempdb - Overview and Usage (part 2) - The Version Store
- Microsoft SQL Server 2012 : Knowing Tempdb - Overview and Usage (part 1) - User Temporary Objects
- Microsoft Lync Server 2013 : Windows Client - Navigating in the Client - Useful Lync Client Shortcuts
- Microsoft Lync Server 2013 : Windows Client - Navigating in the Client - Managing Contacts, Managing Groups, Status View
- Microsoft Lync Server 2013 : Windows Client - Navigating in the Client - Configuring Basic Options
- Microsoft Lync Server 2013 : Windows Client - Installing the Client
 
 
Top 10
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Finding containers and lists in Visio (part 2) - Wireframes,Legends
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Finding containers and lists in Visio (part 1) - Swimlanes
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Formatting and sizing lists
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Adding shapes to lists
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Sizing containers
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 3) - The Other Properties of a Control
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 2) - The Data Properties of a Control
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 1) - The Format Properties of a Control
- Microsoft Access 2010 : Form Properties and Why Should You Use Them - Working with the Properties Window
- Microsoft Visio 2013 : Using the Organization Chart Wizard with new data
 
programming4us
Windows Vista
programming4us
Windows 7
programming4us
Windows Azure
programming4us
Windows Server