How to create custom message to user after rule has triggered?

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

Hi,
I need to show a custom page to the user after a node has been created. The page needs to reflect the new node, so I need to pass some data to the page (e.g., the nid or some extracted data from the node).

What is the best way to achieve this? I'm no Drupal expert, so I have a feeling I've missed something basic here... :)

The "Show message" action didn't do the trick (the message field is too limited for my needs). I figured I could use "Page redirect", but afaik I can't pass variables to the new page. I would rather not use URL params, since I don't want it to be possible to "replay" the custom page. Can I use a PHP snippet to load a node, pass a variable to it and show it, instead of doing a page redirect?

Any suggestions would be appreciated!

/Dag

Comments

By default drupal redirect to

bveb's picture

By default drupal redirect to created page. The only thing you need to do is specifying an action that creates a tokenized custom message. You can find it in System category of actions list.

Rules

Group organizers

Group categories

Categories

Group notifications

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