Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

We're having a problem with Designer adding the following block of code to the end of a page template. We can delete it and save the template, but the next time we open it, the code's been re-added. Has anyone seen this before?

<WebPartPages:WebPartZone runat="server" ID="__WebPartPageLibraryZone__"><ZoneTemplate>
<PublishingWebControls:TableOfContentsWebPart runat="server" Description="" AllowEdit="True" PartOrder="1" AllowRemove="True" IsVisible="True" ConnectionID="00000000-0000-0000-0000-000000000000" AllowHide="True" UseSQLDataSourcePaging="True" ExportControlledProperties="True" DataSourceID="" Title="Table of Contents" ZoneID="__WebPartPageLibraryZone__" NoDefaultStyle="" AllowConnect="True" FrameState="Normal" ExportMode="All" Dir="Default" DetailLink="" HelpLink="/_layouts/help.aspx" ShowWithSampleData="False" PageSize="-1" HelpUrl="/_layouts/help.aspx" FrameType="None" PartImageSmall="" PartImageLarge="" IsIncluded="False" SuppressWebPartChrome="False" ChromeType="None" AllowMinimize="True" ViewContentTypeId="" HelpMode="Modeless" MissingAssembly="Cannot import this Web Part." ID="g_1ce30ea4_1918_4b6d_abda_9e771a9200c4" AnchorLocation="/Bacs" AllowZoneChange="True" IsIncludedFilter="" __MarkupType="vsattributemarkup" __WebPartId="{1CE30EA4-1918-4B6D-ABDA-9E771A9200C4}" WebPart="true" Height="" Width=""><DataFields>
</DataFields>
<SampleData>    
<Levels>
                      <Level LevelNumber="1" Path="/Site1" Title="Site 1" BeginColumn="true" >
                        <Item LevelNumber="1" Path="/Page1" Title="Page 1" />
                        <Item LevelNumber="1" Path="/Page2" Title="Page 2" />
                        <Item LevelNumber="1" Path="/Page3" Title="Page 3" />
                      </Level>
                      <Level LevelNumber="1" Path="/Site2" Title="Site 2" BeginColumn="true" >
                        <Item LevelNumber="1" Path="/Page1" Title="Page 1" />
                        <Item LevelNumber="1" Path="/Page2" Title="Page 2" />
                        <Item LevelNumber="1" Path="/Page3" Title="Page 3" />
                      </Level>
                    </Levels></SampleData>
<Xsl>
<xsl:stylesheet xmlns:x="http://www.w3.org/2001/XMLSchema" version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:cmswrt="http://schemas.microsoft.com/WebPart/v3/Publishing/runtime" exclude-result-prefixes="xsl cmswrt x" > <xsl:import href="/Style Library/XSL Style Sheets/Header.xsl" /> <xsl:import href="/Style Library/XSL Style Sheets/LevelStyle.xsl" /> <xsl:import href="/Style Library/XSL Style Sheets/TableOfContentsMain.xsl" /> </xsl:stylesheet></Xsl>
</PublishingWebControls:TableOfContentsWebPart>

</ZoneTemplate></WebPartPages:WebPartZone>

The site is a 2007 Enterprise Publishing site.

share|improve this question
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.