Skip to content

Instantly share code, notes, and snippets.

@Refactored
Created December 5, 2013 14:48
Show Gist options
  • Save Refactored/7806246 to your computer and use it in GitHub Desktop.
Save Refactored/7806246 to your computer and use it in GitHub Desktop.
Sitecore App_Config\Include overrides to get encodeNameReplacements to replace spaces with dashes. This also shows using display names with linkProvider.
<configuration xmlns:patch="http://www.sitecore.net/xmlconfig/">
<sitecore>
<encodeNameReplacements>
<replace mode="on" find=" " replaceWith="-" />
</encodeNameReplacements>
</sitecore>
</configuration>
<configuration xmlns:patch="http://www.sitecore.net/xmlconfig/">
<sitecore>
<linkManager defaultProvider="sitecore">
<providers>
<clear />
<add name="sitecore">
<patch:attribute name="addAspxExtension">false</patch:attribute>
<patch:attribute name="languageEmbedding">never</patch:attribute>
<patch:attribute name="alwaysIncludeServerUrl">true</patch:attribute>
<patch:attribute name="languageLocation">filePath</patch:attribute>
<patch:attribute name="lowercaseUrls">true</patch:attribute>
<patch:attribute name="useDisplayName">true</patch:attribute>
</add>
</providers>
</linkManager>
</sitecore>
</configuration>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment