Copied to clipboard

Flag this post as spam?

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


  • Matteo Piras 7 posts 27 karma points
    Jul 27, 2010 @ 17:52
    Matteo Piras
    0

    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?

  • Sascha Wolter 615 posts 1101 karma points
    Jul 28, 2010 @ 13:11
    Sascha Wolter
    0

    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

  • Avinash 1 post 21 karma points
    Jul 28, 2010 @ 16:11
    Avinash
    0

    Hi All.

    How do i access xsl variable in for loop outside the loop.

  • Matteo Piras 7 posts 27 karma points
    Jul 29, 2010 @ 15:08
    Matteo Piras
    0

    hi sasha, 

    thak you for the reply...

    i just use umbraco.library:RenderMacroContent in this way:

    <xsl:variable name="relatedLinksMacro">

                        <xsl:text>&lt;?UMBRACO_MACRO macroAlias="</xsl:text>

                        <xsl:value-of select="@nodeTypeAlias"/>

                        <xsl:text>" numeroSlide="</xsl:text>

                        <xsl:value-of select="$index"/>

                        <xsl:text>">&lt;/?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

Please Sign in or register to post replies

Write your reply to:

Draft