To create a new template for custom lists, do the following:
- Go to the Program Files\Common Files\Microsoft Shared\web server extensions\50\Templates\1033\Layouts directory and copy the CustList folder, renaming the new folder appropriately.
- In this new directory, open the file SCHEMA.XML.
- Add as many field definitions as needed to SCHEMA.XML in the empty Fields element just after the opening <MetaData> tag. The following example defines fields for a sign-up sheet that has drop-down lists:
<Fields> <Field Name="LinkTitle" DisplayName="Driver" Required="TRUE"/> <Field Name="Title" DisplayName="Driver" Required="TRUE"/> <Field Name="ParkingLocation" Type="Choice" DisplayName="Park & Ride Location" Required="TRUE"> <CHOICES> <CHOICE>Eastgate Mall</CHOICE> <CHOICE>North Park</CHOICE> <CHOICE>South Terrace Center</CHOICE> <CHOICE>Lake Shores Park & Ride</CHOICE> </CHOICES> </Field> <Field Name="ToWork" Type="Choice" DisplayName="To Work" Required="TRUE"> <CHOICES> <CHOICE>7am</CHOICE> <CHOICE>8am</CHOICE> <CHOICE>9am</CHOICE> <CHOICE>10am</CHOICE> </CHOICES> </Field> <Field Name="FromWork" Type="Choice" DisplayName="From Work" Required="TRUE"> <CHOICES> <CHOICE>4pm</CHOICE> <CHOICE>5pm</CHOICE> <CHOICE>6pm</CHOICE> <CHOICE>7pm</CHOICE> </CHOICES> </Field> <Field Name="Capacity" Type="Number" DisplayName="Capacity" Required="TRUE"/> <Field Name="Preferences" Type="Note" DisplayName="Personal Preferences"/> </Fields>