Showing posts with label custom list template. Show all posts
Showing posts with label custom list template. Show all posts

Monday, November 28, 2011

Creating a new template for custom lists


To create a new template for custom lists, do the following:
  1. 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.
  2. In this new directory, open the file SCHEMA.XML.
  3. 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>
    
    

Featured Posts

Kali Linux Remote Desktop: Access GNOME from Windows Using Native RDP

  Kali Linux + GNOME 50 + GNOME Remote Desktop + Windows Remote Desktop (MSTSC) Getting a full GNOME desktop remotely on Kali Linux can be ...