Sitecore – Have your Patch files apply last

Just a quick tip; I am using Patch files to update some of the settings of my Sitecore instance. Some of these settings are also patched by the standard Sitecore config files. How do I make sure that they apply last?

Well, it turns out they’re processed in alphabetical order. That’s fine, I can prefix files with ‘z’. But there’s an even better tip – subfolders are applied later. So I’ve added a folder called ‘custom’ and it is applied after all the default patch files.

Example Visual Studio Structure

I found this here: http://www.partechit.nl/en/blog/2014/03/sitecore-and-the-last-include

Advertisements
Sitecore – Have your Patch files apply last

One thought on “Sitecore – Have your Patch files apply last

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s