I've been bashing my head against a brick wall with a thumbnail Marco I wrote. I was trying to pass in parameters for width, height, id and url. I created the Macro, added the parameters and gave them names and alias. Created an XSL file to render out my image but no matter what I tried I could not get them to all appear in my Macro XML. URL came through just fine but the other three didn't. Tried all sorts.
Then after many hours I re-named the width field on a hunch to imageWidth and then it came through just fine, did the same for the other two missing fields and all is working.
So just to clear it up in my head, do Macros have reserver parameter names?
I had a similar issue with a macro parameter alias of 'parentNode'. I made a codeplex bug report for it. Looks like there may be other aliases that are problematic as well.
Try the test I noted in the bug report. If you get the same behavior, please add the aliases that cause you problems to that bug report and vote it up. If you get a different behavior, make a new bug report.
Thanks for the pointer for bug logging, once I get this site up and live I'll come up with a test case and get it logged. Might have a poke around the code too and see if I can stop any reasons why it might be doing what its doing.
Do Marco params have reserved words?
Hi All,
I've been bashing my head against a brick wall with a thumbnail Marco I wrote. I was trying to pass in parameters for width, height, id and url. I created the Macro, added the parameters and gave them names and alias. Created an XSL file to render out my image but no matter what I tried I could not get them to all appear in my Macro XML. URL came through just fine but the other three didn't. Tried all sorts.
Then after many hours I re-named the width field on a hunch to imageWidth and then it came through just fine, did the same for the other two missing fields and all is working.
So just to clear it up in my head, do Macros have reserver parameter names?
Cheers
Pete
I had a similar issue with a macro parameter alias of 'parentNode'. I made a codeplex bug report for it. Looks like there may be other aliases that are problematic as well.
http://umbraco.codeplex.com/WorkItem/View.aspx?WorkItemId=24135
Try the test I noted in the bug report. If you get the same behavior, please add the aliases that cause you problems to that bug report and vote it up. If you get a different behavior, make a new bug report.
cheers,
doug.
Hi Doug,
Thanks for the pointer for bug logging, once I get this site up and live I'll come up with a test case and get it logged. Might have a poke around the code too and see if I can stop any reasons why it might be doing what its doing.
Pete
For what its worth, I've had issues with parameters with alias' of 'height' and 'width'
Any property of class 'Macro' may cause this issue. Some of the properties are:
AccessKey
BackColor
BorderColor
BorderStyle
BorderWidth
CssClass
Enabled
EnableTheming
EnableViewState
ForeColor
Height
SkinID
TabIndex
ToolTip
Visible
Width
is working on a reply...