Active
Project:
Content Templates (Contemplate)
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
14 Oct 2011 at 11:35 UTC
Updated:
14 Oct 2011 at 11:35 UTC
I've been trying to install a gmap macro in ConTemplate and hit an issue.
My macro is:
[gmap |id=usermap|center=<?php print $node->field_location[$node->language][0]['latitude'] ?>,<?php print $node->field_location[$node->language][0]['longitude'] ?>|zoom=3|width=100%|height=250px]
When I don't have the macro expander filter turned on it renders as you'd expect it:
[gmap |id=usermap|center=35.491932,-86.423276|zoom=3|width=100%|height=250px]
When I turn on the macro expander (input filter), the body field dies and no map appears.
This is the section that disappears:
<?php print $node->body[$node->language][0]['safe_value'] ?>