Hello all. Simple question, using the token module with rules I want to fire off an email with the nodes body in it. I am trying to use [node:body] with no avail.

I see the token reference and all of my other CCK tokens work fine. It just seems like there is no node body token.

Any idea's?

Thanks.

Nick

Comments

amitaibu’s picture

Status: Active » Fixed

If you already use CCK you can create a cck field called body or description and use it instead of core's body.
There is also an issue about creating a token for the first 100/200/400 letters of body, but it's an old issue and I doubt if it will be committed any time soon.

nickgs’s picture

I set this up and it works just as I need it to.

Thanks for your response!

Nick

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.

akahn’s picture

I just wanted to point people to #181546: Token for body of node, which offers some solutions for people who don't want to use a CCK field instead of their node's body field. To be more specific, you can write a small module that exposes the node body as a token and use that on your site.

falco8’s picture

Hi guys,

If you were to create a new cck field to be used as the body, how would you hide the core body when creating content?
Thanks.

akahn’s picture

falco, you should do a search on using hook_form_alter(). This allows you to alter forms in a custom module in order to do things like hide fields on the node form. If you don't have any luck, try asking for help in the forums.

falco8’s picture

Awesome, thanks for the tip mate.

rvarkonyi’s picture

Edit the Content type in question, expand "Submission form settings" and delete the "Body" from the Body field label box and submit the form. Your body field must dissappear.

Rob

jasom’s picture

mitchell’s picture

Component: Miscellaneous » Rules Core

Updated component.