Changeset 28618 for documentation

Show
Ignore:
Timestamp:
13.11.2013 09:02:01 (6 years ago)
Author:
jlwhisler
Message:

Added an if statement to check whether any collections have homepage images before adding in the image slider.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • documentation/trunk/tutorial_sample_files/libraries/althor/transform/pages/home.xsl

    r28599 r28618  
    1111    <xsl:template match="/page/pageResponse"> 
    1212                <!-- SLIDER --> 
     13        <xsl:if test="collectionList/collection/displayItem[@name='smallicon']"> 
    1314        <div class="slider-wrapper theme-default theme-project theme-home"> 
    1415            <div class="ribbon"><xsl:text> </xsl:text></div> 
     16             
    1517            <div id="slider" class="nivoSlider"> 
    1618                <xsl:call-template name="collSlider"/> 
    1719            </div> 
     20             
    1821        </div> 
    1922        <!-- ENDS SLIDER --> 
    20      
     23    </xsl:if> 
    2124                <!-- headline --> 
    2225        <div class="headline">Select a collection to explore!</div>