Quantcast
Channel: Developer to developer
Viewing all articles
Browse latest Browse all 9076

How to patch new properties in web.config

$
0
0

Hi Guys,

I have a requirement of patching some properties to the existing web.config. I am trying to do it via Add-on so i dont have access to web.config but i want to make my property added to the web.config of the user who uses my Add-on.

Example : 

For the below section in the web.config i want to add the language1 from a external config file which comes as part of add-on.

<profile defaultProvider="DefaultProfileProvider">
<properties>
<add name="Address" type="System.String" />
<add name="ZipCode" type="System.String" />
<add name="Locality" type="System.String" />
<add name="Email" type="System.String" />
<add name="FirstName" type="System.String" />
<add name="LastName" type="System.String" />
<add name="Language" type="System.String" />
<add name="Country" type="System.String" />
<add name="Company" type="System.String" />
<add name="Title" type="System.String" />
<add name="CustomExplorerTreePanel" type="System.String" />
<add name="FileManagerFavourites" type="System.Collections.Generic.List`1[System.String]" />
<add name="EditTreeSettings" type="EPiServer.Personalization.GuiSettings, EPiServer.Cms.AspNet" />
<add name="ClientToolsActivationKey" type="System.String" />
<add name="FrameworkName" type="System.String" />
<add name="Language1" type="System.String"/>
</properties>
</profile>

Do we have any thing similar like patching we can do for the same? Any specific process like transformation for environments in DXC.

Regards,

Manik


Viewing all articles
Browse latest Browse all 9076

Trending Articles