Updated to include link to dispform.aspx

Feb 21, 2012 at 4:55 PM

I updated the code slightly in the dataview to include a link to the dispform.aspx for the picture. I also update the javascript to ver 5.5. Find and replace the section that starts with <a> and continues to </a>


-------  <a> <xsl:attribute name="href"> <xsl:choose> <xsl:when test="starts-with(@FileRef, '/')"> <xsl:value-of select='@FileRef'/> </xsl:when> <xsl:otherwise> <xsl:value-of select='concat("/",@FileRef)'/> </xsl:otherwise> </xsl:choose> </xsl:attribute>
<xsl:attribute name="class">lytebox</xsl:attribute> <xsl:attribute name="data-lyte-options">autoResize:true slide:true group:name slideInterval:6000 showNavigation:true</xsl:attribute> <xsl:attribute name="data-title" >Title:<xsl:value-of select='@Title'/></xsl:attribute><xsl:attribute name="data-description"> Description: <xsl:value-of select='@Description'/> ; Link: &lt;a href=&quot;/<xsl:value-of select='@FileDirRef'/>/Forms/DispForm.aspx?ID=<xsl:value-of select='@ID' />&quot; target=&quot;_parent&quot;&gt; See more details &lt;/a&gt;  </xsl:attribute> <img style="border: 3px solid white; margin: 5px;">    <xsl:attribute name="src">        <xsl:value-of select='concat("/",@FileDirRef,"/_t/",translate(@FileLeafRef, ".", "_"),".",@FileType)'/>    </xsl:attribute> </img>
</a>