sharepoint XsltListViewWebPart在新窗口中打开超链接列

时间:2012-05-23 09:21:16

标签: sharepoint web-parts

希望有人可以提供小费,因为我有一个相当紧急的问题。 我有以下XsltListViewWebPart:

        <WebPartPages:XsltListViewWebPart runat="server" Description="Test" ListDisplayName="" ImportErrorMessage="Error." PartOrder="0" HelpLink="" AllowRemove="True" IsVisible="True" AllowHide="True" UseSQLDataSourcePaging="True" ExportControlledProperties="False" IsIncludedFilter="" DataSourceID="" Title="Title" ViewFlag="8388621" NoDefaultStyle="" AllowConnect="True" FrameState="Normal" CatalogIconImageUrl="/_layouts/images/itdl.png" PageSize="-1" PartImageLarge="/_layouts/images/itdl.png" AsyncRefresh="False" Dir="Default" DetailLink="/Freigegebene Dokumente" ShowWithSampleData="False" ListId="84474224-4a76-471f-8e12-52f3185c4d72" ListName="{84474224-4A76-471F-8E12-52F3185C4D72}" FrameType="Default" PartImageSmall="" IsIncluded="True" SuppressWebPartChrome="False" AllowEdit="True" ViewGuid="{1B1FF0C7-CD99-4AFE-81E1-B1C2B3B08242}" AutoRefresh="False" AutoRefreshInterval="60" AllowMinimize="True" WebId="f9888801-89f4-459b-9fe6-a6780d624ec9" ViewContentTypeId="0x" InitialAsyncDataFetch="False" GhostedXslLink="main.xsl" MissingAssembly="Error." HelpMode="Modeless" ListUrl="" ID="g_205870e9_70f2_4539_bbbf_a71b43f06783" ConnectionID="00000000-0000-0000-0000-000000000000" AllowZoneChange="True" TitleUrl="/TitleUrl" ManualRefresh="False" __MarkupType="vsattributemarkup" __WebPartId="{1B1FF0C7-CD99-4AFE-81E1-B1C2B3B08242}" __AllowXSLTEditing="true" __designer:CustomXsl="fldtypes_Ratings.xsl" WebPart="true" Height="" Width=""><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,noitemsinview_doclibrary)" />
                                        <ParameterBinding Name="NoAnnouncementsHowTo" Location="Resource(wss,noitemsinview_doclibrary_howto2)" />
                                    </ParameterBindings>
      <XmlDefinition>
                                        <View Name="{1B1FF0C7-CD99-4AFE-81E1-B1C2B3B08242}" MobileView="TRUE" Type="HTML" Hidden="TRUE" DisplayName="" Url="/SitePages/Homepage.aspx" Level="255" BaseViewID="1" ContentTypeID="0x" ImageUrl="/_layouts/images/dlicon.png">
                                            <Query>
                                                <OrderBy>
                                                    <FieldRef Name="FileLeafRef"/>
                                                </OrderBy>
                                            </Query>
                                            <ViewFields>
                                                <FieldRef Name="DocIcon"/>
                                                <FieldRef Name="LinkFilename"/>
                                                <FieldRef Name="Modified"/>
                                                <FieldRef Name="Editor"/>
                                            </ViewFields>
                                            <RowLimit Paged="TRUE">15</RowLimit>
                                            <Toolbar Type="Freeform"/>
                                        </View>
                                    </XmlDefinition>
      <DataFields>
      </DataFields>
      </WebPartPages:XsltListViewWebPart>

“编辑器”字段指的是超链接列。如何修改上面的XsltListViewWebPart以使该列在新窗口中打开?我不需要确切的解决方案,只需要我应该做些什么,因为现在我有点无能为力。

感谢您的帮助。 的问候,

1 个答案:

答案 0 :(得分:0)

我发现了这个问题。 Sharepoint Designer - Design View中有一个选项可以为XsltListViewWebPart插入整个XSLT。问题是,您首先需要实际单击XsltListViewWebPart代码,以使其设计选项可见,并使用其插入XSLT选项。