I'm confused about what the PageId property of RenderMacroContent does. If i pass in a pageId to a XSLT Macro then should the variable $currentPage not use this? If not, how should the XSLT process the PageId from the RenderMacroContent? At the moment my XSLT is displaying the page of the site it is on and not the value from RenderMacroContent.
[quote=danimal]I'm confused about what the PageId property of RenderMacroContent does. If i pass in a pageId to a XSLT Macro then should the variable $currentPage not use this? If not, how should the XSLT process the PageId from the RenderMacroContent? At the moment my XSLT is displaying the page of the site it is on and not the value from RenderMacroContent.[/quote]
Just trying to figure this out myself...so bump !!!
Hey Matt, As far as I remember using RenderMacroContent.The ID you pass in using RenderMacroContent, is to be used as the context for the CurrentPage so you will not need to update your XSLT macro.
In that case it doesn't look like its working as it seems $currentPage is always refering to the page that is rendering the macro, rather than page whos id is passed in (Which I think is the issue that was rased by Dan in the first place).
$currentPage and RenderMacroContent
I'm confused about what the PageId property of RenderMacroContent does. If i pass in a pageId to a XSLT Macro then should the variable $currentPage not use this? If not, how should the XSLT process the PageId from the RenderMacroContent? At the moment my XSLT is displaying the page of the site it is on and not the value from RenderMacroContent.
[quote=danimal]I'm confused about what the PageId property of RenderMacroContent does. If i pass in a pageId to a XSLT Macro then should the variable $currentPage not use this? If not, how should the XSLT process the PageId from the RenderMacroContent? At the moment my XSLT is displaying the page of the site it is on and not the value from RenderMacroContent.[/quote]
Just trying to figure this out myself...so bump !!!
This helped me work around this problem : http://web-garden.co.uk/2008/8/1/a-general-purpose-umbraco-imagegen-solution-using-xsl-call-template-instead-of-rendermacrocontent.aspx
But still wondering why RenderMacroContent didn't render the page passed in as a parameter
Anybody resolved this issue as I'm having the same problem. Should currentPage update? or is there a way to access the id passed in?
Hey Matt,
As far as I remember using RenderMacroContent.The ID you pass in using RenderMacroContent, is to be used as the context for the CurrentPage so you will not need to update your XSLT macro.
http://en.wikibooks.org/wiki/Umbraco/Reference/umbraco.library/RenderMacroContent
Warren
In that case it doesn't look like its working as it seems $currentPage is always refering to the page that is rendering the macro, rather than page whos id is passed in (Which I think is the issue that was rased by Dan in the first place).
Any ideas?
Matt
Bump. I'd love to see a solution to this! It definitely, definitely doesn't pass in the id as currentPage.
is working on a reply...