I'd like to be able to print the HTML with my nodes, at the moment I can use $node->field_content[0]['value'] - this is of course exports the field without html. I need to get access to the 'view' or 'safe' variables that include the html versions of the field.
Using a var_export($node,TRUE) does not show up 'view' or 'safe'... I've had a look in the views_node_feed.module and I can't see anything in there. Is this something to do with the views module?
Comments
Comment #1
andrewlevine commentedIt sounds like you want to pass the node through node_view (http://api.drupal.org/api/function/node_view/6) or theme('node', $node). Let me know if that works for you
Comment #2
jptarantoThanks muchly!
i used
<?php print node_view($node,FALSE,TRUE); ?>and added my xml and CDATA tags and all that to a custom node.tpl.php file, displaying the teaser to the site, and the full view to the node feed.It's a little hacky and wouldn't really work if you wanted to have both the teaser and full view on your site. Perhaps there is a function to call a defined .tpl.php file just for the node feed.
Anyway working for me.
Comment #3
andrewlevine commentedGlad this worked for you