Gossamer Forum
Quote Reply
Plugins Options...
Just a thought Alex, some plugins may need templates bundled with them and the plugins standard options only let you add files for placement in the cgi-bin, admin directory or images folder.



Paul Wilson.
new - http://www.wiredon.net
Quote Reply
Re: Plugins Options... In reply to
Most advanced tweaking can be done by editing the Install.pm file directly. The wizard is just a way to start. It creates the shell, but can't really let you do all the stuff you need to for involved plugins.

As you start adding and developing it, the Wizard.pm file becomes somewhat obsolete.



PUGDOGŪ
PUGDOGŪ Enterprises, Inc.
FAQ: http://LinkSQL.com/FAQ


Quote Reply
Re: Plugins Options... In reply to
I was a step ahead for once and had started editing the pm files directly.

I was having a nightmare with an error saying my file couldn't be untarred and then I found I had a wrong path in there...lol

Paul Wilson.
new - http://www.wiredon.net
Quote Reply
Re: Plugins Options... In reply to
If you haven't already figured this out on your own... Alex helped me with this awhile back. Add this to your install.pm to extract newtemplate.html and put it in your default template dir:
Code:
my $file = $tar->get_file ('newtemplate.html');
$file->name ( $CFG->{admin_root_path} . '/templates/default/newtemplate.html');
unless ($file->write) {
$Plugins::YOURPLUGINNAMEHERE::error = "Unable to save template to your template directory, please check permissions. Error: $GT::Tar::error";
return;
}
AlexJ

Quote Reply
Re: Plugins Options... In reply to
Yeah thanks I had already found that code in the Plugins "Developer Guide"....shame I kept getting the path wrong...lol....I thought I was doing something wrong and almost started pulling my hair out!

Paul Wilson.
new - http://www.wiredon.net