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,
Can I use one macro in another macro?
If yes,how can I do it?
Thanks,
kukuwka
Hi Kukuwka,
You may want to look into the umbraco.library method RenderMacroContent. There is a good description on the old wiki page here:
http://en.wikibooks.org/wiki/Umbraco/Reference/umbraco.library/RenderMacroContent
You'll need to use the old macro tag as described in the link above, but should hopefully give you the right starting point.
Matt
Post a real life code sample here when it worked, because we never got the example from that wiki page to work when we tried...
Hi Rik,
Here is an example pulled from a live project
<xsl:value-of select="umbraco.library:RenderMacroContent(concat('<?UMBRACO_MACRO macroAlias="header" text="', $node/@nodeName,'" />'), $node/@id)" disable-output-escaping="yes"/>
Thanks :)
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Use one macro in another macro
Hi,
Can I use one macro in another macro?
If yes,how can I do it?
Thanks,
kukuwka
Hi Kukuwka,
You may want to look into the umbraco.library method RenderMacroContent. There is a good description on the old wiki page here:
http://en.wikibooks.org/wiki/Umbraco/Reference/umbraco.library/RenderMacroContent
You'll need to use the old macro tag as described in the link above, but should hopefully give you the right starting point.
Matt
Post a real life code sample here when it worked, because we never got the example from that wiki page to work when we tried...
Hi Rik,
Here is an example pulled from a live project
Matt
Thanks :)
is working on a reply...