Copied to clipboard

Flag this post as spam?

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


  • Ben Martin 7 posts 27 karma points
    Apr 19, 2011 @ 08:10
    Ben Martin
    0

    Macro Parameters 4.7

    I have upgraded my site to 4.7, my macros (.NET controls) are not getting passed the current node data i.e [#field] is passing an empty string.  If I hard code a vaule it works.

    <umbraco:macro id="macro1" myPara="[#field]"></umbraco:macro>

     

  • Ben Martin 7 posts 27 karma points
    Apr 20, 2011 @ 07:30
    Ben Martin
    0

    Fixed.  The field that I was trying pass was a custom type that stored xml in the db.  Umbraco when putting the values into the Context.Items["pageElements"] it uses FirstChild.Values which does not return if the xml is not wrapped in a CDATA block

Please Sign in or register to post replies

Write your reply to:

Draft