How can we improve Sitecore?

Additional Include File location for user defined overrides

The Includes folder is getting cluttered with all the additional Sitecore configs, and now with the addition of Z.SwitchToMaster we are having to prepend more and more Z's to our own folder.

I propose the addition of a new folder location, /App_Config/Overrides, which will patch in last and allow for project defined patches to be placed, keeping default Sitecore configurations separate. This is a simple one line addition to LoadAutoIncludeFiles() located in Sitecore.Configuration.Factory class.

25 votes
Sign in
(thinking…)
Password icon
Signed in as (Sign out)

We’ll send you updates on this idea

Kamruz Jaman shared this idea  ·   ·  Flag idea as inappropriate…  ·  Admin →

3 comments

Sign in
(thinking…)
Password icon
Signed in as (Sign out)
Submitting...
  • Anonymous commented  ·   ·  Flag as inappropriate

    With Layers and Rules-based configuration introduced in 9.0 this is now Completed

  • Nick Wesselman commented  ·   ·  Flag as inappropriate

    I like Chris' suggestion -- being able to isolate module configurations would be nice too, and with his idea we at Active Commerce would be able to add /App_Config/ActiveCommerce as well, to patch in between the base and project-specific.

  • Chris Van De Steeg commented  ·   ·  Flag as inappropriate

    And while doing this, add something like <sitecoreconfigProviders> to the web.config and provide a ISitecoreConfigProvider. This way you could add any folder you'd like by adding another SitecoreConfigFileConfigProvider with an attribute path="". Or we could hook up our own provider returning config entries from yaml, json, or whatever.

    Not that I need yaml, json or whatever, but I do want to be able to make config files conditional (http://www.chrisvandesteeg.nl/2015/05/08/sitecore-conditional-configs-2-0/) in a less hacky way (reflectionless)

Feedback and Knowledge Base