<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>SPSherm.MyBlog &#187; ContentTypeID</title>
	<atom:link href="http://spsherm.uptempoconsulting.com/tag/contenttypeid/feed/" rel="self" type="application/rss+xml" />
	<link>http://spsherm.uptempoconsulting.com</link>
	<description>SharePoint, of course.</description>
	<lastBuildDate>Mon, 03 Oct 2011 03:01:40 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>ContentTypeID Syntax/Structure</title>
		<link>http://spsherm.uptempoconsulting.com/2008/02/contenttypeid-syntaxstructure/</link>
		<comments>http://spsherm.uptempoconsulting.com/2008/02/contenttypeid-syntaxstructure/#comments</comments>
		<pubDate>Wed, 06 Feb 2008 22:24:16 +0000</pubDate>
		<dc:creator>Sherman</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[SP2007]]></category>
		<category><![CDATA[ContentTypeID]]></category>

		<guid isPermaLink="false">http://spsherm.uptempoconsulting.com/?p=141</guid>
		<description><![CDATA[There is a more efficient way to do content type IDS than we have done in the past: http://msdn2.microsoft.com/en-us/library/aa543822.aspx Say we wanted to inherit from &#8220;Page&#8221;, our content type used to look something this (I&#8217;ve split up the lines so it will display properly): 0x010100C568DB52D9D0A14D9B2FDCC96666E9F2007948130EC3DB064584E219954237AF3900 188024C0FF7F45CFB85EBB43980DACF5 Meaning, inherit from &#8220;Page&#8221; (the red part), include a [...]]]></description>
			<content:encoded><![CDATA[<p>There is a more efficient way to do content type IDS than we have done in the past: <a title="http://msdn2.microsoft.com/en-us/library/aa543822.aspx" href="http://msdn2.microsoft.com/en-us/library/aa543822.aspx" target="_blank">http://msdn2.microsoft.com/en-us/library/aa543822.aspx</a></p>
<p>Say we wanted to inherit from &#8220;Page&#8221;, our content type used to look something this (I&#8217;ve split up the lines so it will display properly):</p>
<pre><span style="color: #ff0000;">0x010100C568DB52D9D0A14D9B2FDCC96666E9F2007948130EC3DB064584E219954237AF39</span><strong>00</strong>
<span style="color: #0000ff;">188024C0FF7F45CFB85EBB43980DACF5</span></pre>
<p>Meaning, inherit from &#8220;Page&#8221; (the red part), include a delimiter (<strong>00</strong>), and then append a GUID.</p>
<p>If we then wanted to extend this content type, we could do this:</p>
<pre><span style="color: #ff0000;">0x010100C568DB52D9D0A14D9B2FDCC96666E9F2007948130EC3DB064584E219954237AF39</span><strong>00</strong>
<span style="color: #0000ff;">188024C0FF7F45CFB85EBB43980DACF5<strong><span style="color: #000000;">00</span></strong>DFA39D91C06D48BDBC415E7CE80A95CD</span></pre>
<p>And so on&#8230; You can imagine how hairy-scary the ContentTypeIDs can get if you wanted your inheritance to go a few levels deep.</p>
<p>As per the article, there is a more efficient way; the second ContentTypeID above could become:</p>
<pre><span style="color: #ff0000;">0x010100C568DB52D9D0A14D9B2FDCC96666E9F2007948130EC3DB064584E219954237AF39</span><strong>00</strong>
<span style="color: #0000ff;">188024C0FF7F45CFB85EBB43980DACF5<strong><span style="color: #ff6600;">01</span></strong></span></pre>
<p>Where the tail <strong>01 </strong>is the extended content type. Thus, we could have:</p>
<pre><span style="color: #ff0000;">0x010100C568DB52D9D0A14D9B2FDCC96666E9F2007948130EC3DB064584E219954237AF39</span><strong>00</strong>
<span style="color: #0000ff;">188024C0FF7F45CFB85EBB43980DACF5<strong><span style="color: #ff6600;">01</span></strong></span>
<span style="color: #ff0000;">0x010100C568DB52D9D0A14D9B2FDCC96666E9F2007948130EC3DB064584E219954237AF39</span><strong>00</strong>
<span style="color: #0000ff;">188024C0FF7F45CFB85EBB43980DACF5<strong><span style="color: #ff6600;">02</span></strong></span>
<span style="color: #ff0000;">0x010100C568DB52D9D0A14D9B2FDCC96666E9F2007948130EC3DB064584E219954237AF39</span><strong>00</strong>
<span style="color: #0000ff;">188024C0FF7F45CFB85EBB43980DACF5<strong><span style="color: #ff6600;">03</span></strong></span></pre>
<p>etc.</p>
<p>And then to extend from either of these:</p>
<pre><span style="color: #ff0000;">0x010100C568DB52D9D0A14D9B2FDCC96666E9F2007948130EC3DB064584E219954237AF39</span><strong>00</strong>
<span style="color: #0000ff;">188024C0FF7F45CFB85EBB43980DACF5<strong><span style="color: #ff6600;">01<span style="color: #00ff00;">01</span></span></strong></span>
<span style="color: #ff0000;">0x010100C568DB52D9D0A14D9B2FDCC96666E9F2007948130EC3DB064584E219954237AF39</span><strong>00</strong>
<span style="color: #0000ff;">188024C0FF7F45CFB85EBB43980DACF5<strong><span style="color: #ff6600;">01<span style="color: #00ff00;">02</span></span></strong></span>
<span style="color: #ff0000;">0x010100C568DB52D9D0A14D9B2FDCC96666E9F2007948130EC3DB064584E219954237AF39</span><strong>00</strong>
<span style="color: #0000ff;">188024C0FF7F45CFB85EBB43980DACF5<strong><span style="color: #ff6600;">02<span style="color: #00ff00;">01</span></span></strong></span></pre>
<p>etc.</p>
<p>IMO, this makes the ContentTypeIDs much easier to work with (and read), and we run less risk of running into URL length issues within SharePoint.</p>
<p>PS. The GUIDs used in the above examples have been changed to protect the coder. Any resemblance to any existing ContentTypeIDs are purely coincidental.</p>
]]></content:encoded>
			<wfw:commentRss>http://spsherm.uptempoconsulting.com/2008/02/contenttypeid-syntaxstructure/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

