Closed (fixed)
Project:
Webform
Version:
6.x-3.11
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
6 Mar 2011 at 09:23 UTC
Updated:
1 Sep 2011 at 17:01 UTC
Jump to comment: Most recent file
I am using 3.9's default webform-submission-page.tpl.php which contains
<?php if ($submission_actions || $submission_navigation): ?>
<div class="clear-block">
<?php print $submission_actions; ?>
<?php print $submission_navigation; ?>
</div>
<?php endif; ?>
The $submission_actions and $submission_navigation is being displayed fine at node/[NID]/submission/[SID]. However, while in print mode (print/[NID]/submission/[SID]) $submission_navigation is missing. Am I missing something? Thus used to work fine until 3.6.
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | webform_submission_navigation2-d6.patch | 4.96 KB | quicksketch |
| #4 | webform_submission_navigation2-d7.patch | 5.03 KB | quicksketch |
Comments
Comment #1
roball commentedAnything I am missing here? It seems like a bug to me.
Comment #2
quicksketchIt's an intentional change I made in the 3.7 version. Since the navigation doesn't have anything to do with printing or with generating PDFs. The idea of print modes is to reduce as much information as possible after all. Having Next and Previous links on your printout doesn't really make any sense.
Comment #3
roball commentedIn one of my Drupal sites I needed the Next and Previous links in the Print view: a lot of people filled in their reimbursement requests through Webform. The secretary opened the first Print view of the submission result, printed it out, and just clicked next to print out the next one etc. They need to have paper print outs of all submission results.
Now that's no more possible :-( The secretary would have much more work to print all results. Can you please rethink about the removal of that feature? It came a bit surprising that a feature that was used since 3.0 suddenly have been silently dropped in 3.7.
Comment #4
quicksketchI was opposed to simply restoring this functionality since it was an intentional change to remove the navigation from the print and PDF modes, but this patch at least gives you the option of restoring the navigation if needed. Rather than completely removing the $submission_navigation and $submission_actions variables, they're now always generated but only printed out if $mode == 'display' or 'form'. You can now make them always print out overriding the webform-submission-page.tpl.php file.
I've committed these patches to the 3.x branches and it will be in the 3.12 release.
Comment #5
roball commentedOK fine, thanks. Will this functionality officially find its way back into a module's release?
Comment #6
quicksketchI've committed these patches and I'm preparing for a 3.12 release before the end of the week.
Comment #7
roball commentedThanks again. Webform 6.x-3.12 now handles this perfectly. Should anybody else need this fuctionality, here is how my
webform-submission-page.tpl.phpcurrently looks like: