Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • J 447 posts 864 karma points
    Nov 10, 2018 @ 14:02
    J
    0

    How to display image

    I have a page with an image associated and an XSLT with the below code

    <xsl:template match="/">
    
    <!-- The fun starts here -->
    <ul>
    <xsl:for-each select="$currentPage/* [@isDoc and string(umbracoNaviHide) != '1']">
        <div class="container-fluid">
        <div class="row">
    
            <a href="{umbraco.library:NiceUrl(@id)}">
                <xsl:value-of select="@nodeName"/>
                <img src={umbraco.library:GetMedia($currentPage/imageAlias,'false')/umbracoFile}" />
            </a>
        </div>
        </div>
    </xsl:for-each>
    </ul>
    
    </xsl:template>
    

    It throws an error due to the code <img src......> but i cant work out how to get the code to compile correctly? Can anyone guide me? Thx

Please Sign in or register to post replies

Write your reply to:

Draft