Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Customising the CMS /

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

Modifying URL alias code in an update-safe way

Go to End



Community Member, 4 Posts

29 April 2010 at 3:10am


I noticed that for the URL alias, Silverstripe doesn't take into account German umlauts like "ä", "ö" or "ü" as well as "ß". I know where the respective function suggestNewValue() is (UniqueFields.js -> silverstripe\sapphire\javascript), but I'm lost as how to extend it update-safe.

Adding in fromString = fromString.replace(/ä/gi, "ae"); and so on would work, but tweaking the core files feel soo wrong.

Any pointers on how to write an extension for that purpose would be appreciated!