Copied to clipboard

Flag this post as spam?

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


  • Barry 99 posts 187 karma points
    Sep 15, 2009 @ 00:49
    Barry
    0

    How to stop node info from displaying

    I have this line of XSLT

     

    <a href="{$currentPage/data [@alias ='downloadUrl']}" title="{$currentPage/@nodeName}">Download Information</a>

     

    If the Download URL is empty/not set for the node, I dont want to display the link. How can I stop this from being displayed?

  • Barry 99 posts 187 karma points
    Sep 15, 2009 @ 00:56
    Barry
    0

    Got it...

     

      <xsl:if test="$currentPage/data [@alias = 'downloadUrl'] !=''">

              <a href="{$currentPage/data [@alias ='downloadUrl']}" title="{$currentPage/@nodeName}">Download Information</a>

           </xsl:if>

Please Sign in or register to post replies

Write your reply to:

Draft