In one of site collections we have a content type defined in one of the subwebs. Having it there it's impossible to use it on root web or any other branch of subwebs. Is it possible to move or copy this content type to the root web so it could be available globally?
|
This is one of those examples where a decent Information Architecture up front can save pains down the road. Once you've recreated the Content Type in the root site, you'll still need to flip all the existing list items to it if you want to maintain consistency. Depending on how many list items you have, you can do this manually or programmatically. Charles, any site can contain Content Types, if I'm not mistaken. I agree that the default ought to be to create the Content Types in the root for wider reuse unless the Content Type is always going to have limited use.. |
|||||
|
|
Modified: Do you mean that you have a List Content Type set up on a list on a sub-site? If this is the case then there is no OOTB way to do this, you would have to recreate the Content Type manually as a Site Content Type. Its worth noting that you should always try to deploy content types as Site Content Types to promote re-use across the Site Collection. |
||||
|
|
You could write a little console app that does the following :
The code (console app) would also do :
And then could delete out the old CT in the subweb... Not easy - but do'able. Might be a good topic for a blog post (mental note)... |
||||
|
|