Jump to:

5540 Posts in 1738 Topics by 1224 members

Customising the CMS

SilverStripe Forums » Customising the CMS » Modifying URL alias code in an update-safe way

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

Page: 1
Go to End
Author Topic: 1183 Views
  • polyfragmentiert
    Community Member
    4 Posts

    Modifying URL alias code in an update-safe way Link to this post


    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!

Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.