Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment | File | Size | Author |
---|---|---|---|
#1 | webform_submission_page_vars.patch | 2.81 KB | quicksketch |
Comments
Comment #1
quicksketchThanks, 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.
Comment #3
bensquare CreditAttribution: bensquare commentedNathan
many thanks for your help.
Your patch works GREATTTTT.... Everything is working now.
Ben
Comment #4
Iowagirl CreditAttribution: Iowagirl commentedHow does one add this information into their confirmation message?
Comment #5
quicksketchThis fix is included in beta 2, you should update to beta 2 which fixes this and multiple other major bugs.