H-Sphere Customization Guide

Menu XML Customization

(deprecated in version 2.4)

 
 

Related Docs:  

Menu Customization Menu Structure

The Control Panel menu structure is represented in XML file. Its default location is set in ~cpanel/shiva/psoft_config/hsphere.properties by the MENU_CONFIG paramteter:

MENU_CONFIG=/hsphere/local/home/cpanel/shiva/psoft/hsphere/menu.xml

You should not make changes in the default menu.xml file, because these changes will be lost with the next H-Sphere upgrade. Instead, you create custom XML files overriding default configuration.

  1. Login as cpanel under root:

    su -
    su -l cpanel

  2. Create the custom ~cpanel/shiva/custom/xml directory if you haven't done this yet.

  3. Copy the default ~cpanel/shiva/psoft/hsphere/menu.xml file to that directory:

    cp ~cpanel/shiva/psoft/hsphere/menu.xml ~cpanel/shiva/custom/xml/menu.xml

  4. Make changes to menu.xml in custom directory. See menu.xml description for details.

  5. In ~cpanel/shiva/psoft_config/hsphere.properties, change MENU_CONFIG to the custom XML file:

    MENU_CONFIG = /hsphere/local/home/cpanel/shiva/custom/xml/menu.xml

  6. Logout from cpanel back to root and restart H-Sphere to apply changes.

Note, however, you will not see improvements in the default menu.xml coming with the next updates.

 


Related Docs:  

Menu Customization Menu Structure



© Copyright 1998-2007. Positive Software Corporation.
All rights reserved.