By isis-1 on
$node->content['body']['#value'] returns a filtered $node->body.
Is there a way to get the raw data $node->body just as the un-filtered one inside the body textarea?
much thanks,
isis
$node->content['body']['#value'] returns a filtered $node->body.
Is there a way to get the raw data $node->body just as the un-filtered one inside the body textarea?
much thanks,
isis
Comments
Figured it out finally
figured it out finally. :)
$rbody = db_fetch_array(db_query('SELECT r.body FROM {node_revisions} r WHERE r.nid = %d ORDER BY r.timestamp DESC', $node->nid));
$node->contentbody = $rbody['body'];
Doesn't this just mean
Doesn't this just mean you've added an extra query to get basically the same information though? Edit: How about following this and saving some DB hits http://drupal.org/node/206199
Thanks.
Thanks. But I think it's not the same. (or I misunderstood what you mean...:))
I was dealing with DITA at that time, therefore what I wanted is 1. showing the filtered/rendered content (xml-filter/xslt-transformation in this case with XML Content Module) in the normal node page and 2. getting the raw DITA-formatted content for future use through custom module.
isis