Hi,
We'd like to rearrange some of the icons in the cPanel interface, to an order that we think is more logical.
The cPanel customization instructions include ways to add and remove icons and groups, but not to rearrange icons within a group. However, I think I've found a way (extrapolating from the other customization guides). I just want to make sure it makes sense and won't break anything.
Of course, the main dynamicui.conf file could be customized, but those changes could be overwritten during a cPanel update. So customizations are generally done in custom dynamicui files which load after the main one. So, my method to rearrange cPanel icons would be as follows (in this example we'll move one icon to the front of the group):
(In this example I have changed itemorder from 6 to 1.)
So far, this seems to work without breaking anything. But I wanted to present this solution to see if it is viable (and, if so, to help anyone else who wants to reorder cPanel icons).
Thanks,
Mark
We'd like to rearrange some of the icons in the cPanel interface, to an order that we think is more logical.
The cPanel customization instructions include ways to add and remove icons and groups, but not to rearrange icons within a group. However, I think I've found a way (extrapolating from the other customization guides). I just want to make sure it makes sense and won't break anything.
Of course, the main dynamicui.conf file could be customized, but those changes could be overwritten during a cPanel update. So customizations are generally done in custom dynamicui files which load after the main one. So, my method to rearrange cPanel icons would be as follows (in this example we'll move one icon to the front of the group):
- Create our own dynamicui file as instructed in the customization documentation.
- Delete the icon in question with a skipjob directive as instructed in the documentation.
- Re-add the icon in the desired position by adding a modified version of the original directive from the master dynamicui.conf file.
Code:
description=>$LANG{'MENUWebDisk'},feature=>webdisk,file=>webdav,group=>files,height=>32,imgtype=>icon,itemdesc=>$LANG{'MENUWebDisk'},subtype=>img,type=>image,url=>webdav/accounts_webdav.html,width=>32,itemorder=>1,searchtext=>$LANG{'webdav-searchtxt'}
So far, this seems to work without breaking anything. But I wanted to present this solution to see if it is viable (and, if so, to help anyone else who wants to reorder cPanel icons).
Thanks,
Mark