Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
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.dkMy 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
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
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
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
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.
/Dennis
is working on a reply...