Goodbye z.Last – Custom Sitecore Config Patch Folder

I’ve previously written a couple of blog posts about Organising your Sitecore Patch Include Files and the subsequent Re-organisation of Include Config Patch files in Sitecore 8. As mentioned in that blog post, in order to ensure that our custom configs are patched in last we can place our own files in /App_Settings/Include/z.Project. I also raised a Sitecore userVoice request to add additional folder locations for patching.

Recently when providing an answer on Sitecore StackExchange about alternative ways of disabling config files and taking a peek inside the Sitecore.Kernel to post some code for the answer I noticed something…

If you looked at the code snippet in my original post then you would have noticed that the method was private static 😥

Something had changed…

Read More

SEO%20Friendly%20URLs – Watch out, it’s a trap!

Read my previous blog post about SEO Friendly URLs? Go have a read, I cover several methods of achieving SEO Friendly URLs.

Did you read it? Did you read that part about encodeNameReplacements? Yeah, I still don’t like them, but it seems like now we all have to deal with them at least.

Read More

Re-organisation of Include Config Patch files in Sitecore 8

I previously wrote about Organising your Sitecore Patch Include Files, a simple way to ensure that your own patches to Sitecore configuration is included after any other Sitecore patch files. Generally, my preference has been to put all my custom config in /App_Config/Include/[ProjectName].

Just in case you have been hiding under a rock for the past few days, Sitecore XP8 was officially released a few days ago, bringing with it a whole heap of amazing goodies.

It also looks like Sitecore is eating its own canned soup and has started to patch in their own updates, which matches the /bin folder explosion. A post from Scott Mulligan this morning got me to take another look.

Read More

Organising your Sitecore Patch Include Files

tl;dr Putting config files in a folder under /App_Config/Include causes them to be patched in last.

Following an answer by @Bruud on Stackflow a few months ago I found out that it is possible to organise patch config files much more neatly. It was also mentioned as a passing comment on one of the recent Google Hangout highlighting the changes in Sitecore 7.X.

I’ve just started working on a few project from existing vendors and noticed the common patch file naming convention to ensure custom changes are applied after the standard Sitecore configs in App_Config/Include, e.g. xCustomSitecore.config and zCustomSitecore.config

It turns out that you can simply put your custom configs in a child folder and Sitecore will include them after any files in /App_Config/Include.

Read More