Current Status

Book

Program Phases, A Programming Language and API Translator allows programmers to learn new programming languages by providing simple indexed example programs. Each program illustrates useful, common, and well defined functionality.

« Default listening port for Ericom AccessNow Server | Main | Windows Update Failed 8E5E03FA »
Thursday
May122011

Sharepoint 2010 Productivity Hub and Office Web Apps

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&amp;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>

PrintView Printer Friendly Version

EmailEmail Article to Friend

Reader Comments

There are no comments for this journal entry. To create a new comment, use the form below.

PostPost a New Comment

Enter your information below to add a new comment.

My response is on my own website »
Author Email (optional):
Author URL (optional):
Post:
 
Some HTML allowed: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>