Skip to content

Instantly share code, notes, and snippets.

@jammykam
Last active February 17, 2022 19:36
Show Gist options
  • Save jammykam/b7c2448ffb819d9eced009cd5324eb22 to your computer and use it in GitHub Desktop.
Save jammykam/b7c2448ffb819d9eced009cd5324eb22 to your computer and use it in GitHub Desktop.
Patch the Sitecore Protobuf Filepath locations to look at module items (useful for Sitecore 10.1)
<?xml version="1.0" encoding="utf-8" ?>
<!--
Purpose: Adds in an additional location to load IAR files from
This config can be removed if the project is upgraded to 10.2+ since the path is set ootb
-->
<configuration xmlns:patch="http://www.sitecore.net/xmlconfig/" xmlns:role="http://www.sitecore.net/xmlconfig/role/">
<sitecore>
<databases>
<database id="master" role:require="Standalone or ContentManagement">
<dataProviders>
<dataProvider>
<param desc="readOnlyDataProviders">
<protobufItems>
<filePaths>
<filePath name="modules">/sitecore modules/items/$(id)</filePath>
</filePaths>
</protobufItems>
</param>
</dataProvider>
</dataProviders>
</database>
<database id="core" role:require="Standalone or ContentManagement">
<dataProviders>
<dataProvider>
<param desc="readOnlyDataProviders">
<protobufItems>
<filePaths>
<filePath name="modules">/sitecore modules/items/$(id)</filePath>
</filePaths>
</protobufItems>
</param>
</dataProvider>
</dataProviders>
</database>
<database id="web">
<dataProviders>
<dataProvider>
<param desc="readOnlyDataProviders">
<protobufItems>
<filePaths>
<filePath name="modules">/sitecore modules/items/$(id)</filePath>
</filePaths>
</protobufItems>
</param>
</dataProvider>
</dataProviders>
</database>
</databases>
</sitecore>
</configuration>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment