Copied to clipboard

Flag this post as spam?

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


  • J 351 posts 606 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

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies