Show an added content type.

Events happening in the community are now at Drupal community events on www.drupal.org.
hugoncalves's picture

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,

fago's picture

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

hugoncalves's picture

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

fago's picture

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)

Rules

Group organizers

Group categories

Categories

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: