umbraco.library:RenderMacroContent pageid not working
I am using umbraco.library:RenderMacroContent in a for loop to call an xslt macro that formats a certain value. However it doesn't seem to pass in the pageid value if it isn't set to $currentPage/@id.
Here is my code (the macro FormatSalary takes several properties of the $currentPage and combines them)
umbraco.library:RenderMacroContent pageid not working
I am using umbraco.library:RenderMacroContent in a for loop to call an xslt macro that formats a certain value. However it doesn't seem to pass in the pageid value if it isn't set to $currentPage/@id.
Here is my code (the macro FormatSalary takes several properties of the $currentPage and combines them)
If I have $currentPage/@id in for the pageid parameter FormatSalary's $currentPage is set. However with current()/@id or just @id it is not.
I don't see what I've done wrong, could someone enlighten me.
Are you trying to render an XSLT macro or a UserControl ?
I believe that it's only XSLT macros that can be rendered through RenderMacroContent.
XSLT macro although it does use a custom library function. I've included the code for the macro I call
Well, it looks fine.
Does the macro work if you don't render it through RenderMacroContent ?
Yes. And it is calling the macro as putting a simple value-of in FormatSalary shows the output.
is working on a reply...