Skip to content

Instantly share code, notes, and snippets.

@janikvonrotz
Created September 23, 2013 10:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save janikvonrotz/6668613 to your computer and use it in GitHub Desktop.
Save janikvonrotz/6668613 to your computer and use it in GitHub Desktop.
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