Creating a custom column part 1

This is not creating a custom column through the gui but adding one through the filesystem via a feature.

First add folders 12/template/XML

Add file named fldtypes_XXXXXXXX. MUST ADD fldtypes for SharePoint to recognize this is a new column.

In the case of this colum, the column we are adding is a drop down field. Each item in the column can be clicked to take you to the subsite that you selected.

fldtypes_xxx xml:

<?xml version=”1.0″ encoding=”utf-8″ ?>

<Field Name=”TypeName”>SystemChooserDropDownList</Field>
<Field Name=”ParentType”>Text</Field>
<Field Name=”TypeDisplayName”>KMS Systems</Field>
<Field Name=”TypeShortDescription”>Displays a list of all systems in the KMS sharepoint site collection.</Field>
<Field Name=”UserCreatable”>FALSE</Field>
<Field Name=”Sortable”>TRUE</Field>
<Field Name=”AllowBaseTypeRendering”>TRUE</Field>
<Field Name=”Filterable”>TRUE</Field>
<Field Name=”FieldTypeClass”>KMS_Custom_column_Systems.FeatureCode.KMS_CustomColumn_systems_List_main, KMS_Custom_column_Systems, Version=, Culture=neutral, PublicKeyToken=6ecc6dc3171e16e7</Field>
<RenderPattern Name=”DisplayPattern”>
<HTML><![CDATA[<a href=”http://sharepoint/sites/kms/systems/]]></HTML>
<Column HTMLEncode=”TRUE” />
<Column HTMLEncode=”TRUE” />

Next up, make the CS files

Comments are closed.