XML Customization

The following Parallels H-Sphere components are configured by means of XML files located in the ~cpanel/shiva/psoft/hsphere/ directory:

Component

Property

Filename

CP Skins (Designs)

DESIGN_SCHEME_CONFIG

design_config.xml

CP Menu

MENU_CONFIG

menu.xml

CP Crons

CRON_CONFIG

cron_config.xml

Online (Context) Help

HELP_CONFIG,
ONLINE_HELP_CONFIG

help.xml
help_url.xml

Promotion Validators And Calculators

PROMO_CONFIG

promotion/xml/promotions.xml

Merchant Gateways

MERCHANT_GATEWAYS_CONF

merchants.xml

Domain Registrars

REGISTRAR_CONF

registrar.xml

E-Mail Notifications

USER_EMAILS

user_emails.xml

Custom XML files can be merged with default XML files by means of XML merger. Instead of moving and changing a default XML file, a small custom file is created containing only the changes to be implemented, and its location is specified in ~cpanel/shiva/psoft_config/hsphere.properties in the parameter with the "CUSTOM_" prefix added to the default parameter name. For example:

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

In this chapter:

Merging XML Configuration Files

XML Manager

Creating Plan Wizards with XML

Adding Custom CP Cron Jobs

Adding Custom Promotion Validators and Calculators

Adding Custom MS Exchange Plans into Parallels H-Sphere

Customizing E-Mail Notification List