Thumbnail View of Slides
One thing you lose when you create a data view of a slide library is the ability to just show a thumbnail without some custom work. It's not difficult, just a pain. Here's the code so you don't have to waste time thinking about something that should be built in. Note: This works for ppt and pptx files. You'll have to think to make the rest work!
<td class="ms-vb">
<xsl:variable name="fileExt" select="concat('_pp',substring-after(@FileLeafRef, '.pp'))" />
<xsl:variable name="fileName" select="substring-before(@FileLeafRef, '.pp')" />
<img border="0" src="/{@FileDirRef}/_t/{$fileName}{$fileExt}.jpg" />
</td>
<td class="ms-vb">
<xsl:variable name="fileExt" select="concat('_pp',substring-after(@FileLeafRef, '.pp'))" />
<xsl:variable name="fileName" select="substring-before(@FileLeafRef, '.pp')" />
<img border="0" src="/{@FileDirRef}/_t/{$fileName}{$fileExt}.jpg" />
</td>
Comments