I'm using the "Add new content" action to create three different nodes based on the information provided during the creation of another node. Unfortunately, i'm not able to populate the "Body" field of the new nodes. I'm only able to set their title and populate CCK fields. Is this a bug? A lacking feature? Any idea on how to fix this?

Thanks in advance, guys.

Comments

estimi’s picture

Priority: Major » Critical

Anyone?

mitchell’s picture

Component: User interface » Rules Engine
Priority: Critical » Major
Status: Active » Fixed

Hmm, guess you figured this out in Populating the body field on new nodes
. Also a possible solution: #181546: Token for body of node.

Status: Fixed » Closed (fixed)

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

pbeakley’s picture

Status: Closed (fixed) » Active

I've run into this myself and I'm perplexed as to why this was marked "fixed." We can generate a tokenized system email, we can set a node title, but we can't save content to the node body, one of the most common node fields found?

My use case is that the system posts a "Welcome to your new group" blog posting when someone creates a group, and I want that content to contain basic how-to information and, ideally, other tokenized content pulled from the group's creation.

Many apologies if marking this "active" is not cool, but recommending custom PHP code sure as heck doesn't seem "fixed" to me.

adnasa’s picture

Status: Active » Needs review
StatusFileSize
new1.31 KB

I had the exact same need. I solved this by adding another argument to the rules_action_add_node.

Unfortunately it is a textfield, since I haven't studied the rules API properly :-P
but it gets the job done and should have support for tokens as well.

Cheers!

Status: Needs review » Needs work

The last submitted patch, 1041194-populate_body_node_add_action.patch, failed testing.

mitchell’s picture

Status: Needs work » Closed (fixed)

Whoah... please don't reopen old issues. It's a complete stack exchange from my time here before. Just open a new issue....