cant figure out on how to change the node author when a new node is saved. There is an "Set the content author" as an action but when using that i cant select which user that should take over the node or use php/token.

Anyone got any ideas, is this possible with rules?

Comments

mitchell’s picture

What do you want to change it to?

detot’s picture

for example i want everyone on the site to be able to create nodes of a certain node type. but after that user have created the node i want a user (uid 1 for example) to take over the ownership of that node.

mitchell’s picture

Try putting a 'load user by id' before the 'set the content author action.'

detot’s picture

Status: Active » Fixed

Thanks mitchell, could find any docs on this!
Didnt find "load user by id" but "load a user account" seems to do the work!

mitchell’s picture

Title: Change the content author on node create » Document "Load a user account"
Component: Rules Engine » Documentation
Category: support » task
Status: Fixed » Active

Great. You're welcome detot. If you have some time, that'd be really cool if you could add this to the Rules handbook.

mitchell’s picture

Title: Document "Load a user account" » Change the content author on node creation
Category: task » support
Status: Active » Fixed

Changing back.

Status: Fixed » Closed (fixed)

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