Simple Problem! - Passing a page variable through to an xslt page
Hi,
I have declared a variable at a page level. The variable is called titleImage and appears in the config like so:
contact
So, I have created an xslt file with the correct headers, etc, followed by this:
I have set up a macro that has is backed by the xslt file and has a parameter called 'titleImage'.
So in my page template I tried to insert the macro like so:
I was expecting the output to be contact, but all I am getting is **. The data is there and I think I have done all the neccessary plumbing. Can anyone point me in the direction to what I may have missed out please?
Simple Problem! - Passing a page variable through to an xslt page
Hi,
I have declared a variable at a page level. The variable is called titleImage and appears in the config like so:
contact
So, I have created an xslt file with the correct headers, etc, followed by this:
I have set up a macro that has is backed by the xslt file and has a parameter called 'titleImage'.
So in my page template I tried to insert the macro like so:
I was expecting the output to be contact, but all I am getting is **. The data is there and I think I have done all the neccessary plumbing. Can anyone point me in the direction to what I may have missed out please?
Thanks,
David
Hi David,
[code][/code]
has no value at the time it's called using the value-of statement.
But I think I'm getting your confusion here. I guess you've been using the same syntax as for the $currentPage, right? Hmm, don't, instead use
[code][/code]
or
[code][/code]
Hope this helps.
Regards,
/Dirk
Hi David, to get access to a macro parameter you would normally add a line like this in the beginning of your xslt:
[code][/code]
Excellent. It's working fine now :)
Thanks for the help
is working on a reply...