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,
I have a macro which will be recursive. The macro starts by getting the values passed in the page
<xsl:param name="link1" select="/macro/link1"/> <xsl:param name="link2" select="/macro/link2"/>
<xsl:param name="dat1" select="umbraco.library:GetXmlNodeById($link1)"/> <xsl:param name="dat2" select="umbraco.library:GetXmlNodeById($link2)"/>
then a template will be selected
<xsl:call-template name="DoSlider" /> (more code left out for ease - but it needs to be called like this)
and from that template i want to call another template recursivly for a list it
<ul class="touchcarousel-container"> <xsl:call-template name="SliderTemplate" slide="[$dat1]" />
<xsl:call-template name="SliderTemplate" slide="[$dat2]" /> </ul>
in the other template call something like this
<xsl:template name="SliderTemplate"> <xsl:param name="dat" select="$slide"/>
But it doesn't like the slide="[$dat2]" bit and probably the select="$slide"
Can anyone help with this.
Thanks
Kelvin
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
adding a value from the macro to the template
Hi,
I have a macro which will be recursive. The macro starts by getting the values passed in the page
<xsl:param name="link1" select="/macro/link1"/>
<xsl:param name="link2" select="/macro/link2"/>
<xsl:param name="dat1" select="umbraco.library:GetXmlNodeById($link1)"/>
<xsl:param name="dat2" select="umbraco.library:GetXmlNodeById($link2)"/>
then a template will be selected
<xsl:call-template name="DoSlider" /> (more code left out for ease - but it needs to be called like this)
and from that template i want to call another template recursivly for a list it
<ul class="touchcarousel-container">
<xsl:call-template name="SliderTemplate" slide="[$dat1]" />
<xsl:call-template name="SliderTemplate" slide="[$dat2]" />
</ul>
in the other template call something like this
<xsl:template name="SliderTemplate">
<xsl:param name="dat" select="$slide"/>
But it doesn't like the slide="[$dat2]" bit and probably the select="$slide"
Can anyone help with this.
Thanks
Kelvin
is working on a reply...