Sharepoint 2010 Productivity Hub and Office Web Apps
Thursday, May 12, 2011 at 1:09PM Here is a fix to get Sharepoint 2010 Productivity Hub links working properly with Office Web Apps:
1 - Using Sharepoint Designer, edit the productDV.xsl file in the All Files/supportFiles folder on the site hosting the Productivity Hub.
2 - In the table data section referenced by: <td class="ph-dataviewfeaturetext" colspan="3">, Replace the code for the html link with the following:
<xsl:choose>
<xsl:when test="substring(@FileRef,string-length(@FileRef) - 4,5) ='.docx'">
<strong><a href="/_layouts/WordViewer.aspx?id={@FileRef}"><xsl:value-of select="@Title"/></a></strong>
</xsl:when>
<xsl:when test="substring(@FileRef,string-length(@FileRef) - 4,5) ='.pptx'">
<strong><a href="/_layouts/PowerPoint.aspx?PowerPointView=ReadingView&PresentationId={@FileRef}"><xsl:value-of select="@Title"/></a></strong>
</xsl:when>
<xsl:when test="substring(@FileRef,string-length(@FileRef) - 4,5) ='.xlsx'">
<strong><a href="/_layouts/xlviewer.aspx?id={@FileRef}"><xsl:value-of select="@Title"/></a></strong>
</xsl:when>
<xsl:otherwise>
<strong><a href="{@FileRef}"><xsl:value-of select="@Title"/></a></strong>
</xsl:otherwise>
</xsl:choose>
Reader Comments