Blog about Microsoft technologies, Office System, SharePoint, MOSS, WSS, Search and "The new world of work"
in

How to: Create a Custom List with your own Content Type (Getting rid of column Title)

This post describes how you can create your own Custom List and connect your own Content Type to this list. When you want to configure through the GUI your own Custom List you need to create a new list based on the list type "Custom List". This will cause to have initially the Content Type "Item" connected to it which puts a non removable field in it called "Title". So how can we connect our own to it and lose the field "Title" ? Just read on and I will tell you :)

At first we need to create our own Content Type called "Product". To do this we need to go into "Site Settings" and choose the option "Site Content Types". select in the toolbar at the top "Create" for creating our own Content Type. Each Content Type needs a name, description and a parent Content Type. All field of the parent all inherited and when the parent changes it can be reflected to your own new custom Content Type. Select from the group  "List Content Types" the Content Type "Item" as parent. Press the "OK" button to create the Content Type.

Because we have inherited from the Content Type "Item" we also now have the required column"Title". Press the link "Title" to edit its properties. Change the Column Settings to "Hidden (Wil not appear in forms)" and press the "OK" button.

Secondly we are gonna create the column called "Code", which is the code of the product as a Number type.

Click on the link of the just created column to edit its properties. For this column we are gonna set the Column Settings to "Required (Must contain information)". This will be our replacement for the column"Title".

We also add two extra columns to the Content Type called "Product Name" as a "Single line of text" and "Product description" as a "Multiple lines of text". As you can see now the column "Title" is hidden while the others are "Required" or "Optional".

We leave to creation of Content Types back to the Site. At the left of the screen above the enumerated and visible Lists present in this Site we click on "View All Site Content". Select "Custom List" from the list of possible listing templates. We enter the name and description for the new custom list and press the "OK" button to generate the list.

Select "List Settings" in the toolbar which will lead us to the settings screen for the list. Select here "Advanced settings".

Within "Advanced settings" we turn on "Allow management of content types" for this list. This means that all connected Content Types will be visible and editable in the list settings screen.

As you can see there is only one Content Type connected to this list. It is also the "Default Content Type".

Select "Add from existing Site content types" to add our just created custom content type. This will connect our Content Type called "Product" to this list.

Now we have two Content Types connected to the list. Select in the list settings the link "Change new button order and default content type" to disable the Content Type "Item" and to set the Content Type "Product" as default. This is easy. Just uncheck the box in front of the Content Type "Item" to hide it. Secondly set the "Position from Top" to 1 (one) for the Content Type "Product". This will cause the Content Type "Product" to be the default one.

Because the Content Type "Item" is not anymore the default one we are gonna remove it. Select the link of that Content Type which will lead to the Information screen of that type. Then select "Delete this content type" to disconnect it from the list. This will not actually remove the Content Type "Item" itself.

Going back into the list settings screen we will see that we are now only connected with the Content Type "Product".

Go to the list and click on "New" in the toolbar. You will see our just created custom Content Type defined by its name and description.

As you can see now we have only the "Code", "Product name" and "Product description" columns in the form. There is now column "Title" anymore. It is there but hidden and not used anymore. Press the "OK" button to add the product.

Because the "All Items" view is still showing the "Attachment" and "Title" column, something which is standard from the Content Type "Item", we need to change this view. Select "Modify this view" from the dropdown in the toolbar at the right.

Change the columns of the view to only the three columns called "Code", "Product name" and "Product description". Change also their order. To make it possible to edit the items you will need also to select the column called "Edit (link to edit item) ". This will show an edit image and link to the edit form.

Finally we have the result. A custom list with our own custom Content Type without using the "Title" column.

» Trackbacks & Pingbacks

  1. Pingback from  Bookmarking the web - w28/2008 - double density design

  2. Pingback from  Bookmarks about Forms

    Bookmarks about Forms — July 16, 2008 1:45 AM
Trackback url for this post:
http://www.bloggix.com/blogs/microsoft/trackback.ashx?PostID=401

» Comments

    No comments yet. Be the first to comment!

» Leave a Comment

(required) 
(optional)
(required) 

Submit

Subscriptions

News

SlideShare.net
I'm using SlideShare.net for sharing my presentation material. You can find it here

Dutch SharePoint User Group
The Dutch SharePoint User Group is an independent social network for people to collaborate and share information around SharePoint Technology and products. By learning from others you can improve your skills and expertise, around areas, which are then again a benefit to the social network. This platform is a community platform for SharePoint developers, architects and designer who want to share information, tricks, code and content. Its also a good starting point for people without SharePoint knowledge who are interested in SharePoint Technology. Read more

Oktober 2008 i'm working for a new company called Sparked. The new world of work causes organizations to re-think about their ways of communication and interaction with their customers.

Increasing usage of web technology and the new generation workers brings changes into these organizations.

Sparked helps these organizations to accelerate adoption of this technology platform to effectively use it around content management, content exposure and collaboration.


April 2008 i have been to the first SharePoint Conference in Dubai. Dubai is an overwhelming town with a lot of passionate people. I had a great time. Thank you my friends!



You can also find my on Facebook

Tags

Alexander Meijers

Previous Blog about SharePoint