Copied to clipboard

Flag this post as spam?

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


  • Jonathan Cohen 40 posts 115 karma points
    Mar 05, 2011 @ 17:13
    Jonathan Cohen
    0

    Recursive macro parameter outputs [$xxx] if empty.

    Hi,

    I am playing arounf a bit with razor in 4.7rc i have a razaro macro expecting a string.
    It works fine with [#xxx] both if it is empty or not, it will get "a value" or "", but if I use [$xxx] it works as long as it founds a value, else it outputs the string "[$xxx]".

    I see this both in page source and if a debug the macro.

    Any ideas, is it a bug?

    /Jonathan

  • Jonathan Cohen 40 posts 115 karma points
    Mar 05, 2011 @ 19:17
    Jonathan Cohen
    0

    More info, this is not only in Razor, seems to be in all types of macros.

    <umbraco:Macro Alias="analyticsHandler" runat="server" GoogleAnalyticsKey="[$googleAnalyticsKey]" />
    If the parameter "googleAnalyticsKey" is not filled out anywhere it writes out "[$googleAnalyticsKey]" but should be "" or null.

    This happens in 4.7rc

    I have reported it on codeplex: http://umbraco.codeplex.com/workitem/30125

     

     

Please Sign in or register to post replies

Write your reply to:

Draft