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..
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!
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..
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?
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!
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.
is working on a reply...