Closed (fixed)
Project:
Webform
Version:
6.x-2.0-beta6
Component:
Documentation
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
8 Apr 2008 at 00:31 UTC
Updated:
23 Jul 2008 at 10:56 UTC
The instructions for theming the output are no longer up to date since "In 6.x, _phptemplate_callback() is no longer supported" (http://drupal.org/node/132442)
I tried using a template file for webform-confirmation.tpl but it seems that I cannot access any of the variables.
Your help is appreciated.
Comments
Comment #1
anonimicer commentedSo based on http://drupal.org/node/223430 it should be something like this:
function template_preprocess_webform_confirmation(&$variables) {
$variables['vals'] = array($form_values);
}
But yet, apparently $form_values is empty so no clue of where to get the submitted values from. Please help :D
Comment #2
anonimicer commentedIs anyone familiar with how to achieve this with 6.x?
Comment #3
yngens commentedi second this request. please advice how to put webform view in two vertical columns, some fields on left column and some - on the right one.
Comment #4
nightman commentedI have tried to theme the form (want to have two columns: label on the left, field on the right) and confirmation mail for days. the instructions in THEMING.txt just don't work
Comment #5
quicksketchYes the docs for theming definitely need to be updated. I'll try to get to this soon.
Comment #6
gwlangie commentedquicksketch,
i have about 1 week to deliver a form. if you could point me i the right direction, i would appreciate it.
Comment #7
0xAFFE commentedAny news on this?
Comment #8
BenK commentedI also need help with webform theming in 6.x. I'm trying to theme the e-mail confirmation message that is sent to webform submitters, but the THEMING.txt instructions don't work either. Basically, the default e-mail confirmation message is not being overridden. I'd love some help with this or just some updated instructions.
Comment #9
quicksketchIt's not just the docs that need updating, but the code itself also. Webform in Drupal 6 should provide .tpl.php files that you can just copy directly into your theme directory. This particular request (in addition to multi-page forms in 6) are holding back the release of the 2.1 version.
Any theming gurus please take a stab at this. Otherwise I'll get to it whenever I can.
Comment #10
quicksketchI finished up the new theming instructions today, plus adding in new handy .tpl.php files. The theming works identical to the Drupal 5 version, only you can skip the step of copying and pasting code into template.php. The module now provides:
webform-confirmation.tpl.php
webform-form.tpl.php and
webform-mail.tpl.php
These template files you can just copy from the Webform module directory and drop into your site's theme, then edit them however you see fit. Now that this is done, and multipage forms are finally working in D6, I'll roll the 2.1 version for everyone's enjoyment.
Comment #11
quicksketch2.1 is out, I'd suggest everyone give it a try :)
Comment #12
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.