Posted by hugoncalves on January 12, 2009 at 7:14pm
I´m using rules to create a new node, populate some fields and then I wanna show to my client this new node, redirecting client to this node.
There anyway to show this recently create node using rules or getting his nid?
Thanks
Hugo Gonçalves
Comments
You can only get to the nid,
You can only get to the nid, by using another rule on the event "content has been created" - then you are able to access the nid and issue a redirect..
Rest of solution
To finish I create an action "Execute a custom php code" and add
drupal_goto('node/'.$node->nid);
And voila I´m redirecting page.
Thanks for the tip.
I'd suggest you to use the
I'd suggest you to use the action "page redirect" instead - as your approach might create problems e.g. with node access modules. (node grants aren't written)