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()
Sharepoint Designer could not save the list changes to the server
By peter.stilgoe
When using Sharepoint Designer 2010 to create custom aspx list forms I was getting the error:
‘sharepoint designer could not save the list changes to the server’
I had a look on the net but couldnt really find anything relating to do with this.
I seem to have solved it by going to my list and removing duplicate column names that werent being used ie.
Consultant
Consultant #Used in CT ‘Consultant’#
I was using a custom content type so I deleted all the columns that weren’t ‘Used by’ my custom content type. Once I had done this I was them able to create custom forms as expected in SPD 2010.
Hopefully this will help some people if theyre getting similar problems!
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!
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!
More From pstilgoe
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)
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).”
More From pstilgoe
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
More From pstilgoe
Exposing the ‘Event’ content type in Sharepoint
By peter.stilgoe
Go into the ‘List settings’ for an existing calendar on your site
Click on ‘Advanced Settings’ and tick yes for “Allow Management of Content Types”
This then shows the ‘Event’ content type in that calendar’s List Settings.
Click on the word ‘Event’ in the list of content types.
At the top of the next page it tells you that the parent is also called ‘Event’ – click on its link.
The following page tells you that the parent content type is in Group “_Hidden”.
Click on the “Name, Description & Group” link and then it allows you to put the ‘Event’ content type into a new group.



August 4th, 2011
