是否可以根据您所在的网页自定义文档库中的视图列表?我打算在大型文档库上配置大约500个视图,但是无法在500视图之间导航...
答案 0 :(得分:1)
列表可以unclear many views。即使我可以,我也不确定我会在列表中添加500个视图。
但是,Web部件可以在其中内置自定义视图。例如,以下是我用于当前项目的Web部件的精简版本:
<WebPartPages:XsltListViewWebPart runat="server"
Title="Large Document Library"
ListUrl="LargeDocumentLibrary"
ChromeType="TitleOnly"
>
<XmlDefinition>
<View MobileView="TRUE" Type="HTML" Level="1">
<Query>
<Where>
<!-- Enter conditions here -->
</Where>
</Query>
<ViewFields>
<!-- Enter FieldRef elements here -->
</ViewFields>
<RowLimit Paged="TRUE">30</RowLimit>
</View>
</XmlDefinition>
<parameterbindings>
<ParameterBinding Name="dvt_sortdir" Location="Postback;Connection"/>
<ParameterBinding Name="dvt_sortfield" Location="Postback;Connection"/>
<ParameterBinding Name="dvt_startposition" Location="Postback" DefaultValue=""/>
<ParameterBinding Name="dvt_firstrow" Location="Postback;Connection"/>
<ParameterBinding Name="OpenMenuKeyAccessible" Location="Resource(wss,OpenMenuKeyAccessible)" />
<ParameterBinding Name="open_menu" Location="Resource(wss,open_menu)" />
<ParameterBinding Name="select_deselect_all" Location="Resource(wss,select_deselect_all)" />
<ParameterBinding Name="idPresEnabled" Location="Resource(wss,idPresEnabled)" />
<ParameterBinding Name="NoAnnouncements" Location="Resource(wss,noXinviewofY_LIST)" />
<ParameterBinding Name="NoAnnouncementsHowTo" DefaultValue="" />
<ParameterBinding Name="AddNewAnnouncement" Location="Resource(wss,addnewitem)" />
<ParameterBinding Name="MoreAnnouncements" Location="Resource(wss,moreItemsParen)" />
</parameterbindings>
</WebPartPages:XsltListViewWebPart>