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

anonimicer’s picture

So 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

anonimicer’s picture

Title: Theming the output » Theming the output in 6.x

Is anyone familiar with how to achieve this with 6.x?

yngens’s picture

Version: 6.x-2.0-beta6 » 6.x-2.0-beta3
Component: Documentation » Code

i 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.

nightman’s picture

Version: 6.x-2.0-beta3 » 6.x-2.0-beta6
Component: Code » Documentation

I 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

quicksketch’s picture

Version: 6.x-2.0-beta3 » 6.x-2.0-beta6
Component: Code » Documentation

Yes the docs for theming definitely need to be updated. I'll try to get to this soon.

gwlangie’s picture

quicksketch,

i have about 1 week to deliver a form. if you could point me i the right direction, i would appreciate it.

0xAFFE’s picture

Any news on this?

BenK’s picture

I 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.

quicksketch’s picture

It'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.

quicksketch’s picture

I 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.

quicksketch’s picture

Status: Active » Fixed

2.1 is out, I'd suggest everyone give it a try :)

Anonymous’s picture

Status: Fixed » Closed (fixed)

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