Adding new content type to existing libraries

Kasper Bo Larsen
  • Adding new content type to existing libraries Kasper Bo Larsen

    A common issue with my customers is that they define a number of content types that should be available on a document library. That library is part of a custom site template and pretty soon we'll have 200 sites using that template. Now the customer realize that they need two new content types on that library. Oh, and they will need those content types on the existing sites as well.

    I might have misunderstod something about content types or just misconfigured the library, but so far the only way I have been able to add those new content types on existing sites have been through a powershell script.

    Is this just a feature in SharePoint 2007 that I'll have to get used to, or have I missed a crucial point?

  • Content types are scoped to a site, so the only way to make them visible on all sites is to activate the containing feature at the root of every site collection.

    Once the content type is added to the gallery, it can be selected in the browser. (You need to change the library to allow management of content types.) However, your PowerShell approach will certainly be easier than visiting every site/library to add it.

content-type libraries
Related questions and answers
  • This is mainly a verification question as I have been fighting with an issue for a couple of days now. I have two lists derived from 2 custom content types. Both content types used the task base content type. Each of the derived content types have custom form rendering templates. I am using a custom usercontrol with codebehind added to the .ascx page as a control to redraw the forms differently... that not really matter? I ask because I can change the content type of the nonworking one to use the same template as the working one and it will load just fine. UPDATE: I tried changing the type and even

  • We have taken over a site where My Sites are placed in the Intranet web application. I want to migrate the My Sites to a dedicated host site. From what i have been able to find out so far, I will need to do an STSADM -o backup of each personal site and restore it into the new content database. I will be automating this process using PowerShell. Has anyone tried this? Any caveats i need to be aware of? Since i need to move site collections out of an existing content database into another, as far as i can see i cannot use a simple SSP migration. Any help appreciated :-) EDIT: I wrote

  • only site collections/sites using non-publishing templates. All other content is availble e.g. documents, lists Has anyone else come across this? UPDATE 08/05/10: I have been doing some further... in the index under the contentclass:STS_Site and the sites (SPWeb's) are contentclass:STS_Web. The following people seem to have come across this issue and assumed it was just a limitation. I think...This is an old issue I thought this was a bug in an specific environment after reading a couple of blogs it has made me think again... The issue is that SharePoint site collections and sites

  • to the Pages library. This correctly provisions the page to the Pages library with an Announcements List View web part provisioned to the page. I have about 800 (or so) sites created from this site definition. We have a need to add a few web parts to the page for any new sites created from the template and also for all of the existing 800 sites. The plan was to move the default.aspx module from ONET... existing sties. New sites would pick it up via the feature. When I do this I can deactivate and reactivate the feature to correctly replace the home page with the "latest version". However, when I

  • I am using the WebDeleting event which is based on features. Just activate the feature, and whenever a web is getting deleted, the event handler throws a message saying "Web can't be deleted". Everything works fine for all the existing sites. But suppose a client adds 5-10 sites? How should I go about attaching the event handlers to new sites which are created? I thought of going for Job Schedulers which work on attaching every minute or second.. Or is there another approach? Please provide links if any.

  • I am running on a new dev setup for SharePoint 2010 and trying to setup some External Content types. I think that I have setup BCS correctly (since I see it running in the central administration). When I go into SharePoint designer 2010 and try to setup a new External Content Type, I get the following error: There is no Business Connectivity Service associated with the current web context. Am I missing something with the configuration? Why am I not able to setup a new External Content Type to point to my existing SQL database?

  • I am currently on a project where I have been asked to clean up the Site Template gallery from various collections across the organization. One of the offending web apps has one site collection... a complete inventory of sites and the template it uses without much code. Would love to do this from the UI. This can give an idea of sites we can safely delete. 2.) I am under assumption that we can delete the stp as required and current sites based off the deleted template will still be intact? I just don't want current sites to be impacted. 3.) Lastly, Outside as deploying templates

  • . Scoped to Site. Registration: contains a ListTemplate and a ListInstance that just modifies a basic Custom List to enable content types and add my custom content type. Scoped to Web. Here's what's... as expected. When I try to add a new item to the list, the list form only shows the Title field from Item. Now, here's the weird part. If I add a second content type to the list (through the UI), the list form suddenly works correctly. This makes me think there's something wrong with my content type. Here's what I'm working with. Some names have been changed to protect the innocent. <ContentType

  • Does anyone know what permission levels are required to allow a user to create content but not approve it? I’ve just spent the afternoon trying this and am more confused than when I started. For instance… If I add a user into the Designer site permission group I can create pages – excellent, just as I would expect. If I create a new site permissions level - let’s call it ‘customer-designer... though the new group is based on permissions that have been directly copied from a permission set that does allow page creation Does this make any sense? Can anyone help me to understand it? Update 1

Data information