Showing posts with label custom document library field. Show all posts
Showing posts with label custom document library field. Show all posts

Monday, November 28, 2011

Adding a field to a list in a custom document library


To add a field to a list for a document library, do the following:
  1. Open the Program Files\Common Files\Microsoft Shared\web server extensions\50\Templates\1033\Layouts directory.
  2. Copy the entire contents of the DocLib folder to the directory, renaming the copy, for example, MyDocLib.
  3. In the new MyDocLib directory, open SCHEMA.XML.
  4. Find the Fields element within the opening MetaData section. Between the opening and closing <Fields> tags, add a Field element like the following:
    <Field Name="EmployeeID" DisplayName="Employee ID" Type="Number" Required="TRUE"
      Description="Enter the ID from your employee badge."/>
    
    

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 ...