I’ve started on a new plugin using the guide at Creating Plugins | Virtualmin — Open Source Web Hosting Control Panel and while I’ve gotten as far as having it show up under “Features and Plugins” and was able to enable it I haven’t gotten it to show up in the user menu. Initially I tried category ‘servers’ then ‘System Settings’. What I’d really like is for it not to be under an existing category at all but a top level option like Dashboard or Terminal, is that possible? My virtual_feature.pl looks like this
do 'virtualmin-vpanel-lib.pl';
sub feature_name
{
return "VPanel";
}
sub feature_label
{
return "Cpanel-like interface for Virtualmin";
}
sub feature_webmin
{
my ($d, $all) = @_;
my @fdoms = grep { $_->{$module_name} } @$all;
if (@fdoms) {
return ( [ $module_name, { 'doms' => join(" ", @fdoms) } ] );
}
else {
return ( );
}
}
sub feature_links
{
my ($d) = @_;
return ( { 'mod' => $module_name,
'desc' => "Manage vpanel plugin",
'page' => 'index.cgi?dom='.$d->{'dom'},
'cat' => 'System Settings',
} );
}
sub feature_always_links
{
my ($d) = @_;
return ( { 'mod' => $module_name,
'desc' => "Manage vpanel plugin2",
'page' => 'index.cgi?dom='.$d->{'dom'},
'cat' => 'System Settings',
} );
}