You will notice that as you are looking through your new publishing masterpages and page layouts, there is a new control in there all over the place called the UIVersionedContent [1] control:

<SharePointWebControls:UIVersionedContent UIVersion="3" runat="server">
    <ContentTemplate>

<SharePointWebControls:CssRegistration name="<% $SPUrl:~sitecollection/Style

Library/~language/Core Styles/pageLayouts.css %>" runat="server"/>

        <PublishingWebControls:editmodepanel runat="server" id="editmodestyles">
            <!-- Styles for edit mode only-->

<SharePointWebControls:CssRegistration name="

<% $SPUrl:~sitecollection/Style Library/~language/Core Styles/zz2_editMode.css %>"

runat="server"/>

        </PublishingWebControls:editmodepanel>
    </ContentTemplate>
</SharePointWebControls:UIVersionedContent>
<SharePointWebControls:UIVersionedContent UIVersion="4" runat="server">
    <ContentTemplate>

<SharePointWebControls:CssRegistration name="<% $SPUrl:~sitecollection/Style

Library/~language/Core Styles/page-layouts-21.css %>" runat="server"/>

        <PublishingWebControls:EditModePanel runat="server">
            <!-- Styles for edit mode only-->

<SharePointWebControls:CssRegistration name="

<% $SPUrl:~sitecollection/Style Library/~language/Core Styles/edit-mode-21.css %>"

After="<% $SPUrl:~sitecollection/Style Library/~language/

Core Styles/page-layouts-21.css %>" runat="server"/>

        </PublishingWebControls:EditModePanel>
    </ContentTemplate>
</SharePointWebControls:UIVersionedContent>

I could be wrong but what Microsoft has done is created this control in order to help with backwards compatibility when upgrading to SharePoint 2010 from MOSS 2007. 

The UIVersion=”4” or UIVersion=”3” property indicates whether the content that is encapsulated within this control are consequentially rendered for SharePoint 2010 created content or SharePoint 2007 created content (that has been upgraded to 2010).

In the page layout, it was very confusing as to which content I should be editing to appear in my customized page layout and furthermore it made the design view in SharePoint Designer 2010 to look very ugly, so for my purposes, I haven’t upgraded from SharePoint 2007, so I just deleted any control that was referencing UIVersion=”3”.

 

[1] http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.webcontrols.uiversionedcontent(office.14).aspx

Leave a Reply

Your email address will not be published. Required fields are marked *