Copied to clipboard

Flag this post as spam?

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


  • Martin 278 posts 662 karma points
    Jul 25, 2011 @ 13:39
    Martin
    0

    Slideshow XSLT Problem

    Hi there,
    Im having a problem with a slideshow banner I have.
    The banner itself is split into 4 sections/divs and have a time effect applied to them through jquery.
    through basic html/jquery this all works fine.

    In Umbraco I have used the embedded content package to allow the user to select each row of 4 images.

    The slideshow macro is then placed within the master page template.

    The problem Im having is that it doesnt appear within the child pages, only wit hthe home page.

    Any help would be grateful.

    Martin

    The html it genarates is 

     

     

    <div class="imageBanner"> 
       <div class="image1" /><div class="image2" /><div class="image3" /><div class="image4" />         
    </div>

     

     

    My xslt for the macro is 

    <xsl:param name="currentPage"/>
    <xsl:template match="/">
    <!-- start writing XSLT -->
    <div class="image1">
      <xsl:for-each select="$currentPage/slideshowSplitScreen/data/item">
       
        <img>
          <xsl:attribute name="src">
            <xsl:value-of select="umbraco.library:GetMedia(imageOne, 'false')/umbracoFile"/>
          </xsl:attribute>
     
          <xsl:attribute name="alt">
            <xsl:value-of select="umbraco.library:GetMedia(imageOne, 'false')/@nodeName"/>
          </xsl:attribute>
        </img>
    </xsl:for-each>    
    </div>   

    <div class="image2">
      <xsl:for-each select="$currentPage/slideshowSplitScreen/data/item">
       
        <img>
          <xsl:attribute name="src">
            <xsl:value-of select="umbraco.library:GetMedia(imageTwo, 'false')/umbracoFile"/>
          </xsl:attribute>
     
          <xsl:attribute name="alt">
            <xsl:value-of select="umbraco.library:GetMedia(imageTwo, 'false')/@nodeName"/>
          </xsl:attribute>
        </img>
    </xsl:for-each>    
    </div>
    <div class="image3">
      <xsl:for-each select="$currentPage/slideshowSplitScreen/data/item">
       
        <img>
          <xsl:attribute name="src">
            <xsl:value-of select="umbraco.library:GetMedia(imageThree, 'false')/umbracoFile"/>
          </xsl:attribute>
     
          <xsl:attribute name="alt">
            <xsl:value-of select="umbraco.library:GetMedia(imageThree, 'false')/@nodeName"/>
          </xsl:attribute>
        </img>
    </xsl:for-each>    
    </div>
    <div class="image4">
      <xsl:for-each select="$currentPage/slideshowSplitScreen/data/item">
       
        <img>
          <xsl:attribute name="src">
            <xsl:value-of select="umbraco.library:GetMedia(imageFour, 'false')/umbracoFile"/>
          </xsl:attribute>
     
          <xsl:attribute name="alt">
            <xsl:value-of select="umbraco.library:GetMedia(imageFour, 'false')/@nodeName"/>
          </xsl:attribute>
        </img>
    </xsl:for-each>    
    </div>  
     
    </xsl:template>
    </xsl:stylesheet>
Please Sign in or register to post replies

Write your reply to:

Draft