Copied to clipboard

Flag this post as spam?

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


  • Arie 224 posts 675 karma points
    Feb 02, 2013 @ 20:48
    Arie
    0

    6.0.0: GetProperty deprecated/changed?

    I upgraded from 4.11.1 and now the following Razor code no longer works:

    <img src="@node.GetProperty("lineCardLogo")" width="124" height="83" style="border:1px gray solid;" />

    Resulting HTML:

    <img src="umbraco.MacroEngines.PropertyResult" width="124" height="83" style="border:1px gray solid;" />

     

     

  • Arie 224 posts 675 karma points
    Feb 02, 2013 @ 20:51
    Arie
    100

    Found the fix. Apparently "GetProperty" is no longer supported in this case. Here's the new Razor code:

    <img src="@node.lineCardLogo" width="124" height="83" style="border:1px gray solid;" />

    Resulting HTML:

    <img src="/media/4535/cbi_electric.png" width="124" height="83" style="border:1px gray solid;" />

     

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies