You can fetch it with <xsl:value-of select="$currentPage/* [name() = 'relatedExtra' and not(@isDoc)]" disable-output-escaping="yes" /> (where 'relatedExtra'¨is the name of your macro container datatype property on the page).
I can't get it to render well though. When I don't disable output escaping I get an escaped rendering of the the correct <umbraco:macro />. But, it's not inserted when I disable escaping. It seems to me, that these runat server now, and maybe can't be inserted with XSLT. Try Codebehind or with page field in the template.
Rendering Macro Container
The new macro container is really cool but how can we render it from a xslt?
Hi CodeMaster2008
You can fetch it with <xsl:value-of select="$currentPage/* [name() = 'relatedExtra' and not(@isDoc)]" disable-output-escaping="yes" /> (where 'relatedExtra'¨is the name of your macro container datatype property on the page).
I can't get it to render well though. When I don't disable output escaping I get an escaped rendering of the the correct <umbraco:macro />. But, it's not inserted when I disable escaping. It seems to me, that these runat server now, and maybe can't be inserted with XSLT. Try Codebehind or with page field in the template.
Hi CodeMaster2008 and Simon,
I had the same issues.. but :) Solved in xslt with:
<xsl:value-of select="umbraco.library:RenderMacroContent($currentPage/yourMacroContainerProperty, $currentPage/@id)" disable-output-escaping="yes"/>
This will render al the macro's included inside your MacroContainerProperty.
Using umb 4.5.1 for this example.
Kind regards,
Domenique
Hi Domenique.
Cool, thanks for sharing.
Thanks man, that really helps.
No problem :) Just beeing part of this great community.. and got some (+1) karma to haha..
is working on a reply...