<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/'><id>tag:blogger.com,1999:blog-4126985520350746834.post4799881563058651131..comments</id><updated>2011-06-07T23:42:50.236+01:00</updated><category term='Personal'/><category term='Coding'/><category term='WCM'/><category term='Continuous Integration'/><category term='jQuery'/><category term='master pages'/><category term='debugging'/><category term='workflow'/><category term='speaking'/><category term='page layouts'/><category term='security'/><category term='lists'/><category term='deployment'/><category term='SharePoint'/><category term='AJAX'/><category term='content deployment'/><category term='ghosting'/><category term='codeplex'/><category term='help'/><category term='TechEd'/><category term='customizing'/><category term='Virtual Server'/><category term='CAS policy'/><category term='site definitions'/><category term='user group'/><category term='CustomAction'/><category term='SP2010'/><category term='feature-stapling'/><category term='Content Deployment Wizard'/><category term='webparts'/><category term='feature receiver'/><category term='site columns'/><category term='configuration'/><category term='features'/><category term='central admin'/><category term='DelegateControl'/><category term='MOSS'/><category term='content migration API'/><category term='VSeWSS'/><category term='Virtual Machine Manager'/><category term='content query web part'/><category term='content types'/><category term='InfoPath'/><title type='text'>Comments on Chris O'Brien: Deploying content types as a feature</title><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://www.sharepointnutsandbolts.com/feeds/4799881563058651131/comments/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4126985520350746834/4799881563058651131/comments/default'/><link rel='alternate' type='text/html' href='http://www.sharepointnutsandbolts.com/2007/04/deploying-content-types-as-feature.html'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/4126985520350746834/4799881563058651131/comments/default?start-index=26&amp;max-results=25'/><author><name>Chris O'Brien</name><uri>http://www.blogger.com/profile/10022906552670607366</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/_DPonmXhJQ4g/SiFZBcX_Q1I/AAAAAAAAAa0/14b7VTN0FZM/s1600-R/28f5735.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>33</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-4126985520350746834.post-8038351191325227587</id><published>2009-02-24T13:22:00.000Z</published><updated>2009-02-24T13:22:00.000Z</updated><title type='text'>@Ben N,&lt;br&gt;&lt;br&gt;Yes, this is a fairly common requir...</title><content type='html'>@Ben N,&lt;BR/&gt;&lt;BR/&gt;Yes, this is a fairly common requirement. Using the method/code I outline in &lt;A HREF="http://www.sharepointnutsandbolts.com/2007/04/sample-code-creating-list-based-site.html" REL="nofollow"&gt;Sample code - creating lookup columns as a Feature&lt;/A&gt;, you can specify the web and list you want to look up.&lt;BR/&gt;&lt;BR/&gt;The &lt;A HREF="http://sharepointsolutions.blogspot.com/2006/11/free-custom-cross-site-lookup-column.html" REL="nofollow"&gt;cross-site lookup field&lt;/A&gt; from SharePoint Solutions addresses this in the same way.&lt;BR/&gt;&lt;BR/&gt;Unfortunately you're out of luck if you need to lookup a list in a different site collection - you'd need to do something custom to deal with this.&lt;BR/&gt;&lt;BR/&gt;HTH,&lt;BR/&gt;&lt;BR/&gt;Chris.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4126985520350746834/4799881563058651131/comments/default/8038351191325227587'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4126985520350746834/4799881563058651131/comments/default/8038351191325227587'/><link rel='alternate' type='text/html' href='http://www.sharepointnutsandbolts.com/2007/04/deploying-content-types-as-feature.html?showComment=1235481720000#c8038351191325227587' title=''/><author><name>Chris O'Brien</name><uri>http://www.blogger.com/profile/10022906552670607366</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.sharepointnutsandbolts.com/2007/04/deploying-content-types-as-feature.html' ref='tag:blogger.com,1999:blog-4126985520350746834.post-4799881563058651131' source='http://www.blogger.com/feeds/4126985520350746834/posts/default/4799881563058651131' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-2092051249'/></entry><entry><id>tag:blogger.com,1999:blog-4126985520350746834.post-6936736521939162687</id><published>2009-02-23T18:37:00.000Z</published><updated>2009-02-23T18:37:00.000Z</updated><title type='text'>This is a great article. One thing I am wondering ...</title><content type='html'>This is a great article. One thing I am wondering about, though....&lt;BR/&gt;&lt;BR/&gt;I have a column that I want to use across multiple site collections, The column would be a choice column, and I want to have consistency in the set of choices across columns. This is why I am looking at deploying this through features. &lt;BR/&gt;&lt;BR/&gt;I want the choice options to be easy to manage, so that a non-IT person can update the list of options as things change.&lt;BR/&gt;&lt;BR/&gt;So your notion of a lookup list makes sense. But could I have it lookup in one central list that may or may not exist in the same site collection where the site column will be used?</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4126985520350746834/4799881563058651131/comments/default/6936736521939162687'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4126985520350746834/4799881563058651131/comments/default/6936736521939162687'/><link rel='alternate' type='text/html' href='http://www.sharepointnutsandbolts.com/2007/04/deploying-content-types-as-feature.html?showComment=1235414220000#c6936736521939162687' title=''/><author><name>Ben N</name><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.sharepointnutsandbolts.com/2007/04/deploying-content-types-as-feature.html' ref='tag:blogger.com,1999:blog-4126985520350746834.post-4799881563058651131' source='http://www.blogger.com/feeds/4126985520350746834/posts/default/4799881563058651131' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1098356670'/></entry><entry><id>tag:blogger.com,1999:blog-4126985520350746834.post-2477742855586121709</id><published>2008-11-11T16:45:00.000Z</published><updated>2008-11-11T16:45:00.000Z</updated><title type='text'>Chris, &lt;br&gt;&lt;br&gt;I noticed your comments about not b...</title><content type='html'>Chris, &lt;BR/&gt;&lt;BR/&gt;I noticed your comments about not being able to update a Content Type via a Feature. I found the attached commentary on that interesting, and hopefully so will you. Here's the link;&lt;BR/&gt;http://blog.sharepoint.ch/2008_06_01_archive.html</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4126985520350746834/4799881563058651131/comments/default/2477742855586121709'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4126985520350746834/4799881563058651131/comments/default/2477742855586121709'/><link rel='alternate' type='text/html' href='http://www.sharepointnutsandbolts.com/2007/04/deploying-content-types-as-feature.html?showComment=1226421900000#c2477742855586121709' title=''/><author><name>Jamie McAllister</name><uri>http://www.the-north.com/sharepoint</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.sharepointnutsandbolts.com/2007/04/deploying-content-types-as-feature.html' ref='tag:blogger.com,1999:blog-4126985520350746834.post-4799881563058651131' source='http://www.blogger.com/feeds/4126985520350746834/posts/default/4799881563058651131' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-112959034'/></entry><entry><id>tag:blogger.com,1999:blog-4126985520350746834.post-3957814217911751706</id><published>2008-10-15T23:26:00.000+01:00</published><updated>2008-10-15T23:26:00.000+01:00</updated><title type='text'>Bentini,&lt;br&gt;&lt;br&gt;To do this you must write code - y...</title><content type='html'>Bentini,&lt;BR/&gt;&lt;BR/&gt;To do this you must write code - you can then retrieve the list ID and set the lookup. I have some code on Codeplex which does this, take a look at &lt;A HREF="http://www.codeplex.com/SP2007LookupFields" REL="nofollow"&gt;http://www.codeplex.com/SP2007LookupFields&lt;/A&gt;&lt;BR/&gt;&lt;BR/&gt;HTH,&lt;BR/&gt;&lt;BR/&gt;Chris.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4126985520350746834/4799881563058651131/comments/default/3957814217911751706'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4126985520350746834/4799881563058651131/comments/default/3957814217911751706'/><link rel='alternate' type='text/html' href='http://www.sharepointnutsandbolts.com/2007/04/deploying-content-types-as-feature.html?showComment=1224109560000#c3957814217911751706' title=''/><author><name>Chris O'Brien</name><uri>http://www.blogger.com/profile/10022906552670607366</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.sharepointnutsandbolts.com/2007/04/deploying-content-types-as-feature.html' ref='tag:blogger.com,1999:blog-4126985520350746834.post-4799881563058651131' source='http://www.blogger.com/feeds/4126985520350746834/posts/default/4799881563058651131' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-2092051249'/></entry><entry><id>tag:blogger.com,1999:blog-4126985520350746834.post-2277824594430987218</id><published>2008-10-10T16:47:00.000+01:00</published><updated>2008-10-10T16:47:00.000+01:00</updated><title type='text'>Hi Chris,&lt;br&gt;I'm using your approach on a colabora...</title><content type='html'>Hi Chris,&lt;BR/&gt;I'm using your approach on a colaboration site. I want to use the  content type that has the lookup field in a list definition.&lt;BR/&gt;The problem is that in the schema.xml one has to describe the content type fields and, in case of a lookup, we have to put the list ID...how can I set it if I don't now which is the list ID the site column is referring?&lt;BR/&gt;Any ideia?&lt;BR/&gt;&lt;BR/&gt;Thanks!</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4126985520350746834/4799881563058651131/comments/default/2277824594430987218'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4126985520350746834/4799881563058651131/comments/default/2277824594430987218'/><link rel='alternate' type='text/html' href='http://www.sharepointnutsandbolts.com/2007/04/deploying-content-types-as-feature.html?showComment=1223653620000#c2277824594430987218' title=''/><author><name>bentini</name><uri>http://www.blogger.com/profile/11608994127532627905</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.sharepointnutsandbolts.com/2007/04/deploying-content-types-as-feature.html' ref='tag:blogger.com,1999:blog-4126985520350746834.post-4799881563058651131' source='http://www.blogger.com/feeds/4126985520350746834/posts/default/4799881563058651131' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-390387767'/></entry><entry><id>tag:blogger.com,1999:blog-4126985520350746834.post-4526089313494184129</id><published>2008-09-15T07:39:00.000+01:00</published><updated>2008-09-15T07:39:00.000+01:00</updated><title type='text'>@Raj,&lt;br&gt;&lt;br&gt;Sorry for the delay in replying, I wa...</title><content type='html'>@Raj,&lt;BR/&gt;&lt;BR/&gt;Sorry for the delay in replying, I was on holiday when you posted.&lt;BR/&gt;&lt;BR/&gt;I suspect the error you are seeing is caused by something other than the content type ID you are using. Is everything correct in terms of filepaths/filenames in your Feature files/solution manifest (if deploying via solution)?&lt;BR/&gt;&lt;BR/&gt;Suggest testing with the original content type ID - you can always delete this content type before anything uses it.&lt;BR/&gt;&lt;BR/&gt;Cheers,&lt;BR/&gt;&lt;BR/&gt;Chris.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4126985520350746834/4799881563058651131/comments/default/4526089313494184129'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4126985520350746834/4799881563058651131/comments/default/4526089313494184129'/><link rel='alternate' type='text/html' href='http://www.sharepointnutsandbolts.com/2007/04/deploying-content-types-as-feature.html?showComment=1221460740000#c4526089313494184129' title=''/><author><name>Chris O'Brien</name><uri>http://www.blogger.com/profile/10022906552670607366</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.sharepointnutsandbolts.com/2007/04/deploying-content-types-as-feature.html' ref='tag:blogger.com,1999:blog-4126985520350746834.post-4799881563058651131' source='http://www.blogger.com/feeds/4126985520350746834/posts/default/4799881563058651131' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-2092051249'/></entry><entry><id>tag:blogger.com,1999:blog-4126985520350746834.post-7932515908343061480</id><published>2008-09-14T17:41:00.000+01:00</published><updated>2008-09-14T17:41:00.000+01:00</updated><title type='text'>The XmlDocuments schema can be seen in the databas...</title><content type='html'>The XmlDocuments schema can be seen in the database in your content database in ContentTypes::Definition. If you have an existing content type with a IM policy you can see it here. You'll need to decode the base64 strings to use.&lt;BR/&gt;&lt;BR/&gt;I have tried manually inserting this into an elements.xml file and deploying a content type with expiration policy as a feature but have been unsuccessful so far. If anyone finds the trick, please post.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4126985520350746834/4799881563058651131/comments/default/7932515908343061480'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4126985520350746834/4799881563058651131/comments/default/7932515908343061480'/><link rel='alternate' type='text/html' href='http://www.sharepointnutsandbolts.com/2007/04/deploying-content-types-as-feature.html?showComment=1221410460000#c7932515908343061480' title=''/><author><name>fromonesource</name><uri>http://www.blogger.com/profile/09411905142752376982</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.sharepointnutsandbolts.com/2007/04/deploying-content-types-as-feature.html' ref='tag:blogger.com,1999:blog-4126985520350746834.post-4799881563058651131' source='http://www.blogger.com/feeds/4126985520350746834/posts/default/4799881563058651131' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-824322537'/></entry><entry><id>tag:blogger.com,1999:blog-4126985520350746834.post-7181788952326249528</id><published>2008-09-14T11:21:00.000+01:00</published><updated>2008-09-14T11:21:00.000+01:00</updated><title type='text'>@Madhawa,&lt;br&gt;&lt;br&gt;Sorry for the delay in replying, ...</title><content type='html'>@Madhawa,&lt;BR/&gt;&lt;BR/&gt;Sorry for the delay in replying, I was on holiday when you posted.&lt;BR/&gt;&lt;BR/&gt;Yes, is it possible apply &lt;I&gt;some&lt;/I&gt; extended settings - I know IM policy can be done, not sure about workflow. This area is not yet well-documented AFAIK. They key is using the XmlDocuments element in the content type schema - see &lt;A HREF="Policies%20in%20Content%20Types" REL="nofollow"&gt;http://msdn.microsoft.com/en-us/sharepoint/ms549876.aspx&lt;/A&gt; for some info. You'll probably also need to do some extra searching to find examples using the full schema.&lt;BR/&gt;&lt;BR/&gt;HTH,&lt;BR/&gt;&lt;BR/&gt;Chris.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4126985520350746834/4799881563058651131/comments/default/7181788952326249528'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4126985520350746834/4799881563058651131/comments/default/7181788952326249528'/><link rel='alternate' type='text/html' href='http://www.sharepointnutsandbolts.com/2007/04/deploying-content-types-as-feature.html?showComment=1221387660000#c7181788952326249528' title=''/><author><name>Chris O'Brien</name><uri>http://www.blogger.com/profile/10022906552670607366</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.sharepointnutsandbolts.com/2007/04/deploying-content-types-as-feature.html' ref='tag:blogger.com,1999:blog-4126985520350746834.post-4799881563058651131' source='http://www.blogger.com/feeds/4126985520350746834/posts/default/4799881563058651131' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-2092051249'/></entry><entry><id>tag:blogger.com,1999:blog-4126985520350746834.post-3907050002214255069</id><published>2008-09-12T17:50:00.000+01:00</published><updated>2008-09-12T17:50:00.000+01:00</updated><title type='text'>@Anonymous,&lt;br&gt;&lt;br&gt;Yes, you're correct in that the...</title><content type='html'>@Anonymous,&lt;BR/&gt;&lt;BR/&gt;Yes, you're correct in that the UI and code are the only options for updating existing content types. Creating a new Feature to attempt to update artifacts initially deployed from another Feature is something to avoid.&lt;BR/&gt;&lt;BR/&gt;In terms of where to put the code, it doesn't matter so much. Some options could be:&lt;BR/&gt;&lt;BR/&gt;- create a new Feature which has a Feature receiver containing the code to update the content type&lt;BR/&gt;- some other place such as a console application which you will run on the server&lt;BR/&gt;&lt;BR/&gt;HTH,&lt;BR/&gt;&lt;BR/&gt;Chris.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4126985520350746834/4799881563058651131/comments/default/3907050002214255069'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4126985520350746834/4799881563058651131/comments/default/3907050002214255069'/><link rel='alternate' type='text/html' href='http://www.sharepointnutsandbolts.com/2007/04/deploying-content-types-as-feature.html?showComment=1221238200000#c3907050002214255069' title=''/><author><name>Chris O'Brien</name><uri>http://www.blogger.com/profile/10022906552670607366</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.sharepointnutsandbolts.com/2007/04/deploying-content-types-as-feature.html' ref='tag:blogger.com,1999:blog-4126985520350746834.post-4799881563058651131' source='http://www.blogger.com/feeds/4126985520350746834/posts/default/4799881563058651131' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-2092051249'/></entry><entry><id>tag:blogger.com,1999:blog-4126985520350746834.post-8111821801956050145</id><published>2008-09-12T14:24:00.000+01:00</published><updated>2008-09-12T14:24:00.000+01:00</updated><title type='text'>Dear Chris,&lt;br&gt;&lt;br&gt;I saw your response to Andris c...</title><content type='html'>Dear Chris,&lt;BR/&gt;&lt;BR/&gt;I saw your response to Andris concerning the update of content types.  I am trying to update a page layout, which requires the addition of new fields to the content type.  A completely new one, which needs to be added to the site columns xml and another field that already exists as a site column.  &lt;BR/&gt;&lt;BR/&gt;I was trying to do this by updating the original xml files and upgrading the solution and deactivating/activating the feature, which I now know to be completely wrong having read &lt;A HREF="http://msdn.microsoft.com/en-us/library/ms479975.aspx" REL="nofollow"&gt;this article from Microsoft&lt;/A&gt;.&lt;BR/&gt;&lt;BR/&gt;If I understand correctly my only options are Site Settings and the API.  Am I right to assume I can't create a new feature with a new xml containing just the updates to the content type with the ID referencing the parent?&lt;BR/&gt;&lt;BR/&gt;I don't really understand where to put any code as this cannot be done via the UI.&lt;BR/&gt;&lt;BR/&gt;Any assistance greatfully received.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4126985520350746834/4799881563058651131/comments/default/8111821801956050145'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4126985520350746834/4799881563058651131/comments/default/8111821801956050145'/><link rel='alternate' type='text/html' href='http://www.sharepointnutsandbolts.com/2007/04/deploying-content-types-as-feature.html?showComment=1221225840000#c8111821801956050145' title=''/><author><name>Anonymous</name><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.sharepointnutsandbolts.com/2007/04/deploying-content-types-as-feature.html' ref='tag:blogger.com,1999:blog-4126985520350746834.post-4799881563058651131' source='http://www.blogger.com/feeds/4126985520350746834/posts/default/4799881563058651131' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-700269170'/></entry><entry><id>tag:blogger.com,1999:blog-4126985520350746834.post-3952825564688268287</id><published>2008-09-05T14:55:00.000+01:00</published><updated>2008-09-05T14:55:00.000+01:00</updated><title type='text'>Hi Chris,Iam just trying to deploy a Site Collecti...</title><content type='html'>Hi Chris,Iam just trying to deploy a Site Collection Feature.(its a content type which was inheriting from another framework). I broke down the inheritance by changing the first few characters in the GUID to look like 0x0101 ie. for Document content type. When i try to deploy it says File Not Found error. Can you pls. throw some light?&lt;BR/&gt;Raj</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4126985520350746834/4799881563058651131/comments/default/3952825564688268287'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4126985520350746834/4799881563058651131/comments/default/3952825564688268287'/><link rel='alternate' type='text/html' href='http://www.sharepointnutsandbolts.com/2007/04/deploying-content-types-as-feature.html?showComment=1220622900000#c3952825564688268287' title=''/><author><name>raj</name><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.sharepointnutsandbolts.com/2007/04/deploying-content-types-as-feature.html' ref='tag:blogger.com,1999:blog-4126985520350746834.post-4799881563058651131' source='http://www.blogger.com/feeds/4126985520350746834/posts/default/4799881563058651131' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-496485220'/></entry><entry><id>tag:blogger.com,1999:blog-4126985520350746834.post-1465671585202125709</id><published>2008-09-02T02:07:00.000+01:00</published><updated>2008-09-02T02:07:00.000+01:00</updated><title type='text'>Hi Chris, thx for the great article.&lt;br&gt;I have a s...</title><content type='html'>Hi Chris, thx for the great article.&lt;BR/&gt;I have a small question.&lt;BR/&gt;&lt;BR/&gt;Can we deploy a Content Type as a feature with some extended settings like "Workflow settings" and "Information management policy settings"?&lt;BR/&gt;&lt;BR/&gt;Please explain me how to that. Thx</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4126985520350746834/4799881563058651131/comments/default/1465671585202125709'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4126985520350746834/4799881563058651131/comments/default/1465671585202125709'/><link rel='alternate' type='text/html' href='http://www.sharepointnutsandbolts.com/2007/04/deploying-content-types-as-feature.html?showComment=1220317620000#c1465671585202125709' title=''/><author><name>Madhawa</name><uri>http://www.blogger.com/profile/10549758428544639496</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.sharepointnutsandbolts.com/2007/04/deploying-content-types-as-feature.html' ref='tag:blogger.com,1999:blog-4126985520350746834.post-4799881563058651131' source='http://www.blogger.com/feeds/4126985520350746834/posts/default/4799881563058651131' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1413769982'/></entry><entry><id>tag:blogger.com,1999:blog-4126985520350746834.post-3204911288487265301</id><published>2008-04-12T15:45:00.000+01:00</published><updated>2008-04-12T15:45:00.000+01:00</updated><title type='text'>Hi,&lt;br&gt;&lt;br&gt;Unfortunately you'll need the IDs of th...</title><content type='html'>Hi,&lt;BR/&gt;&lt;BR/&gt;Unfortunately you'll need the IDs of the columns in order for the content type to reference them properly - no way around this AFAIK.&lt;BR/&gt;&lt;BR/&gt;In terms of how content type IDs work, the basic steps are covered above in the article (see 'The basics are' above), but the &lt;A HREF="http://msdn2.microsoft.com/en-us/library/aa543822.aspx" REL="nofollow"&gt;MSDN documentation on content type IDs&lt;/A&gt; has more details.&lt;BR/&gt;&lt;BR/&gt;HTH,&lt;BR/&gt;&lt;BR/&gt;Chris.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4126985520350746834/4799881563058651131/comments/default/3204911288487265301'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4126985520350746834/4799881563058651131/comments/default/3204911288487265301'/><link rel='alternate' type='text/html' href='http://www.sharepointnutsandbolts.com/2007/04/deploying-content-types-as-feature.html?showComment=1208011500000#c3204911288487265301' title=''/><author><name>Chris O'Brien</name><uri>http://www.blogger.com/profile/10022906552670607366</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.sharepointnutsandbolts.com/2007/04/deploying-content-types-as-feature.html' ref='tag:blogger.com,1999:blog-4126985520350746834.post-4799881563058651131' source='http://www.blogger.com/feeds/4126985520350746834/posts/default/4799881563058651131' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-2092051249'/></entry><entry><id>tag:blogger.com,1999:blog-4126985520350746834.post-3172118875122516142</id><published>2008-04-11T10:42:00.000+01:00</published><updated>2008-04-11T10:42:00.000+01:00</updated><title type='text'>Can we deloy a content type with a feature where w...</title><content type='html'>Can we deloy a content type with a feature where we only have the site column names but not the guids of the site columns.&lt;BR/&gt;&lt;BR/&gt;and another question is the id for a content type how do we generate that, is it a guid with no '-' 's in the middle?</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4126985520350746834/4799881563058651131/comments/default/3172118875122516142'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4126985520350746834/4799881563058651131/comments/default/3172118875122516142'/><link rel='alternate' type='text/html' href='http://www.sharepointnutsandbolts.com/2007/04/deploying-content-types-as-feature.html?showComment=1207906920000#c3172118875122516142' title=''/><author><name>Anonymous</name><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.sharepointnutsandbolts.com/2007/04/deploying-content-types-as-feature.html' ref='tag:blogger.com,1999:blog-4126985520350746834.post-4799881563058651131' source='http://www.blogger.com/feeds/4126985520350746834/posts/default/4799881563058651131' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1888476577'/></entry><entry><id>tag:blogger.com,1999:blog-4126985520350746834.post-565609137050032568</id><published>2008-03-24T19:56:00.000Z</published><updated>2008-03-24T19:56:00.000Z</updated><title type='text'>Ah OK - then in that case, get a reference to the ...</title><content type='html'>Ah OK - then in that case, get a reference to the list using code like:&lt;BR/&gt;&lt;BR/&gt;SPList list = site.AllWebs[sWebName].Lists[sListName];&lt;BR/&gt;&lt;BR/&gt;You'll need a reference to the SPSite object ("site" in the code above) and also the web and list names. Once you have the SPList object, just call SPList.ID to get the ID - no unencoding is required when getting the ID in code.&lt;BR/&gt;&lt;BR/&gt;HTH,&lt;BR/&gt;&lt;BR/&gt;Chris.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4126985520350746834/4799881563058651131/comments/default/565609137050032568'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4126985520350746834/4799881563058651131/comments/default/565609137050032568'/><link rel='alternate' type='text/html' href='http://www.sharepointnutsandbolts.com/2007/04/deploying-content-types-as-feature.html?showComment=1206388560000#c565609137050032568' title=''/><author><name>Chris O'Brien</name><uri>http://www.blogger.com/profile/10022906552670607366</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.sharepointnutsandbolts.com/2007/04/deploying-content-types-as-feature.html' ref='tag:blogger.com,1999:blog-4126985520350746834.post-4799881563058651131' source='http://www.blogger.com/feeds/4126985520350746834/posts/default/4799881563058651131' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-2092051249'/></entry><entry><id>tag:blogger.com,1999:blog-4126985520350746834.post-4534219211691576958</id><published>2008-03-24T16:12:00.000Z</published><updated>2008-03-24T16:12:00.000Z</updated><title type='text'>Thanks Chris but I need to do this programmaticall...</title><content type='html'>Thanks Chris but I need to do this programmatically. Is there a way?</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4126985520350746834/4799881563058651131/comments/default/4534219211691576958'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4126985520350746834/4799881563058651131/comments/default/4534219211691576958'/><link rel='alternate' type='text/html' href='http://www.sharepointnutsandbolts.com/2007/04/deploying-content-types-as-feature.html?showComment=1206375120000#c4534219211691576958' title=''/><author><name>fromonesource</name><uri>http://www.blogger.com/profile/09411905142752376982</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.sharepointnutsandbolts.com/2007/04/deploying-content-types-as-feature.html' ref='tag:blogger.com,1999:blog-4126985520350746834.post-4799881563058651131' source='http://www.blogger.com/feeds/4126985520350746834/posts/default/4799881563058651131' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-824322537'/></entry><entry><id>tag:blogger.com,1999:blog-4126985520350746834.post-8119713388866906234</id><published>2008-03-24T15:38:00.000Z</published><updated>2008-03-24T15:38:00.000Z</updated><title type='text'>Hi Adam, &lt;br&gt;&lt;br&gt;To get the GUID of a list, go the...</title><content type='html'>Hi Adam, &lt;BR/&gt;&lt;BR/&gt;To get the GUID of a list, go the list's settings page. The GUID will then be shown in the URL, you'll see something like:&lt;BR/&gt;&lt;BR/&gt;/_layouts/listedit.aspx?List=%7B72201421%2D14DC%2D4E71%2DA553%2D65BA1AA22881%7D&lt;BR/&gt;&lt;BR/&gt;You can then perform the following replacements:&lt;BR/&gt;&lt;BR/&gt;%7B with left brace ({)&lt;BR/&gt;%7D with right brace (})&lt;BR/&gt;%2D with dash (-)&lt;BR/&gt;&lt;BR/&gt;You'll then have the unencoded form of the list's GUID.&lt;BR/&gt;&lt;BR/&gt;HTH,&lt;BR/&gt;&lt;BR/&gt;Chris.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4126985520350746834/4799881563058651131/comments/default/8119713388866906234'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4126985520350746834/4799881563058651131/comments/default/8119713388866906234'/><link rel='alternate' type='text/html' href='http://www.sharepointnutsandbolts.com/2007/04/deploying-content-types-as-feature.html?showComment=1206373080000#c8119713388866906234' title=''/><author><name>Chris O'Brien</name><uri>http://www.blogger.com/profile/10022906552670607366</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.sharepointnutsandbolts.com/2007/04/deploying-content-types-as-feature.html' ref='tag:blogger.com,1999:blog-4126985520350746834.post-4799881563058651131' source='http://www.blogger.com/feeds/4126985520350746834/posts/default/4799881563058651131' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-2092051249'/></entry><entry><id>tag:blogger.com,1999:blog-4126985520350746834.post-4234683816288576691</id><published>2008-03-23T16:46:00.000Z</published><updated>2008-03-23T16:46:00.000Z</updated><title type='text'>Chris,&lt;br&gt;&lt;br&gt;I need to get the GUID of a list giv...</title><content type='html'>Chris,&lt;BR/&gt;&lt;BR/&gt;I need to get the GUID of a list given a URL such as http://server/site/list/Lists/AllItems.aspx&lt;BR/&gt;&lt;BR/&gt;Is there a way to do this? When I try to get the ID of a URL I get an error : "Value does not fall within the expected range"&lt;BR/&gt;&lt;BR/&gt;Please help :)&lt;BR/&gt;&lt;BR/&gt;-Adam</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4126985520350746834/4799881563058651131/comments/default/4234683816288576691'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4126985520350746834/4799881563058651131/comments/default/4234683816288576691'/><link rel='alternate' type='text/html' href='http://www.sharepointnutsandbolts.com/2007/04/deploying-content-types-as-feature.html?showComment=1206290760000#c4234683816288576691' title=''/><author><name>fromonesource</name><uri>http://www.blogger.com/profile/09411905142752376982</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.sharepointnutsandbolts.com/2007/04/deploying-content-types-as-feature.html' ref='tag:blogger.com,1999:blog-4126985520350746834.post-4799881563058651131' source='http://www.blogger.com/feeds/4126985520350746834/posts/default/4799881563058651131' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-824322537'/></entry><entry><id>tag:blogger.com,1999:blog-4126985520350746834.post-3894563068226758335</id><published>2008-03-14T12:55:00.000Z</published><updated>2008-03-14T12:55:00.000Z</updated><title type='text'>Obieg,&lt;br&gt;&lt;br&gt;Have a look at &lt;a href="http://share...</title><content type='html'>Obieg,&lt;BR/&gt;&lt;BR/&gt;Have a look at &lt;A HREF="http://sharepointnutsandbolts.blogspot.com/2007/04/creating-list-based-site-columns-as.html" REL="nofollow"&gt;Creating lookup columns as a Feature&lt;/A&gt;.&lt;BR/&gt;&lt;BR/&gt;Thanks,&lt;BR/&gt;&lt;BR/&gt;Chris.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4126985520350746834/4799881563058651131/comments/default/3894563068226758335'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4126985520350746834/4799881563058651131/comments/default/3894563068226758335'/><link rel='alternate' type='text/html' href='http://www.sharepointnutsandbolts.com/2007/04/deploying-content-types-as-feature.html?showComment=1205499300000#c3894563068226758335' title=''/><author><name>Chris O'Brien</name><uri>http://www.blogger.com/profile/10022906552670607366</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.sharepointnutsandbolts.com/2007/04/deploying-content-types-as-feature.html' ref='tag:blogger.com,1999:blog-4126985520350746834.post-4799881563058651131' source='http://www.blogger.com/feeds/4126985520350746834/posts/default/4799881563058651131' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-2092051249'/></entry><entry><id>tag:blogger.com,1999:blog-4126985520350746834.post-2389196418900676653</id><published>2008-03-12T23:09:00.000Z</published><updated>2008-03-12T23:09:00.000Z</updated><title type='text'>Hi, thanks for a very nice article. Could you post...</title><content type='html'>Hi, thanks for a very nice article. Could you post an example of deploying lookup fields in a CAML feature?</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4126985520350746834/4799881563058651131/comments/default/2389196418900676653'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4126985520350746834/4799881563058651131/comments/default/2389196418900676653'/><link rel='alternate' type='text/html' href='http://www.sharepointnutsandbolts.com/2007/04/deploying-content-types-as-feature.html?showComment=1205363340000#c2389196418900676653' title=''/><author><name>Obieg Dokumentow</name><uri>www.it-dev.pl</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.sharepointnutsandbolts.com/2007/04/deploying-content-types-as-feature.html' ref='tag:blogger.com,1999:blog-4126985520350746834.post-4799881563058651131' source='http://www.blogger.com/feeds/4126985520350746834/posts/default/4799881563058651131' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-2051811408'/></entry><entry><id>tag:blogger.com,1999:blog-4126985520350746834.post-5104290962874300496</id><published>2008-01-28T22:28:00.000Z</published><updated>2008-01-28T22:28:00.000Z</updated><title type='text'>Hi Andris,&lt;br&gt;&lt;br&gt;Sorry for the late reply. Conten...</title><content type='html'>Hi Andris,&lt;BR/&gt;&lt;BR/&gt;Sorry for the late reply. Content types aren't explicitly versioned as such, and managing content type updates can be complex. In actual fact this shouldn't be done by changing the Feature XML, but by using the standard screens or the API instead. Suggest the latter is a good approach (e.g. in a Feature receiver) if you want your changes to be easily replicated across different environments.&lt;BR/&gt;&lt;BR/&gt;The MSDN documentation has some good reading on this - see:&lt;BR/&gt;&lt;BR/&gt;- &lt;A HREF="http://msdn2.microsoft.com/en-us/library/aa543504.aspx" REL="nofollow"&gt;Updating content types&lt;/A&gt;&lt;BR/&gt;- &lt;A HREF="http://msdn2.microsoft.com/en-us/library/ms442695.aspx" REL="nofollow"&gt;Updating child content types&lt;/A&gt;&lt;BR/&gt;- &lt;A HREF="http://msdn2.microsoft.com/en-us/library/ms434692.aspx" REL="nofollow"&gt;Content type change control&lt;/A&gt;&lt;BR/&gt;&lt;BR/&gt;If something's still unclear and you think I can help, drop me another comment.&lt;BR/&gt;&lt;BR/&gt;HTH,&lt;BR/&gt;&lt;BR/&gt;Chris.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4126985520350746834/4799881563058651131/comments/default/5104290962874300496'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4126985520350746834/4799881563058651131/comments/default/5104290962874300496'/><link rel='alternate' type='text/html' href='http://www.sharepointnutsandbolts.com/2007/04/deploying-content-types-as-feature.html?showComment=1201559280000#c5104290962874300496' title=''/><author><name>Chris O'Brien</name><uri>http://www.blogger.com/profile/10022906552670607366</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.sharepointnutsandbolts.com/2007/04/deploying-content-types-as-feature.html' ref='tag:blogger.com,1999:blog-4126985520350746834.post-4799881563058651131' source='http://www.blogger.com/feeds/4126985520350746834/posts/default/4799881563058651131' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-2092051249'/></entry><entry><id>tag:blogger.com,1999:blog-4126985520350746834.post-8680574532159709534</id><published>2008-01-23T19:00:00.000Z</published><updated>2008-01-23T19:00:00.000Z</updated><title type='text'>Hi, Chris,&lt;br&gt;&lt;br&gt;How does content type versioning...</title><content type='html'>Hi, Chris,&lt;BR/&gt;&lt;BR/&gt;How does content type versioning work? I've created content type for news pages, added some news - so far everything is fine. Now when I change some column type in content type feature and deploy it - old news throw exception ...</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4126985520350746834/4799881563058651131/comments/default/8680574532159709534'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4126985520350746834/4799881563058651131/comments/default/8680574532159709534'/><link rel='alternate' type='text/html' href='http://www.sharepointnutsandbolts.com/2007/04/deploying-content-types-as-feature.html?showComment=1201114800000#c8680574532159709534' title=''/><author><name>Andris</name><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.sharepointnutsandbolts.com/2007/04/deploying-content-types-as-feature.html' ref='tag:blogger.com,1999:blog-4126985520350746834.post-4799881563058651131' source='http://www.blogger.com/feeds/4126985520350746834/posts/default/4799881563058651131' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-225357816'/></entry><entry><id>tag:blogger.com,1999:blog-4126985520350746834.post-2252572838860419574</id><published>2008-01-06T21:11:00.000Z</published><updated>2008-01-06T21:11:00.000Z</updated><title type='text'>Hi Amit,&lt;br&gt;&lt;br&gt;Interesting scenario. Yes, if your...</title><content type='html'>Hi Amit,&lt;BR/&gt;&lt;BR/&gt;Interesting scenario. Yes, if your content type IDs do not have the same stem (beginning part) because they were creating using the UI, it won't be easy to create child content types with a Feature. &lt;BR/&gt;&lt;BR/&gt;There is one way though. What you could do is create the content types using the API, but write the code as part of a Feature receiver (as opposed to just running it against your SharePoint instance with a console app for example). This would allow you to use Feature activation/deactivation etc. but use code to have full control over the content type creation. Using this technique, you could use the API to 'ask' what the content type ID is for that content type/site collection, then add the suffix onto the end to generate the ID for the child content type.&lt;BR/&gt;&lt;BR/&gt;HTH,&lt;BR/&gt;&lt;BR/&gt;Chris.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4126985520350746834/4799881563058651131/comments/default/2252572838860419574'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4126985520350746834/4799881563058651131/comments/default/2252572838860419574'/><link rel='alternate' type='text/html' href='http://www.sharepointnutsandbolts.com/2007/04/deploying-content-types-as-feature.html?showComment=1199653860000#c2252572838860419574' title=''/><author><name>Chris O'Brien</name><uri>http://www.blogger.com/profile/10022906552670607366</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.sharepointnutsandbolts.com/2007/04/deploying-content-types-as-feature.html' ref='tag:blogger.com,1999:blog-4126985520350746834.post-4799881563058651131' source='http://www.blogger.com/feeds/4126985520350746834/posts/default/4799881563058651131' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-2092051249'/></entry><entry><id>tag:blogger.com,1999:blog-4126985520350746834.post-4402550377114656172</id><published>2008-01-02T12:22:00.000Z</published><updated>2008-01-02T12:22:00.000Z</updated><title type='text'>Hi,&lt;br&gt;&lt;br&gt;I have a problem related to Content Typ...</title><content type='html'>Hi,&lt;BR/&gt;&lt;BR/&gt;I have a problem related to Content Type Id generation. Consider the following scenario:&lt;BR/&gt; 1) My farm contains 3 Site Collections.&lt;BR/&gt; 2) On each site Collection i have a content type names 'xyz' created using Sharepoint UI. As per my knowledge (i am new to Sharepoint), content type Id will be unique throughput Site Collection. So the 3 instances of 'xyz' (from each Site Collection) will have 3 different Ids (and they are).&lt;BR/&gt; 3) Now I want to create a new Content Type 'abc' under the 'xyz' using a Feature.&lt;BR/&gt; 4) I am confused with the Content Type Id attribute in my ContentType.xml. Since the 'xyz' on each Site Collection will have 3 different Ids, through which Id should I create the new Id? And what will happen with other Site Collection's 'xyz'?&lt;BR/&gt;&lt;BR/&gt;Please help me.&lt;BR/&gt;&lt;BR/&gt;Thanks in advance.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4126985520350746834/4799881563058651131/comments/default/4402550377114656172'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4126985520350746834/4799881563058651131/comments/default/4402550377114656172'/><link rel='alternate' type='text/html' href='http://www.sharepointnutsandbolts.com/2007/04/deploying-content-types-as-feature.html?showComment=1199276520000#c4402550377114656172' title=''/><author><name>Amit Kulkarni</name><uri>http://www.blogger.com/profile/14103331951113323059</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.sharepointnutsandbolts.com/2007/04/deploying-content-types-as-feature.html' ref='tag:blogger.com,1999:blog-4126985520350746834.post-4799881563058651131' source='http://www.blogger.com/feeds/4126985520350746834/posts/default/4799881563058651131' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1264673232'/></entry><entry><id>tag:blogger.com,1999:blog-4126985520350746834.post-4264717619423889074</id><published>2007-12-14T10:51:00.000Z</published><updated>2007-12-14T10:51:00.000Z</updated><title type='text'>Hi Arun,&lt;br&gt;&lt;br&gt;Yes, you can use the API to remove...</title><content type='html'>Hi Arun,&lt;BR/&gt;&lt;BR/&gt;Yes, you can use the API to remove a content type from a list, but it will only work if the content type is not in use. The call to make would be SPList.ContentTypes.Delete().&lt;BR/&gt;&lt;BR/&gt;Note also that you don't &lt;I&gt;need&lt;/I&gt; to use code to associate a content type with a list - it can be done in Feature XML using the ContentTypeBinding element as described in earlier comments - see &lt;A HREF="http://msdn2.microsoft.com/en-US/library/aa543152.aspx" REL="nofollow"&gt;http://msdn2.microsoft.com/en-US/library/aa543152.aspx&lt;/A&gt; for more information.&lt;BR/&gt;&lt;BR/&gt;HTH,&lt;BR/&gt;&lt;BR/&gt;Chris.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4126985520350746834/4799881563058651131/comments/default/4264717619423889074'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4126985520350746834/4799881563058651131/comments/default/4264717619423889074'/><link rel='alternate' type='text/html' href='http://www.sharepointnutsandbolts.com/2007/04/deploying-content-types-as-feature.html?showComment=1197629460000#c4264717619423889074' title=''/><author><name>Chris O'Brien</name><uri>http://www.blogger.com/profile/10022906552670607366</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.sharepointnutsandbolts.com/2007/04/deploying-content-types-as-feature.html' ref='tag:blogger.com,1999:blog-4126985520350746834.post-4799881563058651131' source='http://www.blogger.com/feeds/4126985520350746834/posts/default/4799881563058651131' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-2092051249'/></entry></feed>
