Copied to clipboard

Flag this post as spam?

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


  • Lasse 6 posts 25 karma points
    Apr 11, 2013 @ 16:44
    Lasse
    0

    Nivoslider, showing nodeName?

    Hi everybody,

    I'm developing my first site in Umbraco and I'm stuck at the moment with my slider.
    First of all, you can see the page here: calsep.mediafarm.dk

    My slider works and have also got it working with my responsive design but I can't get the nodeName and a text called "teasertext" to be showed.

    This is my XLST file:

    ----------------------------------------------------------------------------------------------------------------------------------------------------------------------

    <!-- start writing XSLT -->
    <xsl:variable name="sliderNode" select="$currentPage/parent::*/child::*[@level=1]"/>

    <div id="slideshow">
    <div class="slider-wrapper theme-default">
    <div id="slider" class="nivoSlider">
    <xsl:for-each select="$sliderNode/child::umediaSlider">
    <div class="imageSlide">
    <div class="imageSliderInfo">
    <h2><xsl:value-of select="@nodeName"/></h2>
    <xsl:value-of select="teaserText" disable-output-escaping="yes"/>
    </div>
    <div class="imageSliderImage">
    <img src="{umbracoFile}" width="844" height="326" />
    </div>
    </div>
    </xsl:for-each>
    </div>
    </div>
    </div>

    </xsl:template>
    </xsl:stylesheet>

    ----------------------------------------------------------------------------------------------------------------------------------------------------------------------

    As you can see I try to call these to before the image, but it wan't work.
    <xsl:value-of select="@nodeName"/></h2>
    <xsl:value-of select="teaserText" disable-output-escaping="yes"/>

    Anybody who can help?

    Best regards,
    Lasse

  • Dennis Aaen 4457 posts 17970 karma points admin hq c-trib
    Apr 22, 2013 @ 10:05
    Dennis Aaen
    0

    Hi Lasse,

    I just want to hear if you have managed to find a solution to your problem. I know this is a little old post. If not then try this.

    <!-- start writing XSLT -->
    <xsl:variable name="sliderNode" select="$currentPage/parent::*/child::*[@level=1]"/>

    <div id="slideshow">
    <div class="slider-wrapper theme-default">
    <div id="slider" class="nivoSlider">
    <xsl:for-each select="$sliderNode/child::umediaSlider">
    <div class="imageSlide">
    <div class="imageSliderInfo">
    <h2><xsl:value-of select="./@nodeName"/></h2>
    <xsl:value-of select="./teaserText" disable-output-escaping="yes"/>
    </div>
    <div class="imageSliderImage">
    <img src="{umbracoFile}" width="844" height="326" />
    </div>
    </div>
    </xsl:for-each>
    </div>
    </div>
    </div>

    </xsl:template>
    </xsl:stylesheet>

    /Dennis

  • 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