All of the Atomia applications are configurable trough configuration files within application. Those configuration files are generated trough Microsoft's web.config transformation tools. Essentially, each configuration files within Atomia is generated of 3 different files:
Original configuration file
- Atomia ini file
- Transformation file(s)
Original configuration file
This is default configuration file that represents base of future configuration file. This is basically starting position. Relative to actual configuration file, this files location is folder Original Files which is in same folder as actual configuration file. This file is named same as actual configuration file. Example:
Actual config file: C:\Program Files (x86)\Atomia\HostingControlPanel\Web.config
Original file: C:\Program Files (x86)\Atomia\HostingControlPanel\Original Files\Web.config
Actual config file: C:\Program Files (x86)\Atomia\HostingControlPanel\Web.config
Original file: C:\Program Files (x86)\Atomia\HostingControlPanel\Transformation Files\Web.MyTransormation.config
- Open existing transformation file for desired configuration file or create new one taking care of naming conventions. Example: C:\Program Files (x86)\Atomia\HostingControlPanel\Transformation Files\Web.MyTransormation.config
- Put desired transformation in the file and save it. Example:
<?xml version="1.0" encoding="utf-8"?> <configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform" xmlns:is="http://schemas.atomia.com/2009/06/configuration/identity" xmlns:hy="urn:nhibernate-configuration-2.2"> <appConfig xmlns="Atomia.Web.Base.Configs"> <pluginSettingsList> <pluginSettingsPlugin pluginName="Website" xdt:Locator="Match(pluginName)"> <!-- Following line finds pluginSetting tag with name UsageStatsEnabled and replaces it with <pluginSetting name="UsageStatsEnabled" value="false" />, whatever attributs tag had before. --> <pluginSetting name="UsageStatsEnabled" value="false" xdt:Transform="Replace" xdt:Locator="Match(name)" /> <!-- Following line finds pluginSetting tag with name categoryGroups and replaces it with <pluginSetting name="categoryGroups" value="{ 'Popular': [ 'drupal', 'wordpress', 'joomla', 'concrete', 'vanilla', 'opencart' ] }" />, whatever attributs tag had before. --> <pluginSetting name="categoryGroups" value="{ 'Popular': [ 'drupal', 'wordpress', 'joomla', 'concrete', 'vanilla', 'opencart' ] }" xdt:Locator="Match(name)" xdt:Transform="Replace" /> </pluginSettingsPlugin> </pluginSettingsList> </appConfig> </configuration>
- Run transformation tool link which is located in Application's root folder: C:\Program Files (x86)\Atomia\HostingControlPanel\Recreate config files