Content type
- Content types define the attributes of the list item, document and folders.
- Content types have been inherited from parent Site Collection to child Site Collection.
- Content type can be published and can be used across Site Collection, using Content type hub and managed metadata Service Application (MMS).
- Content types are reusable.
Flow
Note
CT – Content Type
Next step is that we are already looking some default content types in SharePoint lists and document libraries.
Digital Asset Content Types
- Audio
- Video
- Image
- Rich Media Assets
- Video Rendition
List content types
- Item
- Announcements
- Tasks
- Event
- Reservation
- Workflow Tasks
Document content types
- Basic page
- Document
- WIKI page
- Form
Let’s go and create a Custom content type to capture the employee information.
Open SharePoint site.
Navigate to site settings ->Under Web designer galleries -> Click Site content type.
Under site content types -> click Create.
Provide the name and description of the content type.
Pick the parent content type -> List content type.
In this scenario, I need to capture the employee information in SharePoint list, so I picked the list content type.
Provide the parent content type for -> Item.
If you need to create separate group for your custom content types, you can create and host under new group else pick the default group.
Click OK to complete the setup.
After successful creation of content type, it will look, as shown below.
Add the columns to capture the employee information.
Click Add a new site column.
I am just hiding the default title column.
Column | Datatype |
EmployeeName | Single line of text |
Designation | Single line of text |
Salary | Number |
BloodGroup | Single line of text |
Mobile | Single line of text |
Email | Single line of text |
Next step is to create a custom list.
By default New Item content type is available.
Navigate to List settings in the top ribbon.
Under Content types - > Click Add from the existing content types.
Select the content type -> click Add - >Click OK.
Pick EmployeeDetails as default content type by changing the order.
Now
Let's go to Item - > New Item.
Just Modify view and see the add employee details.
Happy learning.