Skip to content

Instantly share code, notes, and snippets.

@DaveGoosem
Created February 8, 2013 04:43
Show Gist options
  • Save DaveGoosem/4736647 to your computer and use it in GitHub Desktop.
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 …
<!-- Change 1 -->
<encodenamereplacements>
<replace mode="on" find="&amp;" 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