Return to Snippet

Revision: 62698
at March 6, 2013 22:08 by thesmu


Initial Code
<div id="testimonial">
        <span>Testimonial</span>
        <xsl:if test="$currentPage/testimonial != ''">
          <h1><xsl:value-of select="$currentPage/data [@alias = 'testimonial']" /></h1>
        </xsl:if>      
        <xsl:if test="$currentPage/testimonialName != ''">
          <h2><xsl:value-of select="$currentPage/data [@alias = 'testimonialName']" /></h2>
        </xsl:if>      
        <xsl:if test="$currentPage/testimonialDetails != ''">
          <p><xsl:value-of select="$currentPage/data [@alias = 'testimonialDetails']" /></p>
        </xsl:if>
</div>

Initial URL
http://our.umbraco.org/forum/developers/xslt/14500-Hide-Div-in-Macro-if-no-content-is-added

Initial Description
hide div in macro if no content is added - Xslt - our.umbraco.org

Initial Title
hide div in macro if no content is added - Xslt - our.umbraco.org

Initial Tags

                                

Initial Language
ASP