Hi all I have a usercontrol macro I'm trying to nest inside an xslt macro using the umbraco.library:RenderMacroContent unfortunately try as i might I can't get this to work.. just wondering if anyone had any suggestions?
Hi Tom, IIRC the problem with having an XSLT macro rendering out a UC macro is that the page lifecycle events in the UC macro won't fire - I'm guessing this is the issue you're having ?
Call usercontrol macro from xslt macro
Hi all I have a usercontrol macro I'm trying to nest inside an xslt macro using the umbraco.library:RenderMacroContent unfortunately try as i might I can't get this to work.. just wondering if anyone had any suggestions?
<xsl:variable name="contactFormMacro" select="string(concat('<?UMBRACO_MACRO macroAlias="ContactForm" fileAttachmentsId="', data [@alias = 'currentFileAttachments'], '" ></?UMBRACO_MACRO>'))" />
<xsl:value-of select="umbraco.library:RenderMacroContent($contactFormMacro, number($currentPage/@id))" disable-output-escaping="yes"/>
Hi Tom, IIRC the problem with having an XSLT macro rendering out a UC macro is that the page lifecycle events in the UC macro won't fire - I'm guessing this is the issue you're having ?
Hi Hendy,
thanks so much for getting back to me.. yes that is true and nothing is being rendered.. alas!
I guess ill try and find a workaround
Hello Tom,
Now I have to implement the same scenario, call the usercontrol macro in xslt.
Did you find the workaround for that, if so, please let me know the solution.
Thanks,
Rao.
is working on a reply...