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).
# 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
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