The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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:
    14,475
    Likes Received:
    202
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
  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,461
    Likes Received:
    22
    Trophy Points:
    38
    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.
     
Loading...

Share This Page