Created
February 8, 2013 04:43
-
-
Save DaveGoosem/4736647 to your computer and use it in GitHub Desktop.
Change 1:
To have spaces be changed to hyphens, you need to edit Sitecore’s web.config and tell it to replace ” ” with “-”. In the “encodeNameReplacements” node, we add the final “replace” node seen below. Change 2:
Because of this change, whenever someone requests a page with a hyphen, Sitecore is going to assume that it needs to be translated …
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
<!-- Change 1 --> | |
<encodenamereplacements> | |
<replace mode="on" find="&" replaceWith=",-a-," /> | |
<replace mode="on" find="?" replaceWith=",-q-," /> | |
<replace mode="on" find="/" replaceWith=",-s-," /> | |
<replace mode="on" find="*" replaceWith=",-w-," /> | |
<replace mode="on" find="." replaceWith=",-d-," /> | |
<replace mode="on" find=":" replaceWith=",-c-," /> | |
<replace mode="on" find=" " replaceWith="-" /> | |
</encodenamereplacements> | |
<!-- Change 2 --> | |
<setting name=”InvalidItemNameChars” value=”\/:?”<>|[]-/>. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment