Wednesday, August 3, 2011

Remove column title ContentType

Problem : If you add one contentType to a list, Title column is automatically added.
If you need to remove only the column Title, you can't cause remove button is hidden.

Solution:

Run a simple power shell script.

$web = Get-SPWeb http://server
$list = $web.Lists["Lib"]
$f= $list.Fields["Title"]
$ct =$list.ContentTypes["New Folder"]
$ct.FieldLinks.Delete($f.InternalName)
$ct.Update()

Now you have a contentType without Title column ;))

No comments:

Post a Comment