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 all,
I try to call a umbraco macro from a template and from that macro i want call another macro with a recursive parameter.... how I do?
Hi Matteo,
are both of them Xslt macros?
There is the umbraco.library:RenderMacroContent method which you might want to have a look at, see also: http://en.wikibooks.org/wiki/Umbraco/Reference/umbraco.library/RenderMacroContent.
Sascha
Hi All.
How do i access xsl variable in for loop outside the loop.
hi sasha,
thak you for the reply...
i just use umbraco.library:RenderMacroContent in this way:
<xsl:variable name="relatedLinksMacro">
<xsl:text><?UMBRACO_MACRO macroAlias="</xsl:text>
<xsl:value-of select="@nodeTypeAlias"/>
<xsl:text>" numeroSlide="</xsl:text>
<xsl:value-of select="$index"/>
<xsl:text>"></?UMBRACO_MACRO></xsl:text>
</xsl:variable>
<xsl:variable name="Id" select="@id"/>
<xsl:value-of select="umbraco.library:RenderMacroContent($relatedLinksMacro,$Id)" disable-output-escaping="yes"/>
i want know if i have a way to use the variable $Id in tha macro that i call....
is possible??
i wonder it's possible but i don't know the way...
someone can explain???
thankyou!!! XD
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
xslt macro with parameters
hi all,
I try to call a umbraco macro from a template and from that macro i want call another macro with a recursive parameter.... how I do?
Hi Matteo,
are both of them Xslt macros?
There is the umbraco.library:RenderMacroContent method which you might want to have a look at, see also: http://en.wikibooks.org/wiki/Umbraco/Reference/umbraco.library/RenderMacroContent.
Sascha
Hi All.
How do i access xsl variable in for loop outside the loop.
hi sasha,
thak you for the reply...
i just use umbraco.library:RenderMacroContent in this way:
<xsl:variable name="relatedLinksMacro">
<xsl:text><?UMBRACO_MACRO macroAlias="</xsl:text>
<xsl:value-of select="@nodeTypeAlias"/>
<xsl:text>" numeroSlide="</xsl:text>
<xsl:value-of select="$index"/>
<xsl:text>"></?UMBRACO_MACRO></xsl:text>
</xsl:variable>
<xsl:variable name="Id" select="@id"/>
<xsl:value-of select="umbraco.library:RenderMacroContent($relatedLinksMacro,$Id)" disable-output-escaping="yes"/>
i want know if i have a way to use the variable $Id in tha macro that i call....
is possible??
i wonder it's possible but i don't know the way...
someone can explain???
thankyou!!! XD
is working on a reply...