Closed (fixed)
Project:
Rules
Version:
6.x-1.x-dev
Component:
Documentation
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
12 May 2009 at 15:41 UTC
Updated:
3 Aug 2009 at 19:40 UTC
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
Comment #1
mitchell commentedWhat do you want to change it to?
Comment #2
detot commentedfor 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.
Comment #3
mitchell commentedTry putting a 'load user by id' before the 'set the content author action.'
Comment #4
detot commentedThanks mitchell, could find any docs on this!
Didnt find "load user by id" but "load a user account" seems to do the work!
Comment #5
mitchell commentedGreat. You're welcome detot. If you have some time, that'd be really cool if you could add this to the Rules handbook.
Comment #6
mitchell commentedChanging back.