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

**URL:** <https://forum.virtualmin.com/t/is-it-possible-to-move-custom-links-and-categories-in-virtualmin-pro/128187>\
**Category:** Authentic Theme\
**Created:** [July 26, 2024, 3:07pm UTC](https://forum.virtualmin.com/t/is-it-possible-to-move-custom-links-and-categories-in-virtualmin-pro/128187 "2024-07-26T15:07:45Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![cyberndt](https://cdn.forum.virtualmin.com/letter_avatar_proxy/v4/letter/c/a4c791/32.png) [@cyberndt](https://forum.virtualmin.com/u/cyberndt)\
**Post date:** [July 26, 2024, 3:07pm UTC](https://forum.virtualmin.com/t/is-it-possible-to-move-custom-links-and-categories-in-virtualmin-pro/128187/1 "2024-07-26T15:07:45Z")

</div>

| 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.

---

<div class="post-metadata">

**Author:** ![cyberndt](https://cdn.forum.virtualmin.com/letter_avatar_proxy/v4/letter/c/a4c791/32.png) [@cyberndt](https://forum.virtualmin.com/u/cyberndt)\
**Post date:** [July 29, 2024, 5:13pm UTC](https://forum.virtualmin.com/t/is-it-possible-to-move-custom-links-and-categories-in-virtualmin-pro/128187/2 "2024-07-29T17:13:38Z")

</div>

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…

---

<div class="post-metadata">

**Author:** ![Joe](https://cdn.forum.virtualmin.com/user_avatar/forum.virtualmin.com/joe/32/9_2.png) [@Joe](https://forum.virtualmin.com/u/Joe)\
**Post date:** [July 29, 2024, 5:54pm UTC](https://forum.virtualmin.com/t/is-it-possible-to-move-custom-links-and-categories-in-virtualmin-pro/128187/3 "2024-07-29T17:54:31Z")

</div>

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](https://www.virtualmin.com/docs/development/creating-plugins/#feature_linksdomain)

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.

---

<div class="post-metadata">

**Author:** ![shoulders](https://cdn.forum.virtualmin.com/user_avatar/forum.virtualmin.com/shoulders/32/10086_2.png) [@shoulders](https://forum.virtualmin.com/u/shoulders)\
**Post date:** [July 29, 2024, 6:09pm UTC](https://forum.virtualmin.com/t/is-it-possible-to-move-custom-links-and-categories-in-virtualmin-pro/128187/4 "2024-07-29T18:09:01Z")

</div>

you have pro does this not do what you want

 ![image](https://cdn.forum.virtualmin.com/uploads/default/original/2X/5/549e4e488687c31ef0428e200784e8ed0d64aefb.png)

---

<div class="post-metadata">

**Author:** ![Joe](https://cdn.forum.virtualmin.com/user_avatar/forum.virtualmin.com/joe/32/9_2.png) [@Joe](https://forum.virtualmin.com/u/Joe)\
**Post date:** [July 29, 2024, 6:15pm UTC](https://forum.virtualmin.com/t/is-it-possible-to-move-custom-links-and-categories-in-virtualmin-pro/128187/5 "2024-07-29T18:15:51Z")

</div>

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”.

> [@cyberndt](#):
>
> Everything I create including categories just places it all under File Manger.

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?

---

<div class="post-metadata">

**Author:** ![cyberndt](https://cdn.forum.virtualmin.com/letter_avatar_proxy/v4/letter/c/a4c791/32.png) [@cyberndt](https://forum.virtualmin.com/u/cyberndt)\
**Post date:** [July 29, 2024, 6:47pm UTC](https://forum.virtualmin.com/t/is-it-possible-to-move-custom-links-and-categories-in-virtualmin-pro/128187/6 "2024-07-29T18:47:02Z")

</div>

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

 ![create-custom-category](https://cdn.forum.virtualmin.com/uploads/default/original/2X/b/b806052ef01ab2e7c29dcda1cfaa32808bc35071.png)

> [@shoulders](#):
>
> you have pro does this not do what you want

No, unfortunately it doesn’t

 ![create-custom-link](https://cdn.forum.virtualmin.com/uploads/default/original/2X/2/21a1b212aa278bc2a9f19c5a7e1c42fdcf7f7d30.png)  
Even if you manually enter in the Category name that already exist in the menu, it will create a duplicate.

> [@Joe](#):
>
> Can you post a screenshot

 ![under-file-manager](https://cdn.forum.virtualmin.com/uploads/default/original/2X/c/c9a47c365bec07d271fb782aab7f1160750fcd42.png)

Thank you for your input.

---

<div class="post-metadata">

**Author:** ![Joe](https://cdn.forum.virtualmin.com/user_avatar/forum.virtualmin.com/joe/32/9_2.png) [@Joe](https://forum.virtualmin.com/u/Joe)\
**Post date:** [July 29, 2024, 6:50pm UTC](https://forum.virtualmin.com/t/is-it-possible-to-move-custom-links-and-categories-in-virtualmin-pro/128187/7 "2024-07-29T18:50:49Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![cyberndt](https://cdn.forum.virtualmin.com/letter_avatar_proxy/v4/letter/c/a4c791/32.png) [@cyberndt](https://forum.virtualmin.com/u/cyberndt)\
**Post date:** [July 29, 2024, 6:59pm UTC](https://forum.virtualmin.com/t/is-it-possible-to-move-custom-links-and-categories-in-virtualmin-pro/128187/8 "2024-07-29T18:59:29Z")

</div>

> [@Joe](#):
>
> 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.

---

<div class="post-metadata">

**Author:** ![Jamie](https://cdn.forum.virtualmin.com/user_avatar/forum.virtualmin.com/jamie/32/8589_2.png) [@Jamie](https://forum.virtualmin.com/u/Jamie)\
**Post date:** [July 29, 2024, 7:26pm UTC](https://forum.virtualmin.com/t/is-it-possible-to-move-custom-links-and-categories-in-virtualmin-pro/128187/9 "2024-07-29T19:26:47Z")

</div>

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”.

---

<div class="post-metadata">

**Author:** ![cyberndt](https://cdn.forum.virtualmin.com/letter_avatar_proxy/v4/letter/c/a4c791/32.png) [@cyberndt](https://forum.virtualmin.com/u/cyberndt)\
**Post date:** [July 29, 2024, 7:58pm UTC](https://forum.virtualmin.com/t/is-it-possible-to-move-custom-links-and-categories-in-virtualmin-pro/128187/10 "2024-07-29T19:58:16Z")

</div>

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…

---

<div class="post-metadata">

**Author:** ![Joe](https://cdn.forum.virtualmin.com/user_avatar/forum.virtualmin.com/joe/32/9_2.png) [@Joe](https://forum.virtualmin.com/u/Joe)\
**Post date:** [July 29, 2024, 10:05pm UTC](https://forum.virtualmin.com/t/is-it-possible-to-move-custom-links-and-categories-in-virtualmin-pro/128187/11 "2024-07-29T22:05:07Z")

</div>

> [@cyberndt](#):
>
> 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.

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.

---

<div class="post-metadata">

**Author:** ![Joe](https://cdn.forum.virtualmin.com/user_avatar/forum.virtualmin.com/joe/32/9_2.png) [@Joe](https://forum.virtualmin.com/u/Joe)\
**Post date:** [July 29, 2024, 10:06pm UTC](https://forum.virtualmin.com/t/is-it-possible-to-move-custom-links-and-categories-in-virtualmin-pro/128187/12 "2024-07-29T22:06:48Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![shoulders](https://cdn.forum.virtualmin.com/user_avatar/forum.virtualmin.com/shoulders/32/10086_2.png) [@shoulders](https://forum.virtualmin.com/u/shoulders)\
**Post date:** [July 29, 2024, 10:11pm UTC](https://forum.virtualmin.com/t/is-it-possible-to-move-custom-links-and-categories-in-virtualmin-pro/128187/13 "2024-07-29T22:11:39Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![cyberndt](https://cdn.forum.virtualmin.com/letter_avatar_proxy/v4/letter/c/a4c791/32.png) [@cyberndt](https://forum.virtualmin.com/u/cyberndt)\
**Post date:** [July 30, 2024, 12:21am UTC](https://forum.virtualmin.com/t/is-it-possible-to-move-custom-links-and-categories-in-virtualmin-pro/128187/14 "2024-07-30T00:21:44Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![system](https://cdn.forum.virtualmin.com/uploads/default/original/2X/c/cd96d761e326db4b2bef94886a639109bd7a8e76.svg) [@system](https://forum.virtualmin.com/u/system)\
**Post date:** [September 28, 2024, 12:22am UTC](https://forum.virtualmin.com/t/is-it-possible-to-move-custom-links-and-categories-in-virtualmin-pro/128187/15 "2024-09-28T00:22:37Z")

</div>

Closed on September 28, 2024, 12:22am UTC

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