Add "Set content body" action
Flying Drupalist - October 30, 2008 - 03:55
| Project: | Rules |
| Version: | 6.x-1.x-dev |
| Component: | Rules Engine |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | needs work |
Description
I'm trying to set up rules to create a content page. But the create content action only gives a field to set the title, but where's the body, and the vocab, so I can tell rules where to put the new content?
Not unexpectedly, the rule itself doesn't work.
| Attachment | Size |
|---|---|
| onlytitle.jpg | 42.55 KB |

#1
For the vocab you should use other actions - Load vocab; Add term to content.
I'm not sure if you can change the body without some PHP, but if it was a CCK field you can use CCK actions provided by rules.
That's not a very helpful comment, is it? ;)
#2
indeed that's missing - we could add a simple action for that like I just recently did for the title.
#3
Thanks for your help.
"That's not a very helpful comment, is it? ;)"
I only meant that there was no new content created, which doesn't surprise me as the content had nothing to go on to be created, but it actually sounds like you expect there to be a content despite there being no body and taxonomy, which means that there's a different problem.
I'll try a custom type with cck and the load term action. Thanks, will get back.
#4
Everything else here seems to have been addressed here.
#5
I'd prefer to have that in a separate action "Set content body".
#6
subscribe,
would be useful for creating a forum topic from node title (forum topic requires body)
#7
I am not sure if this too old a request, but I would also be very interested in this feature
#8
Ok, here's a patch that adds a new action to set the content body.
Tested and working, on my end.
#9
I think it should also contain the usual input format selector and set it, as when you are usually editing a node body. Also please create patches from the module's root directory.
#10
hm not sure how to set input selector, but I agree. Let me do some more studying. Thanks for your patience and suggestions!
I will see if I can improve this and then re-submit from root of modules.
#11
i also would need this
#12
to bad this wasn't in the new release... any idea when we can expect set content body?
#13
how is this going guys?