Hi Paul,
I tried the following
1. Added <%load_params%> to the template but got an error Unknown tag: load_params.
2. Set up a global named my_param with line
sub { return $IN->get_hash} and inserted the line
<%my_param%> in the template.
I was puzzled as to how to access values in my_param but by analogy to the section 'Gossamer Forum Developers Guide : Enhancing Gossamer Forum' I tried <%MY_VAR%> [the page was called via 'http://the_path/forum.cgi?forum=9;MY_VAR=TEST ]
3. When that didn't work, I created another global variable that looks like:
# your template globals for 'default' template set.
# Generated on: Fri Feb 21 01:08:49 2003
# vim: syn=perl
{
'drb_hash' =>"sub {
use GForum qw/:user :forum $IN $DB $CFG $USER $GUEST $SESSION/;
$MY_VAR=$IN->(MY_VAR);
return {my_var=>'$MY_VAR' ; }"
};thinking the variable would be accessed via <%my_var%>
but I failed miserably with multiple errors.
Every other template system I've used has made obtaining cgi parameters a snap. I keep thinking that I must be missing something obvious.
Any more suggestions ?
Thanks
Bob
I tried the following
1. Added <%load_params%> to the template but got an error Unknown tag: load_params.
2. Set up a global named my_param with line
sub { return $IN->get_hash} and inserted the line
<%my_param%> in the template.
I was puzzled as to how to access values in my_param but by analogy to the section 'Gossamer Forum Developers Guide : Enhancing Gossamer Forum' I tried <%MY_VAR%> [the page was called via 'http://the_path/forum.cgi?forum=9;MY_VAR=TEST ]
3. When that didn't work, I created another global variable that looks like:
Code:
# This file is auto generated and contains a perl hash of # your template globals for 'default' template set.
# Generated on: Fri Feb 21 01:08:49 2003
# vim: syn=perl
{
'drb_hash' =>"sub {
use GForum qw/:user :forum $IN $DB $CFG $USER $GUEST $SESSION/;
$MY_VAR=$IN->(MY_VAR);
return {my_var=>'$MY_VAR' ; }"
};
but I failed miserably with multiple errors.
Every other template system I've used has made obtaining cgi parameters a snap. I keep thinking that I must be missing something obvious.
Any more suggestions ?
Thanks
Bob