Hi,
If you want to add a global, try something like:
my $template_set = $CFG->{build_default_tpl};
my $globals = GT::Config->load($CFG->{admin_root_path} . "/templates/$template_set/globals.txt", { inheritance => 1, compile_subs => 'Links', local => 1, cache => 1 });
$globals->{newkey} = 'new value';
$globals->save;
Cheers,
Alex
--
Gossamer Threads Inc.
If you want to add a global, try something like:
my $template_set = $CFG->{build_default_tpl};
my $globals = GT::Config->load($CFG->{admin_root_path} . "/templates/$template_set/globals.txt", { inheritance => 1, compile_subs => 'Links', local => 1, cache => 1 });
$globals->{newkey} = 'new value';
$globals->save;
Cheers,
Alex
--
Gossamer Threads Inc.