2016-09-14 46 views

回答

4

是的。在您的模塊的DNN Manifest文件中,您可以添加一個配置部分。

http://www.dnnsoftware.com/wiki/manifest-config-component

實施例:

<component type="Config"> 
    <config> 
     <configFile>web.config</configFile> 
     <install> 
      <configuration> 
       <nodes> 
        <node path="/configuration/appSettings" action="update" key="key" collision="overwrite"> 
         <add key="myCustomKey" value="123456789" /> 
        </node> 
       </nodes> 
      </configuration> 
     </install> 
     <uninstall> 
      <configuration> 
       <node path="/configuration/appSettings/add[@key='myCustomKey']" action="remove" /> 
      </configuration> 
     </uninstall> 
    </config> 
</component> 
相關問題