Closed (fixed)
Project:
Rules
Version:
6.x-1.x-dev
Component:
Rules Core
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
17 Nov 2008 at 22:25 UTC
Updated:
26 May 2012 at 18:23 UTC
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
Comment #1
amitaibuIf 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.
Comment #2
nickgs commentedI set this up and it works just as I need it to.
Thanks for your response!
Nick
Comment #4
akahn commentedI 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.
Comment #5
falco8 commentedHi 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.
Comment #6
akahn commentedfalco, 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.
Comment #7
falco8 commentedAwesome, thanks for the tip mate.
Comment #8
rvarkonyi commentedEdit 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
Comment #9
jasom commentedhttp://drupal.org/node/181546#comment-3002566 Worked for me
Comment #10
mitchell commentedUpdated component.