Is there any way to get content of the body field inside computed field?
$node->body contains others fields also, I tried $node->content['body']['#value'] but it doesn't work for me.
Is there any way to get content of the body field inside computed field?
$node->body contains others fields also, I tried $node->content['body']['#value'] but it doesn't work for me.
Comments
Comment #1
jkristos commentedI would love to know the same thing. I have tried that method, and every other way of capturing that data I could think of, with no luck.
You can certainly can print the body field in a template that way though.
Comment #2
colanVersion 5 is no longer supported.