Sharepoint 2010: How to remove columns from content types using powershell

By peter.stilgoe









Some columns once added to a content type dont allow you to remove them, you dont got a delete button. To delete one such column from your cotent type you can use the following Sharepoint Powershell Script:

#Attach to the web and content type
$web = Get-SPWeb http://fldev003/sites/pjstest/
$ct = $web.ContentTypes["Post"]

#Get link to the columnn from the web
$spFieldLink = New-Object Microsoft.SharePoint.SPFieldLink ($web.Fields["Page Image"])

#Remove the column from the content type and update
$ct.FieldLinks.Delete($spFieldLink.Id)
$ct.Update()

#Dispose of the web object
$web.Dispose()




Share

Leggi tutto

Sharepoint 2010 Content Type Hub – New calculated column not propogating to children

By peter.stilgoe









Had a weird problem where I was updating a master content type, adding a calculated column to it which I wanted to propogate down to all content types inheriting from the master but no matter what the new calculated column never appeared.

It turned out that the logic & syntax in my calculated column didnt make sense although it did accept it upon creation. Once I rectified the forumla in the calculated column so it was correct the column propogated to all child content types as it should do.

Hopefully this will solve someone sometime if they experience similar!




Share

Leggi tutto

Sharepoint 2010: Group by content type or filter by content type

By peter.stilgoe









For some strange reason MS have stopped you from being allowed to group & filter by content type in Sharepoint 2010 views which seems really odd?

I have searched the web and cant find an answer, if anyone knows Id be grateful if they could share this, Im guessing its something to do with the content type hub & changes have had to be made to accomodate this in 2010, cant think of any other logical reason!

Share

Leggi tutto

How to force a manual update on your Content Type Hub

By peter.stilgoe









To force your content types to be pushed out to other site collections from your content type hub you need to run the following timer jobs:

CONTENT TYPE SUBSCRIBER TimerJob

You can access this via Central Administration -> Check Job Status (under Monitoring)




Share

Leggi tutto

Sharepoint Blog Template – No content types

By peter.stilgoe









I was hoping to use a Sharepoint blog with custom templates for showcasing products but it appears you cant’

“The Post Content Type used in Blogs (0×0110) can be changed, but the changes are not propagated to the list (as its AllowContentTypes is false).”

Share

Leggi tutto

The Forgotten Folder Content Type

By peter.stilgoe









Many people including myself seem to forget there is a ‘folder’ content type in WSS / MOSS. The main reasons to use folders has always been performance issues for me & for archiving data in certain scenrios, but a big thing is that by using folders you can assign custom views that specifically are only available for the folder(s) that you specify.

However when considering using folders in your Information Architechture consider the following that you do not appear to be able to do:

- attach workflow to folders via UI
- move folders via UI
- move folders via explorer view without losing your metadata
- have version history on folders
- show folders in data view rollups
- CQWP won’t be able to surface all your data in folders – need to test to confirm this

Share

Leggi tutto