SharePoint content types are a powerful way of customizing the Sites. Content Types define a list item or group of list items in a List or Document Library. Content Types themselves contain a group of Site/user defined columns.
Imagine a scenario where you want to maintain a List of all customers of a company named "Doe wines". For this we should create a List called as "Customers". However, there are two types of customers of "Doe wines", one type of customers are individuals and the other type are companies. The data related to individuals and Companies will also differ. For example Individuals will have a First and Last name, Date of Birth etc. Companies may have Names, License type etc.
So to maintain both type of data in a single List we can use Content Types. We can create one Content Type called as IndividualCT and one more called as CompanyCT. Both will have their own set of columns.
Now in the Customers List we can just select New->CompanyCT and then create a customer who is a company. Similarly, we can create a customer who is an Individual by going to New->IndividualCT. Here both will be maintained in the same customer list.
No comments:
Post a Comment