Posts Tagged ‘ Content types ’
I came across this issue today when working through creating some content types for a new deployment. Basically the issue is to do with when you need to make a field required in a content type. Here is a rough example of what I was deploying: <ContentType ID="0x010066A56ACAD18524448240E9D259F872AB" Name="My Content Type" Group="My Custom Content Types"> [ READ MORE ]
Have you ever had one of those problems that you look at and say “I have no idea how to do that” and then when you figure it out you realise that you already knew, you just forgot about it, and when it turns out to be something really easy you feel like a bit of [ READ MORE ]
Just a quick bit of code that I put together today that I thought was worth sharing. If you need to change the content type of a list item then here is a piece of code that will do it for you. 1: // get the list item that you need to update (do this [ READ MORE ]
Just a quick one that I came across today – when you are referring to an SPWeb object and need to go through the content types for that web, the SPWeb.ContentTypes property will only show you a list of content types that have been defined at that site level, not a full list of Content [ READ MORE ]
If you have ever had a look at the ID of a content type in a WSS or MOSS site, you might be wondering why it isn’t simply another guid value like every other identifier of pretty much anything in SharePoint. Well there is a reason for this, and it is actually quite cool when [ READ MORE ]
Subscribe in a reader
Subscribe by Email