XUpload - global variables in files LOOP

Message
Author
danx
Posts: 2
Joined: Dec 11, 2008 1:40 pm

global variables in files LOOP

#1 Postby danx » Dec 11, 2008 1:43 pm

Hi,

we would like to use some job variables (<TMPL_VAR customer_id>, <TMPL_VAR customer_name>, <TMPL_VAR job_name>) in the confirm_email.html template (section LOOP files).

But global TMPL vars are not parsed in the files loop. Any ideas?

thanks & regards,
Daniel

User avatar
PilgrimX182
Posts: 2186
Joined: Mar 22, 2006 1:39 pm

#2 Postby PilgrimX182 » Dec 11, 2008 1:51 pm

Good question ;)
In upload.cgi replace this line:

Code: Select all

my $tmpl = HTML::Template->new( filename => "Templates/confirm_email.html", die_on_bad_params => 0 );
with

Code: Select all

my $tmpl = HTML::Template->new( filename => "Templates/confirm_email.html", die_on_bad_params => 0,global_vars => 1 );

danx
Posts: 2
Joined: Dec 11, 2008 1:40 pm

#3 Postby danx » Dec 11, 2008 5:25 pm

works fine - thank your for your quick response!

Daniel