Created
December 5, 2013 14:48
-
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<configuration xmlns:patch="http://www.sitecore.net/xmlconfig/"> | |
<sitecore> | |
<encodeNameReplacements> | |
<replace mode="on" find=" " replaceWith="-" /> | |
</encodeNameReplacements> | |
</sitecore> | |
</configuration> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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