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
Is it possible to use the output of one xslt-macro as the input of another xslt-macro,someting like the code below
<umbraco:Macro title="[#<umbraco:Macro Alias="GetParentTitle" runat="server"></umbraco:Macro>]" Alias="GetTitle" runat="server"></umbraco:Macro>
Bram,
Explain a bit more what you'd like to do, because it feels as if you need the title of a parent page? Can't you a recursive macro parameter to do that?
Cheers,
/Dirk
No Dirk,
it's just a very simple/bad example I showed.
I want to use some output from a macro as input for the next macro.I just want to keep the input from the second macro as a variable.
Something more like this:
<umbraco:Macro title="This is the subnavigation for: [#<umbraco:Macro Alias="DateTime" datetime="[@createDate]" format="yyy" runat="server"></umbraco:Macro>]" Alias="SubNavigation" runat="server"></umbraco:Macro>
Found this on the old forum (http://forum.umbraco.org/yaf_postst2928_Include-macro-in-a-macro-possible.aspx)
<xsl:variable name="newsMacro" select="string('<?UMBRACO_MACRO macroAlias="DisplayNewsHome" numberOfItems="2" startNode="1064" displayProp="teaser" showAsLI="2"></?UMBRACO_MACRO>')"/><xsl:value-of select="umbraco.library:RenderMacroContent($newsMacro, number($currentPage/@id))" disable-output-escaping="yes"/>
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
How to use the output of one xslt-macro as the input of another xslt-macro?
Is it possible to use the output of one xslt-macro as the input of another xslt-macro,
someting like the code below
Bram,
Explain a bit more what you'd like to do, because it feels as if you need the title of a parent page? Can't you a recursive macro parameter to do that?
Cheers,
/Dirk
No Dirk,
it's just a very simple/bad example I showed.
I want to use some output from a macro as input for the next macro.
I just want to keep the input from the second macro as a variable.
Something more like this:
Found this on the old forum (http://forum.umbraco.org/yaf_postst2928_Include-macro-in-a-macro-possible.aspx)
is working on a reply...