Copied to clipboard

Flag this post as spam?

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


  • Tom 713 posts 954 karma points
    Apr 28, 2011 @ 04:45
    Tom
    0

    empty macro parameter wierdness

    Hi guys I have a usercontrol macro and am passing a parameter to it:

     <umbraco:Macro ChecklistToolTip="[$approvalChecklistToolTip]"  Alias="ApproveSomething" runat="server"/>

    The wierd thing is.. if that parameter value is empty i.e. the text box in the content area is left blank, the usercontrol macro recieves the string literal: [$approvalChecklistToolTip] as it's value

     

    can someone help explain is this umbraco default behavoiur? because if so i can't check for null or empty i have to check for the string literal..

     


  • Sebastiaan Janssen 5060 posts 15522 karma points MVP admin hq
    Apr 28, 2011 @ 07:24
    Sebastiaan Janssen
    0

    What version of Umbraco are you using? This doesn't seem to happen in 4.7. 

    Are you sure that you have created the macro parameter on the macro first?

  • Tom 713 posts 954 karma points
    Apr 28, 2011 @ 07:28
    Tom
    0

    Hi Sebastiaan I'm using 4.6.1.. yes I've created a public method in the usercontrol macro.. added it and saved the macro.. added the property to the doc type and then republished the appropriate nodes and done a republish all for good measure!

  • Sebastiaan Janssen 5060 posts 15522 karma points MVP admin hq
    Apr 28, 2011 @ 07:30
    Sebastiaan Janssen
    1

    I'm not sure what's going on then. As 4.6.1 was a quite low quality release, I do encourage you to upgrade to 4.7 if at all possible.

     

Please Sign in or register to post replies

Write your reply to:

Draft