Is it possible to move custom links and categories in Virtualmin Pro?

SYSTEM INFORMATION
OS type and version Ubuntu Linux 22.04.4
Webmin version 2.111
Usermin version 2.010
Virtualmin version 7.20.2 Pro
Theme version 21.10
Package updates All installed packages are up to date

Would be nice to place the custom links and categories in places you deem fit.

Example:
I have a custom link for https://www.virtualmin.com/docs/getting-started/how-to-create-virtual-servers/
and I would like to move this link under Create Virtual Server.

Everything I create including categories just places it all under File Manger.

Would be nice if I could get some input if I am missing something here. Other wise what use is this option if you can’t put links or categories as I mentioned above where “you deem fit”.

Or I can transfer this to blueskies and let it sit and fade away to archives…

I think you’d have to write a little code to have custom links appear in arbitrary locations.

You can add stuff to menus with a plugin using the feature_links function Creating Plugins | Virtualmin — Open Source Web Hosting Control Panel

But, making a whole plugin just to add links is maybe overkill. I’m not sure how easy it’d be to make it so Custom Links can appear in other locations…it feels like it’d be vaguely easy, if it uses the feature_links API call, but maybe not easy if it doesn’t.

Edit: It does use feature_links and menu category can be configured.

you have pro does this not do what you want

1 Like

Oh! That does look like you can do everything the feature_links API can do, already.

So, it’s a little obscure how to put them in categories, though. You can hover over the categories in the menu to see what they’re called (look for cat_server or cat_logs or whatever, where the category is named server or logs), and then you can add that category on the main Custom Links page, and then select it when creating a custom link.

And, if you want it in the main menu, outside of a category, just don’t select a category, leaving it at “None”.

But, this sounds bug-like. Can you post a screenshot of what you’re creating in Custom Links and then what it actually looks like in the menu?

You have to create the Categories, It doesn’t use existing ones.

No, unfortunately it doesn’t


Even if you manually enter in the Category name that already exist in the menu, it will create a duplicate.

Thank you for your input.

That’s not a duplicate. There wasn’t a category named “Create Virtual Server” until you created it.

You can have a link appear in the main menu, by just not selecting a category. But, you can’t control the order.

How? I would like the link to be moved under the the actual Create Virtual Server.
Any links I create end up under File Manger.

If I create a Category that I would like to place under Disable and Delete on the Menu bar. As of now this is impossible. Categories and links all appear under the File Manager as shown in screen shot.

Or at least have it set to display custom links and categories under Disable and Delete after a bar of some sort.

You should be able to create a custom link category named “Disable and Delete”, and then add your custom links to that category. Then they’ll be combined with the standard links inside “Disable and Delete”.

1 Like

Thank you, That solves creating a link to add in directories already on the menu bar.

I guess I’ll have to live with the custom categories and links sitting under File Manager.
I’ll look into the “Creating Plugins” as @Joe has mentioned.

I have an idea for creating a plugin that can be turned on for beginners of Virtualmin that will give them quick access to the documentation in reference to what they need help with.
I know some companies have their own documentation as well, and should give them the opportunity to modify the links. When the links are no longer needed, they would be able to disable the plugin.

So I guess I better get started on learning how to code…

That won’t do any better. The Custom Links plugin has all the same options as feature_links. I don’t think there’s a way to force an item above standard menu items.

Oh, you could maybe do it at the theme level, though I don’t know how…you can add overrides for the them JS and CSS, but I don’t know exactly what it’d take to re-order the menus.

Build the menus in the custom links and then use JavaScript to move their position.

Not ideal, but it should work as long as the menu items have IDs, if not can still be done but a lot harder

Thank you for the ideas. If I were to do this at theme level, I would make a tab that slides out.
This way I could put them in the order needed.
I have other ideas, but I need to check out github tomorrow to see what my options are.

1 Like

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