New Plugin not showing up in menu

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',
         } );
}

this help (btw interesting project)

1 Like

Thx but no I already tried that. the command seems to run ok with no errors but still nothing in the user menu. When I run re-check configuration from the web interface it says the plugin is installed, it seems to be showing up eveywhere except the menu

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.