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.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Customising the CMS /

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

Modifying URL alias code in an update-safe way


Go to End


1793 Views

Avatar
polyfragmentiert

Community Member, 4 Posts

29 April 2010 at 3:10am

Hello,

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!