Creating Custom List Definitions

You have created a list and a library using out of the box list templates. At times you will want to define your own list template and create a list using that. It’s easy to create a new list template using Visual Studio. This section shows the process of creating a new list definition.

Open the CustomSchema project created earlier. Select List Definition from Content Type and name it Product List. Click the Add button. You are shown the Choose List Definition Settings as shown in Figure 10.12.

Image

Figure 10.12. Choose List Definitions Settings screen

Change the display name to Product List. Select the Product content ...

Get Sams Teach Yourself SharePoint® 2010 Development in 24 Hours now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.