Couple questions about the Plugin Wizard.
-------------------------
in sub uninstall{...}, is it necessary to have the parameter list?
To install:
$mgr->install_options('Guestbook', [['gb_sort_order', 'DESC', 'Specify the sort order for comment listings', 'RADIO', ['Descending','Ascending'], ['DESC','ASC'], '']]);
To uninstall:
$mgr->uninstall_options('Guestbook', [['gb_sort_order', 'DESC', 'Specify the sort order for comment listings', 'RADIO', ['Descending','Ascending'], ['DESC','ASC'], '']]);
Can uninstall_options be shortened something like below?
$mgr->uninstall_options('Guestbook', 'gb_sort_order');
-------------------------
When uninstalling a plugin... who is responsible for deleting the .cgi files? GT or developer?
I ask because the Wizard installs the .cgi file, but doesn't generate any code to delete it on uninstall.
Even deleting the plugin from the Manager leaves the .cgi files behind.
Same for templates?
-------------------------
language.txt file...
During install of plugin, I add:
my $selected_dir = "$CFG->{admin_root_path}/templates/$CFG->{default_template_set}";
my $language = GT::Config->load("$selected_dir/language.txt", { create_ok => 0, inheritance => 1, local => 1, debug => $CFG->{debug_level}, header => <<HEADER });
# This file is auto-generated and contains a perl hash of your
# language variables for the '$selected_dir' template set.
# Generated: [localtime]
# vim:syn=perl:ts=4
HEADER
$language->{GB_NAME_REQUIRED} = 'You must enter your Name.';
...
...
$language->save();
How do I delete language entries on uninstall?
Shouldn't we almost have a language_pluginname.txt file that could just be deleted?
---------------------
Plugin docs...
Under Plugins
Manager displays nothing
Wizard displays nothing
Are these docs "to come" or is something wrong on my end?
-----------------------
Thank you
Chris
RGB World, Inc. - Software & Web Development.
rgbworld.com
-------------------------
in sub uninstall{...}, is it necessary to have the parameter list?
To install:
$mgr->install_options('Guestbook', [['gb_sort_order', 'DESC', 'Specify the sort order for comment listings', 'RADIO', ['Descending','Ascending'], ['DESC','ASC'], '']]);
To uninstall:
$mgr->uninstall_options('Guestbook', [['gb_sort_order', 'DESC', 'Specify the sort order for comment listings', 'RADIO', ['Descending','Ascending'], ['DESC','ASC'], '']]);
Can uninstall_options be shortened something like below?
$mgr->uninstall_options('Guestbook', 'gb_sort_order');
-------------------------
When uninstalling a plugin... who is responsible for deleting the .cgi files? GT or developer?
I ask because the Wizard installs the .cgi file, but doesn't generate any code to delete it on uninstall.
Even deleting the plugin from the Manager leaves the .cgi files behind.
Same for templates?
-------------------------
language.txt file...
During install of plugin, I add:
my $selected_dir = "$CFG->{admin_root_path}/templates/$CFG->{default_template_set}";
my $language = GT::Config->load("$selected_dir/language.txt", { create_ok => 0, inheritance => 1, local => 1, debug => $CFG->{debug_level}, header => <<HEADER });
# This file is auto-generated and contains a perl hash of your
# language variables for the '$selected_dir' template set.
# Generated: [localtime]
# vim:syn=perl:ts=4
HEADER
$language->{GB_NAME_REQUIRED} = 'You must enter your Name.';
...
...
$language->save();
How do I delete language entries on uninstall?
Shouldn't we almost have a language_pluginname.txt file that could just be deleted?
---------------------
Plugin docs...
Under Plugins
Manager displays nothing
Wizard displays nothing
Are these docs "to come" or is something wrong on my end?
-----------------------
Thank you
Chris
RGB World, Inc. - Software & Web Development.
rgbworld.com