Copied to clipboard

Flag this post as spam?

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


  • Paul Sørensen 304 posts 650 karma points
    Oct 11, 2009 @ 01:15
    Paul Sørensen
    0

    Fields in template

    This is the last part of a macro. I'm trying to insert the value from 2 fields into my template but this fails. How should it be ? Line 12: Zoom="12" Line 13: ControlWidth="<umbraco:Item field="ControlWidth" runat="server"></umbraco:Item>" Line 14: ControlHeight="<umbraco:Item field="ControlHeight" runat="server"></umbraco:Item>" Line 15: Alias="GoogleMaps" runat="server"> Line 16: </umbraco:Macro> Thanks Paul S

  • Aaron Powell 1708 posts 3046 karma points c-trib
    Oct 11, 2009 @ 03:43
    Aaron Powell
    0

    It'd be useful if you told us how it was failing.

    It's most likely because you've got the <umbraco:Item /> control wrapped in double quotes (") which it uses itself. Try using single quotes (') to insert the item data into the ControlWidth & ControlHeight properties

  • Wayne 13 posts 33 karma points
    Oct 11, 2009 @ 05:04
    Wayne
    0

    Hi Paul,

    Why not use

    <umbraco:Macro
    Zoom="12"
    ControlWidth="[#ControlWidth]"
    ControlHeight=
    "[#ControlHeight]"
    Alias="GoogleMaps" runat="server">
    </umbraco:Macro>

    See macro parameters syntax for details on macro parameters.

  • Paul Sørensen 304 posts 650 karma points
    Oct 11, 2009 @ 10:56
    Paul Sørensen
    0

    Thank Xian

    You filled a hole in my knowlegde

Please Sign in or register to post replies

Write your reply to:

Draft