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
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
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
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
Hi Paul,
Why not use
See macro parameters syntax for details on macro parameters.
Thank Xian
You filled a hole in my knowlegde
is working on a reply...