Pre-requisites
Installed and working Atomia HCP
Customization
To make changes on default HCP menu we need to modify "C:\Program Files (x86)\Atomia\HostingControlPanel\App_Data\appConfig.config" file. As we want that our modification persist trough updates we will do it by using transformation file.
In order to remove "Buy Domain Name" and "Transfer Domain Name" from menu we will create "C:\Program Files (x86)\Atomia\HostingControlPanel\App_Data\Transformation Files\appConfig.RemoveDomainBuyTransfer.config" transformation file, with following content
<?xml version="1.0" encoding="utf-8"?> <appConfig xmlns="Atomia.Web.Base.Configs" xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform"> <menusList> <menu menuId="atoms"> <menuItem id="menu007"> <menuItem id="menu007_4" name="BuyDomainName" xdt:Locator="Match(id)" xdt:Transform="Remove" /> <menuItem id="menu007_5" name="TransferDomains" xdt:Locator="Match(id)" xdt:Transform="Remove" /> </menuItem> </menu> </menusList> </appConfig>
or if we want to remove Cloud tab from HCP:
Create transformation file "C:\Program Files (x86)\Atomia\HostingControlPanel\App_Data\Transformation Files\appConfig.RemoveCloudTab.config" with following content
<?xml version="1.0" encoding="utf-8"?> <appConfig xmlns="Atomia.Web.Base.Configs" xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform"> <menusList> <menu menuId="apps"> <menuItem id="menu017" name="Cloud" xdt:Locator="Match(id)" xdt:Transform="Remove" /> </menu> </menusList> </appConfig>
Activation
Apply changes to HCP byexecuting in PowerShell
Start-Process "C:\Program Files (x86)\Atomia\HostingControlPanel\Recreate config files.lnk"