mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
Add ability to configure orchard components via config file
A special file "HostSingletons.config" is read at startup to look for properties to set on host components. --HG-- branch : dev
This commit is contained in:
10
src/Orchard.Web/Config/Sample.HostComponents.config
Normal file
10
src/Orchard.Web/Config/Sample.HostComponents.config
Normal file
@@ -0,0 +1,10 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<HostComponents>
|
||||
<Components>
|
||||
<Component Type="Orchard.Environment.Extensions.Loaders.DynamicExtensionLoader">
|
||||
<Properties>
|
||||
<Property Name="Disabled" Value="true"/>
|
||||
</Properties>
|
||||
</Component>
|
||||
</Components>
|
||||
</HostComponents>
|
@@ -122,6 +122,9 @@
|
||||
<DependentUpon>Global.asax</DependentUpon>
|
||||
</Compile>
|
||||
<Content Include="Config\log4net.config" />
|
||||
<Content Include="Config\Sample.HostComponents.config">
|
||||
<SubType>Designer</SubType>
|
||||
</Content>
|
||||
<None Include="Media\web.config" />
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
</ItemGroup>
|
||||
|
Reference in New Issue
Block a user