Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Peter Duncanson 430 posts 1360 karma points c-trib
    Jul 30, 2009 @ 14:03
    Peter Duncanson
    1

    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

  • Douglas Robar 3570 posts 4711 karma points MVP ∞ admin c-trib
    Jul 30, 2009 @ 14:45
    Douglas Robar
    1

    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.

  • Peter Duncanson 430 posts 1360 karma points c-trib
    Aug 02, 2009 @ 13:19
    Peter Duncanson
    0

    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

  • elspiko 133 posts 302 karma points
    Aug 10, 2009 @ 15:38
    elspiko
    0

    For what its worth, I've had issues with parameters with alias' of 'height' and 'width'

  • Masood Afzal 176 posts 522 karma points
    Aug 10, 2009 @ 15:57
    Masood Afzal
    0

    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

     

     

Please Sign in or register to post replies

Write your reply to:

Draft