如果有同事不会操作SHAREPOINT视图,而将查看帖子的FLAT视图破坏了。那如何恢复呢?
我上周就遇到这样的情况,FLAT被破坏之后,发贴内容显示不出来,但回贴内容可以显示。
这样会导致一个问题,就是新建帖子无法正常显示和回复。
解决方法试过很多,都失败,最好只好通过SHAREPOINT DESIGNER来解决。
找到一个正常可用的同一个BBS的DISCUSSION的FLAT.ASPX,对照着修改破坏的FLAT.ASPX。
除了关键ID外,其它代码要保持一样,即可修复此问题。
即下图中的代码是特殊的之外,其它的应该保持一样。
~~~~~~~~~~~
<asp:Content ContentPlaceHolderId="PlaceHolderMain" runat="server">
<WebPartPages:WebPartZone runat="server" FrameType="None" ID="Main" Title="loc:Main"><ZoneTemplate>
。。。
</ZoneTemplate></WebPartPages:WebPartZone>
</asp:Content>
1 <%@ Page language="C#" MasterPageFile="~masterurl/default.master" Inherits="Microsoft.SharePoint.WebPartPages.WebPartPage,Microsoft.SharePoint,Version=15.0.0.0,Culture=neutral,PublicKeyToken=71e9bce111e9429c" meta:progid="SharePoint.WebPartPage.Document" meta:webpartpageexpansion="full" %> 2 <%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> <%@ Register Tagprefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> <%@ Import Namespace="Microsoft.SharePoint" %> <%@ Assembly Name="Microsoft.Web.CommandUI, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> <%@ Register Tagprefix="WebPartPages" Namespace="Microsoft.SharePoint.WebPartPages" Assembly="Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> 3 <%@ Register Tagprefix="ApplicationPages" Namespace="Microsoft.SharePoint.ApplicationPages.WebControls" Assembly="Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> 4 <asp:Content ContentPlaceHolderId="PlaceHolderPageTitle" runat="server"> 5 <SharePoint:ListProperty Property="TitleOrFolder" runat="server"/> - 6 <SharePoint:ListProperty Property="CurrentViewTitle" runat="server"/></asp:Content> 7 <asp:Content ContentPlaceHolderId="PlaceHolderPageTitleInTitleArea" runat="server"> 8 <SharePoint:ListProperty Property="TitleBreadcrumb" runat="server"/> 9 <SharePoint:UIVersionedContent UIVersion="4" runat="server"> 10 <ContentTemplate> 11 <span class="ms-ltviewselectormenuheader" runat="server"> 12 <SharePoint:ListTitleViewSelectorMenu AlignToParent="true" id="LTViewSelectorMenu" runat="server" /> 13 </span> 14 </ContentTemplate> 15 </SharePoint:UIVersionedContent> 16 </asp:Content> 17 <asp:content contentplaceholderid="PlaceHolderAdditionalPageHead" runat="server"> 18 <SharePoint:RssLink runat="server"/> 19 </asp:content> 20 <asp:Content ContentPlaceHolderId="PlaceHolderPageImage" runat="server"> 21 <SharePoint:ViewIcon Width="145" Height="54" runat="server"/></asp:Content> 22 <asp:Content ContentPlaceHolderId="PlaceHolderLeftActions" runat="server"> 23 <SharePoint:RecentChangesMenu runat="server" id="RecentChanges"/> 24 <SharePoint:ModifySettingsLink runat="server"/> 25 </asp:Content> 26 <asp:Content ContentPlaceHolderId ="PlaceHolderBodyLeftBorder" runat="server"> 27 <div height="100%" class="ms-pagemargin"><img src="/_layouts/15/images/blank.gif?rev=23" width='6' height='1' alt="" /></div> 28 </asp:Content> 29 <asp:Content ContentPlaceHolderId="PlaceHolderMain" runat="server"> 30 <WebPartPages:WebPartZone runat="server" FrameType="None" ID="Main" Title="loc:Main"><ZoneTemplate> 31 <WebPartPages:XsltListViewWebPart runat="server" ViewFlag="" ViewSelectorFetchAsync="False" InplaceSearchEnabled="True" ServerRender="False" ClientRender="True" InitialAsyncDataFetch="False" WebId="00000000-0000-0000-0000-000000000000" IsClientRender="False" GhostedXslLink="thread.xsl" ViewGuid="{B9FD79D4-BE28-4605-8621-710861DCDCE6}" EnableOriginalValue="False" DisplayName="Flat" ViewContentTypeId="" ListName="{B74AF0CE-C81F-4B2A-A2E2-65D727FC416A}" ListId="b74af0ce-c81f-4b2a-a2e2-65d727fc416a" PageSize="-1" UseSQLDataSourcePaging="True" DataSourceID="" ShowWithSampleData="False" AsyncRefresh="False" ManualRefresh="False" AutoRefresh="False" AutoRefreshInterval="60" Title="Software Team Discussion" FrameType="Default" SuppressWebPartChrome="False" Description="Use the Team Discussion list to hold newsgroup-style discussions on topics relevant to your team." IsIncluded="True" ZoneID="Main" PartOrder="2" FrameState="Normal" AllowRemove="True" AllowZoneChange="True" AllowMinimize="True" AllowConnect="True" AllowEdit="True" AllowHide="True" IsVisible="True" TitleUrl="/Software/Lists/Team Discussion" DetailLink="/Software/Lists/Team Discussion" HelpLink="" HelpMode="Modeless" Dir="Default" PartImageSmall="" MissingAssembly="Cannot import this Web Part." PartImageLarge="" IsIncludedFilter="" ExportControlledProperties="False" ConnectionID="00000000-0000-0000-0000-000000000000" ID="g_b9fd79d4_be28_4605_8621_710861dcdce6" ExportMode="NonSensitiveData" __MarkupType="vsattributemarkup" __WebPartId="{B9FD79D4-BE28-4605-8621-710861DCDCE6}" __AllowXSLTEditing="true" __designer:CustomXsl="fldtypes_Ratings.xsl" WebPart="true" Height="" Width=""><ParameterBindings> 32 33 <ParameterBinding Name="dvt_sortdir" Location="Postback;Connection"/> 34 <ParameterBinding Name="dvt_sortfield" Location="Postback;Connection"/> 35 <ParameterBinding Name="dvt_startposition" Location="Postback" DefaultValue=""/> 36 <ParameterBinding Name="dvt_firstrow" Location="Postback;Connection"/> 37 <ParameterBinding Name="OpenMenuKeyAccessible" Location="Resource(wss,OpenMenuKeyAccessible)" /> 38 <ParameterBinding Name="open_menu" Location="Resource(wss,open_menu)" /> 39 <ParameterBinding Name="select_deselect_all" Location="Resource(wss,select_deselect_all)" /> 40 <ParameterBinding Name="idPresEnabled" Location="Resource(wss,idPresEnabled)" /><ParameterBinding Name="NoAnnouncements" Location="Resource(wss,noitemsinview_discboard)" /><ParameterBinding Name="NoAnnouncementsHowTo" Location="Resource(wss,noitemsinview_discboard_howto3)" /><ParameterBinding Name="CAML_Expand" Location="Form(CAML_Expand)" /><ParameterBinding Name="CAML_ShowOriginalEmailBody" Location="Form(CAML_ShowOriginalEmailBody)" /><ParameterBinding Name="ByText" Location="Resource(wss,2000)" /></ParameterBindings> 41 <DataFields> 42 </DataFields> 43 <XmlDefinition> 44 <View Name="{B9FD79D4-BE28-4605-8621-710861DCDCE6}" DefaultViewForContentType="TRUE" Type="HTML" TabularView="FALSE" IncludeRootFolder="TRUE" DisplayName="Flat" Url="/Software/Lists/Team Discussion/Flat.aspx" Level="1" BaseViewID="2" ContentTypeID="0x01200200F3E3EC0000B4D54B9EFD49357FDC9EA6" ImageUrl="/_layouts/15/images/vwdisc.png?rev=23" CssStyleSheet="discthread.css" ><Query><OrderBy Override="TRUE"><FieldRef Name="Created" Ascending="FALSE"/></OrderBy></Query><ViewFields><FieldRef Name="PersonViewMinimal"/><FieldRef Name="BodyAndMore"/><FieldRef Name="StatusBar" Explicit="TRUE"/><FieldRef Name="DiscussionLastUpdated"/><FieldRef Name="Body"/><FieldRef Name="TrimmedBody"/><FieldRef Name="Author"/><FieldRef Name="Created"/><FieldRef Name="ItemChildCount"/><FieldRef Name="MyEditor"/><FieldRef Name="ParentItemEditor"/><FieldRef Name="ParentItemID"/><FieldRef Name="BestAnswerId"/><FieldRef Name="Modified"/><FieldRef Name="IsFeatured"/></ViewFields><RowLimit Paged="TRUE">100</RowLimit><Aggregations Value="Off"/><JSLink>sp.ui.discussions.js</JSLink><XslLink>thread.xsl</XslLink><Toolbar Type="Standard"/></View></XmlDefinition> 45 </WebPartPages:XsltListViewWebPart> 46 47 </ZoneTemplate></WebPartPages:WebPartZone> 48 </asp:Content> 49 <asp:Content ContentPlaceHolderId="PlaceHolderBodyAreaClass" runat="server"> 50 <style type="text/css"> 51 .ms-bodyareaframe { 52 padding: 0px; 53 } 54 </style> 55 </asp:Content> 56 57 <asp:Content ContentPlaceHolderId="PlaceHolderPageDescription" runat="server"> 58 <SharePoint:ListProperty CssClass="ms-listdescription" Property="Description" runat="server"/> 59 </asp:Content> 60 <asp:Content ContentPlaceHolderId="PlaceHolderCalendarNavigator" runat="server"> 61 <SharePoint:SPCalendarNavigator id="CalendarNavigatorId" runat="server"/> 62 <ApplicationPages:CalendarAggregationPanel id="AggregationPanel" runat="server"/> 63 </asp:Content>
时间: 2024-11-16 06:24:55