I need a rule created that after saving a node, displays a summary of the content on a page and a link to proceed/go back.

This is to be used as a confirmation page. It will also display different information based on the values of some of the fields in the node.

Please reply through contact form.

Comments

waverate’s picture

By Niyas:

  1. Create one basic page with php input filter enabled for body field. Lets consider the page path is node/1
  2. Add new rule as 'rulename'
  3. Select event 'After saving new content'
  4. Go to actions and select 'Execute custom php code' and put the following code in the value field:
    <?php
    drupal_goto('node/1', array('query'=>array('nid'=> $node->nid)));
    ?>
    
  5. Save the action and the rule settings.

So now if you create new content, it will redirect to http://www.example.com/node/1?nid=(here the newly created node id).

In page node/1, you can get the value using body field similar to the below:

<?php
$nid = 0;
if(isset($_GET['nid'])){
$nid = $_GET['nid'];
}
if($nid!='0'){
$node = node_load($nid);
print_r($node);
}
?>

and save the node/1.

So whenever you create the new content, it will redirect to node/1 and the result will be the array values of the newly created content.

Please be sure to enable the php format.