I was interested in placing a custom cPanel plugin in its own x3 display group. Are these display groups hard-coded, or can I add one?
Very long story short, there is no good way to add your own custom display group at this time.I was interested in placing a custom cPanel plugin in its own x3 display group. Are these display groups hard-coded, or can I add one?
Assuming this is still the case. We have found a way to do this, however the title of the custom section disappears with every cPanel update. Thus my question:Very long story short, there is no good way to add your own custom display group at this time....
+i can cause difficult to diagnose issues in the long-term (when one forgets what files were set to +i) and the cPanel update mechanism often ignores +i. I recommend creating a shell script /scripts/preupcp which backs up your dynamicui.conf and a /scripts/postupcp shell script to restore your backup. This way in the future if this causes abnormal behavior, the presence of preupcp and postupcp will remind you about the customization that was done.Assuming this is still the case. We have found a way to do this, however the title of the custom section disappears with every cPanel update. Thus my question:
Do you see any harm in doing the following?
chattr +i /usr/local/cpanel/base/frontend/x3/dynamicui.conf
cpanelnick, thanks a ton for this tip!Just drop a .conf file in /usr/local/cpanel/base/frontend/x3/dynamicui/
Add anything you like in the same format as /usr/local/cpanel/base/frontend/x3/dynamicui.conf
Sample Line
description=>MyGroup,file=>group_mygroup,group=>mygroup,groupdesc=>MyGroup,grouporder=>20,imgtype=>icon,subtype=>img,height=>32,type=>image,width=>32
grouporder dictates the default location.Is there any way I can get the group to appear above the "preferences" group? I tried setting grouporder=>1 and grouporder=>0 to see if this worked, the group still shows up second though after preferences, thanks.
vi /usr/local/cpanel/base/frontend/theme/dynamicui/dynamicui_support_menu.conf
groupdesc=>Support,description=>grouping of support icons,file=>support_menu,group=>support_menu,grouporder=>-10,imgtype=>icon,subtype=>img,type=>image,height=>32,width=>32