Last active
July 13, 2016 13:31
-
-
Save bjarnef/4af4a99f8a991e4214242f8910966d8b to your computer and use it in GitHub Desktop.
Image using inline xslt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<umbraco:Item runat="server" field="profileImage" recursive="true" xslt="concat('<img src="', umbraco.library:GetMedia({0}, 'true')/umbracoFile, '" alt="Carsten Oldengaard" class="photo_frame" />')" xsltDisableEscaping="true" /> | |
<umbraco:Item runat="server" field="profileImage" recursive="true" xslt="concat('<img src="', '/ImageGen.ashx?altImage=/gfx/no_image.gif&transparent=false&bgcolor=ffffff&Image=', umbraco.library:GetMedia({0}, 'true')/umbracoFile, '&Width=126', '" alt="Carsten Oldengaard" class="photo_frame" />')" xsltDisableEscaping="true" /> | |
<umbraco:Item runat="server" field="profileImage" xslt="concat('<img src="/ImageGen.ashx?image=', umbraco.library:GetMedia({0}, 'true')/umbracoFile, '&amp;width=126&amp;constrain=true" class="photo_frame" />')" xsltDisableEscaping="true"/> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment