[support] separation of body from cck fields?

sander-martijn sander at sander-martijn.com
Wed Sep 12 23:13:01 UTC 2007


Thanks!  I had done the first part but still couldn't get it - I think 
that I didn't include the # before the value.

Stefan Borchert wrote:
> 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
>   

-- 
------------------------------------------------------------------------

sander-martijn <mailto:sander at sander-martijn.com>
interface developer | architect
sander at sander-martijn.com <mailto:sander at sander-martijn.com>
www.sander-martijn.com <http://www.sander-martijn.com>

------------------------------------------------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.drupal.org/pipermail/support/attachments/20070912/954d6633/attachment.htm 


More information about the support mailing list