sorry that I am new to php & drupal
in this page- webform-submission-page.tpl.php

I tried to print the $node /$sid in the submission result page ( node/submission/sid)

I see in the tpl file where $node is available, but I couldnt print any $node related stuffs out

<? print $node->webform['nid']; ?>
or
<? print $node->nid; ?>

nothing shows up so far..

thx for your advice

CommentFileSizeAuthor
#1 webform_submission_page_vars.patch2.81 KBquicksketch
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

quicksketch’s picture

Title: can't load $node /$sid variable in the submission page ($node/submission/$sid) - webform-submission-page.tpl.php » Can't load $node /$sid variable in the submission page ($node/submission/$sid) - webform-submission-page.tpl.php
Status: Active » Fixed
FileSize
2.81 KB

Thanks, it seems like our documentation at the top of webform-submission-page.tpl.php was incorrect and we weren't even passing in a $node or $submission variable to that template file. I've added this variables to the template file with the attached patch. I've committed this patch, make sure you clear your caches if you update to the development version or apply this patch.

bensquare’s picture

Nathan

many thanks for your help.

Your patch works GREATTTTT.... Everything is working now.

Ben

Iowagirl’s picture

How does one add this information into their confirmation message?

quicksketch’s picture

This fix is included in beta 2, you should update to beta 2 which fixes this and multiple other major bugs.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.