A workaround for a pure $node->body
shadysamir - May 4, 2009 - 19:19
| Project: | Event |
| Version: | 6.x-2.x-dev |
| Component: | Code |
| Category: | support request |
| Priority: | minor |
| Assigned: | Unassigned |
| Status: | active |
Description
I couldn't find a way to get a clean body tag in my template file without all the extras, so I used this code instead:
<?php
$plain_node=node_load($node->nid);
print $plain_node->body;
?>it seems like the event module hooks to the node before it arrives to the template so I'm loading a clean version to get a clean body without "the works" that the event module adds. Can anyone review and confirm if this is the beat way to get this done?
