Gossamer Forum
Home : Products : Gossamer Forum : Development, Plugins and Globals :

Compile Plugin Template File

Quote Reply
Compile Plugin Template File
I am writing a plugin where I use a template, which is added automatically to the templates/default/local directory (like in jagermans PrivatePostReply plugin).

Code:
# The following section will unarchive attached files into the
# proper location.
my $file;

# Copying templates/default/local/alt_search_results.html to $CFG->{admin_root_path} directory.
$file = $tar->get_file ('templates/default/local/alt_search_results.html');
$file->name("$CFG->{admin_root_path}/templates/default/local/alt_search_results.html");
$file->write or return AltSearch->error("Unable to extract file '$CFG->{admin_root_path}/templates/default/local/alt_search_results.html': $GT::Tar::error", 'WARN');

The template is saved OK, but it isn't compiled automatically. How can I make it to compile automatically? Right now, if have to go to the template editor and save it (which is annoying when developping....).

Thanks for any help.

Ivan
-----
Iyengar Yoga Resources / GT Plugins
Subject Author Views Date
Thread Compile Plugin Template File yogi 4198 Jan 10, 2002, 1:34 AM
Thread Re: [yogi] Compile Plugin Template File
Jagerman 4045 Jan 10, 2002, 1:48 AM
Thread Re: [jagerman] Compile Plugin Template File
yogi 4042 Jan 10, 2002, 1:58 AM
Thread Re: [yogi] Compile Plugin Template File
Jagerman 4037 Jan 10, 2002, 2:02 AM
Post Re: [jagerman] Compile Plugin Template File
yogi 4032 Jan 10, 2002, 2:09 AM