Posted by coloryan on October 14, 2011 at 11:35am
1 follower
| Project: | Content Templates (Contemplate) |
| Version: | 7.x-1.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Issue Summary
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'] ?>