<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://www.dotnetmafia.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Corey Roth [MVP] : SharePoint Online, ECM</title><link>http://www.dotnetmafia.com/blogs/dotnettipoftheday/archive/tags/SharePoint+Online/ECM/default.aspx</link><description>Tags: SharePoint Online, ECM</description><dc:language>en</dc:language><generator>CommunityServer 2007.1 (Build: 20917.1142)</generator><item><title>A quick look at the content type editor in Visual Studio 11</title><link>http://www.dotnetmafia.com/blogs/dotnettipoftheday/archive/2012/02/06/a-quick-look-at-the-content-type-editor-in-visual-studio-11.aspx</link><pubDate>Mon, 06 Feb 2012 16:52:10 GMT</pubDate><guid isPermaLink="false">ceb7fe2a-c56b-4d85-99e6-8dd548580538:5508</guid><dc:creator>CoreyRoth</dc:creator><slash:comments>2</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://www.dotnetmafia.com/blogs/dotnettipoftheday/rsscomments.aspx?PostID=5508</wfw:commentRss><comments>http://www.dotnetmafia.com/blogs/dotnettipoftheday/archive/2012/02/06/a-quick-look-at-the-content-type-editor-in-visual-studio-11.aspx#comments</comments><description>&lt;p&gt;Visual Studio 11 introduces a new content type editor that you might find useful when building your next content type.&amp;#160; It starts with a SharePoint Project Item that you can pick from the New Item menu.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://www.dotnetmafia.com/blogs/dotnettipoftheday/VS11DPContentTypeSPI_0B0D976D.png"&gt;&lt;img style="background-image:none;border-bottom:0px;border-left:0px;padding-left:0px;padding-right:0px;display:inline;border-top:0px;border-right:0px;padding-top:0px;" title="VS11DPContentTypeSPI" border="0" alt="VS11DPContentTypeSPI" src="http://www.dotnetmafia.com/blogs/dotnettipoftheday/VS11DPContentTypeSPI_thumb_022D6954.png" width="591" height="353" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;From this screen, give your new content type a name and then you’ll be presented with this next screen allowing you to pick a content type to inherit from.&amp;#160; This pulls a list of every content type currently on the site collection that you have your Visual Studio project associated with.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://www.dotnetmafia.com/blogs/dotnettipoftheday/VS11DPContentTypeInherit_7B6A3A03.png"&gt;&lt;img style="background-image:none;border-bottom:0px;border-left:0px;padding-left:0px;padding-right:0px;display:inline;border-top:0px;border-right:0px;padding-top:0px;" title="VS11DPContentTypeInherit" border="0" alt="VS11DPContentTypeInherit" src="http://www.dotnetmafia.com/blogs/dotnettipoftheday/VS11DPContentTypeInherit_thumb_5A76C75C.png" width="427" height="341" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;Pick the content type you want to inherit from and you will then see the new content type editor.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://www.dotnetmafia.com/blogs/dotnettipoftheday/VS11DPContentTypeEditor1_3264183D.png"&gt;&lt;img style="background-image:none;border-bottom:0px;border-left:0px;padding-left:0px;padding-right:0px;display:inline;border-top:0px;border-right:0px;padding-top:0px;" title="VS11DPContentTypeEditor1" border="0" alt="VS11DPContentTypeEditor1" src="http://www.dotnetmafia.com/blogs/dotnettipoftheday/VS11DPContentTypeEditor1_thumb_38AAEECB.png" width="432" height="143" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;From here you can begin adding exiting site columns to your new content type.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://www.dotnetmafia.com/blogs/dotnettipoftheday/VS11DPContentTypeEditor2_29940FF1.png"&gt;&lt;img style="background-image:none;border-bottom:0px;border-left:0px;padding-left:0px;padding-right:0px;display:inline;border-top:0px;border-right:0px;padding-top:0px;" title="VS11DPContentTypeEditor2" border="0" alt="VS11DPContentTypeEditor2" src="http://www.dotnetmafia.com/blogs/dotnettipoftheday/VS11DPContentTypeEditor2_thumb_219C6D8F.png" width="438" height="297" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;Selecting one will bring over the type automatically.&amp;#160; Unfortunately the only option you get here is whether the column is required or not.&amp;#160; However, you can click on the elements.xml file in the solution explorer to edit the XML directly.&amp;#160; I’ve tested and it will preserve any additional attributes you add to your site column references there.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://www.dotnetmafia.com/blogs/dotnettipoftheday/VS11ContentTypeEditorXml_6E603425.png"&gt;&lt;img style="background-image:none;border-bottom:0px;border-left:0px;padding-left:0px;padding-right:0px;display:inline;border-top:0px;border-right:0px;padding-top:0px;" title="VS11ContentTypeEditorXml" border="0" alt="VS11ContentTypeEditorXml" src="http://www.dotnetmafia.com/blogs/dotnettipoftheday/VS11ContentTypeEditorXml_thumb_548BFDF6.png" width="458" height="172" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;You might be wondering what about site columns that have not been created yet.&amp;#160; The editor is actually smart and knows to look at any site columns defined in the same project as well.&amp;#160; For example, I created this new site column below.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://www.dotnetmafia.com/blogs/dotnettipoftheday/VS11DPSiteColumnEditor_45751F1C.png"&gt;&lt;img style="background-image:none;border-bottom:0px;border-left:0px;padding-left:0px;padding-right:0px;display:inline;border-top:0px;border-right:0px;padding-top:0px;" title="VS11DPSiteColumnEditor" border="0" alt="VS11DPSiteColumnEditor" src="http://www.dotnetmafia.com/blogs/dotnettipoftheday/VS11DPSiteColumnEditor_thumb_1DCEA2F2.png" width="400" height="181" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;Unfortunately, creating site columns still requires XML, but Visual Studio at least gets you started.&amp;#160; After you save your new site column, you will find the site column in the list.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://www.dotnetmafia.com/blogs/dotnettipoftheday/VS11DPContentTypeEditor3_15D70090.png"&gt;&lt;img style="background-image:none;border-bottom:0px;border-left:0px;padding-left:0px;padding-right:0px;display:inline;border-top:0px;border-right:0px;padding-top:0px;" title="VS11DPContentTypeEditor3" border="0" alt="VS11DPContentTypeEditor3" src="http://www.dotnetmafia.com/blogs/dotnettipoftheday/VS11DPContentTypeEditor3_thumb_42EBED5E.png" width="432" height="197" /&gt;&lt;/a&gt;&lt;/p&gt;    &lt;p&gt;You can also set some of the common properties such as the group and description of the content type itself by clicking on &lt;em&gt;Common Properties&lt;/em&gt;.&amp;#160; &lt;/p&gt;  &lt;p&gt;&lt;a href="http://www.dotnetmafia.com/blogs/dotnettipoftheday/VS11ContentTypeEditorCommon_3AF44AFC.png"&gt;&lt;img style="background-image:none;border-bottom:0px;border-left:0px;padding-left:0px;padding-right:0px;display:inline;border-top:0px;border-right:0px;padding-top:0px;" title="VS11ContentTypeEditorCommon" border="0" alt="VS11ContentTypeEditorCommon" src="http://www.dotnetmafia.com/blogs/dotnettipoftheday/VS11ContentTypeEditorCommon_thumb_212014CD.png" width="447" height="307" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;What about inheriting from your own content type in the same project?&amp;#160; That actually works as well.&amp;#160; However, you will have to look for it at the top of the content type list.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://www.dotnetmafia.com/blogs/dotnettipoftheday/VS11DPContentTypeInherit2_3F1E22C1.png"&gt;&lt;img style="background-image:none;border-bottom:0px;border-left:0px;padding-left:0px;padding-right:0px;display:inline;border-top:0px;border-right:0px;padding-top:0px;" title="VS11DPContentTypeInherit2" border="0" alt="VS11DPContentTypeInherit2" src="http://www.dotnetmafia.com/blogs/dotnettipoftheday/VS11DPContentTypeInherit2_thumb_6C330F8F.png" width="452" height="174" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;That’s a quick look at what Visual Studio offers for content type editing.&amp;#160; I think the SharePoint Designer still has a few more features, but the main difference is what you create here can actually be deployed elsewhere.&amp;#160; This will work with SharePoint Online as well.&amp;#160; Just use the new &lt;a href="http://www.dotnetmafia.com/blogs/dotnettipoftheday/archive/2012/01/10/how-to-use-visual-studio-11-to-publish-solutions-to-sharepoint-online.aspx"&gt;publish&lt;/a&gt; feature I have talked about earlier.&lt;/p&gt;  &lt;p&gt;For more information on Visual Studio 11, go to the &lt;a href="http://msdn.microsoft.com/en-us/vstudio/hh127353"&gt;Developer Preview&lt;/a&gt; site.&lt;/p&gt;&lt;img src="http://www.dotnetmafia.com/aggbug.aspx?PostID=5508" width="1" height="1"&gt;</description><category domain="http://www.dotnetmafia.com/blogs/dotnettipoftheday/archive/tags/SharePoint/default.aspx">SharePoint</category><category domain="http://www.dotnetmafia.com/blogs/dotnettipoftheday/archive/tags/Content+Type/default.aspx">Content Type</category><category domain="http://www.dotnetmafia.com/blogs/dotnettipoftheday/archive/tags/SharePoint+2010/default.aspx">SharePoint 2010</category><category domain="http://www.dotnetmafia.com/blogs/dotnettipoftheday/archive/tags/ECM/default.aspx">ECM</category><category domain="http://www.dotnetmafia.com/blogs/dotnettipoftheday/archive/tags/SharePoint+Online/default.aspx">SharePoint Online</category><category domain="http://www.dotnetmafia.com/blogs/dotnettipoftheday/archive/tags/Visual+Studio+11/default.aspx">Visual Studio 11</category></item></channel></rss>