Sunday, April 19, 2026
Sitecore

Config Patch Generator

Generate Sitecore config patch files to override or extend default configuration settings.

Configuration
Config Patch XML
<!-- Configure options on the left to generate your Sitecore config patch -->

How to Use the Sitecore Config Patch Generator

The Sitecore Config Patch Generator creates valid Sitecore configuration patch files using the patch: and set: XML namespaces. Patch files are the recommended way to extend or override Sitecore's default configuration without modifying core files — keeping your solution upgrade-safe and maintainable.

Select the configuration section you want to modify from the dropdown. Based on your selection, fields appear for the specific settings relevant to that section. Once configured, click Generate Patch File to produce the complete XML ready for deployment to your App_Config/Include folder.

Config Patch Sections Explained

  • Pipelines — Add, replace, or delete processors in Sitecore request pipelines like httpRequestBegin, renderField, or publishItem. Use patch:after to insert a processor after a specific existing one.
  • Settings — Override any Sitecore setting by name using set:value. Applies to the <settings> section and supports all string and boolean settings.
  • Sites — Patch site definition attributes such as rootPath, startItem, language, or contentStartItem without replacing the entire site node.
  • Scheduling — Register a new Sitecore scheduled agent or override an existing one's interval, method, or type.
  • LinkManager — Configure the LinkManager provider properties including addAspxExtension, languageEmbedding, and shortenUrls.
  • MediaLibrary — Override media library settings like maximum upload size, allowed extensions, and cache lifetime.

Patch File Naming Convention

Sitecore processes config patch files alphabetically within each Include folder. Prefixing your file with z. ensures it loads after all default and add-on configurations, so your overrides always take precedence. Use meaningful names like z.MyProject.Settings.config to make your configuration self-documenting.