Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Add Link to the SharePoint search results #SharePoint #ASP.net
<xsl:template name="ViewInBrowser">
<xsl:param name="browserlink" />
<xsl:param name="currentId" />
<xsl:if test="string-length($browserlink) &gt; 0">
<span class="srch-urllink"><a href="{$browserlink}" id="{concat($currentId,'_VBlink')}">
<xsl:value-of select="$ViewInBrowser" />
</a>
</span>
</xsl:if>
</xsl:template>
<xsl:template name="ViewInBrowser">
<xsl:param name="browserlink" />
<xsl:param name="currentId" />
<xsl:if test="string-length($browserlink) &gt; 0">
<span class="srch-urllink"><a href="{$browserlink}" id="{concat($currentId,'_VBlink')}">
<xsl:value-of select="$ViewInBrowser" />
</a>
</span>
</xsl:if>
<a>
<xsl:attribute name="href">
<xsl:value-of select="sitename"/>
</xsl:attribute>
<xsl:text xmlns:ddwrt="http://schemas.microsoft.com/WebParts/v2/DataView/runtime" ddwrt:whitespace-preserve="yes" xml:space="preserve">
</xsl:text>
<xsl:text xmlns:ddwrt="http://schemas.microsoft.com/WebParts/v2/DataView/runtime" ddwrt:nbsp-preserve="yes" disable-output-escaping="yes">&amp;nbsp;</xsl:text>
Ordner anzeigen
</a>
</xsl:template>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.