Skip to content

Instantly share code, notes, and snippets.

@bjarnef
Last active July 13, 2016 13:31
Show Gist options
  • Save bjarnef/4af4a99f8a991e4214242f8910966d8b to your computer and use it in GitHub Desktop.
Save bjarnef/4af4a99f8a991e4214242f8910966d8b to your computer and use it in GitHub Desktop.
Image using inline xslt
<umbraco:Item runat="server" field="profileImage" recursive="true" xslt="concat('&lt;img src=&quot;', umbraco.library:GetMedia({0}, 'true')/umbracoFile, '&quot; alt=&quot;Carsten Oldengaard&quot; class=&quot;photo_frame&quot; /&gt;')" xsltDisableEscaping="true" />
<umbraco:Item runat="server" field="profileImage" recursive="true" xslt="concat('&lt;img src=&quot;', '/ImageGen.ashx?altImage=/gfx/no_image.gif&amp;transparent=false&amp;bgcolor=ffffff&amp;Image=', umbraco.library:GetMedia({0}, 'true')/umbracoFile, '&amp;Width=126', '&quot; alt=&quot;Carsten Oldengaard&quot; class=&quot;photo_frame&quot; /&gt;')" xsltDisableEscaping="true" />
<umbraco:Item runat="server" field="profileImage" xslt="concat('&lt;img src=&quot;/ImageGen.ashx?image=', umbraco.library:GetMedia({0}, 'true')/umbracoFile, '&amp;amp;width=126&amp;amp;constrain=true&quot; class=&quot;photo_frame&quot; /&gt;')" xsltDisableEscaping="true"/>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment