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.

AttachmentSize
onlytitle.jpg42.55 KB

#1

Amitaibu - October 30, 2008 - 07:31
Status:active» postponed (maintainer needs more info)

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.

Not unexpectedly, the rule itself doesn't work.

That's not a very helpful comment, is it? ;)

#2

fago - October 30, 2008 - 09:57

indeed that's missing - we could add a simple action for that like I just recently did for the title.

#3

Flying Drupalist - October 30, 2008 - 14:51

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

opensanta - March 12, 2009 - 20:12
Title:Create Content? No body or vocabs?» Include Body field settings for 'Add new content' action
Category:support request» feature request

Everything else here seems to have been addressed here.

AttachmentSize
Add new content - Action missing body.png 97.7 KB

#5

fago - March 25, 2009 - 16:46
Title:Include Body field settings for 'Add new content' action» Add "Set content body" action
Status:postponed (maintainer needs more info)» active

I'd prefer to have that in a separate action "Set content body".

#6

Chris Herberte - April 14, 2009 - 06:06

subscribe,
would be useful for creating a forum topic from node title (forum topic requires body)

#7

castawaybcn - June 24, 2009 - 15:02

I am not sure if this too old a request, but I would also be very interested in this feature

#8

aantonop - July 3, 2009 - 17:26
Status:active» needs review

Ok, here's a patch that adds a new action to set the content body.

Tested and working, on my end.

AttachmentSize
node.rules_.inc_.diff 943 bytes
node.rules_forms.inc_.diff 496 bytes

#9

fago - July 14, 2009 - 08:57
Status:needs review» needs work

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

aantonop - July 15, 2009 - 21:13

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

lasac - August 27, 2009 - 13:12

i also would need this

#12

lasac - August 30, 2009 - 00:30

to bad this wasn't in the new release... any idea when we can expect set content body?

#13

lasac - September 15, 2009 - 18:24

how is this going guys?

 
 

Drupal is a registered trademark of Dries Buytaert.