Portal Engine
Version 3.x > Portal Engine > XSLT Transformation with Images View modes: 
User avatar
Member
Member
jay@bwebbed.com - 4/20/2008 5:07:55 PM
   
XSLT Transformation with Images
Hi

I've built a web part that uses the CMSViewer control to pull some content from the content tree. It's a custom document type with an XSLT transformation.

It works, except that their is an image that I need to pull thats attached to the document. The transformation returns only the GUID, does anyone know how I would get the actual image returned?

I think I need to use the getfile.aspx, but not sure how to due that in XLST.

Thanks

Jay

User avatar
Member
Member
Emmanuel Osmont - 4/30/2008 3:08:49 AM
   
RE:XSLT Transformation with Images
I use this template :

<xsl:element name="img">
<xsl:attribute name="src">~/CMSPages/GetFile.aspx?guid=<xsl:value-of select="Image"/></xsl:attribute>
</xsl:element>

... where "Image" is your image's field name.