Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

WHM theme command2 rebuildtmpl

Discussion in 'User Experience' started by Thijssss, Apr 25, 2013.

  1. Thijssss

    Thijssss Member

    Joined:
    Nov 20, 2012
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    I cloned the x WHM theme and the idea is to remove some of the left pane options which we don't use/support on our cPanel server. But when I edit for example /usr/local/cpanel/whostmgr/docroot/themes/WHMTheme2/command2 and execute a rebuild using [/usr/local/cpanel/whostmgr/docroot/themes/WHMTheme2]# ./rebuildtmpl it affects ALL WHM themes?!

    Switching back to the default x theme makes no difference.
    I can reset it all by executing the rebuildtmpl from the x theme directory but then the other WHM themes also gain all options again.

    Basically I don't mind some of the options being there unused by me but I wanted to hide some for resellers. Perhaps there is another way? maybe I need to use the ACL option instead?
     
  2. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    16,309
    Likes Received:
    393
    Trophy Points:
    583
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. Thijssss

    Thijssss Member

    Joined:
    Nov 20, 2012
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    These are options I cannot disable using the regular ACL's for reseller accounts.
    So perhaps I can add some of the things in command2 under the same ACL to make 'm dissapear but I think it would still affect all themes while I only edit the command2 of one.
     
  4. cPanelKenneth

    cPanelKenneth cPanel Development
    Staff Member

    Joined:
    Apr 7, 2006
    Messages:
    4,563
    Likes Received:
    42
    Trophy Points:
    308
    cPanel Access Level:
    Root Administrator
    In 11.34, the way the left navigation menu is sourced by cPanel & WHM changed. It is now locked into sourcing files from /usr/local/cpanel/whostmgr/docroot/templates/menu.

    When you run rebuildtmpl, the generated templates are placed into /usr/local/cpanel/whostmgr/docroot/templates/menu. As you surmised, that location is used for all themes.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice