[support] separation of body from cck fields?

Stefan Borchert stefan at borchert.cc
Wed Sep 12 21:08:22 UTC 2007


sander-martijn schrieb:
> Hi guys,
>
> I finally figured out how to get at the CCK field values I've created 
> and output them onto the page.  But when I output $content or $body it 
> contains the content of the extra fields as well - not only that but 
> it's all in one string so I can't even grab the bits I need as I can 
> from an Array.  Is there any way to access the information the person 
> typed into the description field without anything else? 
>   
Hi.
Try to output the node with <code>print_r($node)</code> and you'll see 
all of its attributes.
The one you would like to have is 
<code>$node->content['body']['#value']</code>.

hth,

 Stefan


More information about the support mailing list