Installing PKS to a subsite (December Release)

Feb 2, 2009 at 12:57 PM
Edited Feb 2, 2009 at 1:27 PM

I went through the documentation, read several posts and am about 90% of the way to installing the PKS to a subsite.

After selecting the link to play a video, it does not play.  I think the issue is with the reference to "download.aspx".  If I view source on podcastdetail.aspx, I see the following entry:

$create(Sys.UI.Silverlight.MediaPlayer, {"autoLoad":false,"mediaSource":"/_layouts/MSIT.CustomPages/Download...

Does anyone know of a way to hard code the reference in podcastdetail.aspx (/_layouts/MSIT.CustomPages/Download.aspx) to use the subsite (/apps/podcast/_layouts/MSIT.CustomPages/Download.aspx)?

Thanks in advance,

Guy Lee

Feb 3, 2009 at 12:35 PM
Edited Feb 3, 2009 at 12:37 PM
I was able to figure it out. 

FYI, you can change the path for the podcastdetail page by updating the "PKSDetailItem.xsl".  Just insert the following block before the Silverlight player section (that references the "$mtemp" variable).  Note that this example replaces '/_layouts' with '/apps/podcast/_layouts'.

 <xsl:variable name="newpath">
   <xsl:call-template name="replace-string" >
    <xsl:with-param name="text" select="$mtemp"/>
    <xsl:with-param name="from" select="'/_layouts'"/>
    <xsl:with-param name="to" select="'/apps/podcast/_layouts'"/>

Then, just update the following (from the Silverlight player section) :
<xsl:value-of select="$mtemp" />

With this:
<xsl:value-of select="$newpath" />
Good luck.