4

First of all, I want to thank you for creating Craft. It's really one of the best content management systems I have ever worked with.

I encountered an issue while working on a multilingual site: German Umlauts are not automatically transliterated (Ä -> Ae) for slugs. In other parts of Craft (e.g. field handles) Umlauts are transliterated automatically.

Personally, I would prefer if this behavior could be controlled by a config variable (e.g. slugExpandUmlauts).

2 Answers 2

4

Try enabling the config setting limitAutoSlugsToAscii, that should do what you want.

5
  • This works great when entering titles in the frontend, but how can I enable it on the backend? (I want to import contents from a legacy CMS via a plugin.) Commented Sep 22, 2014 at 16:33
  • How are you doing the import? Commented Sep 22, 2014 at 19:16
  • Based on craftimport I created a custom input plugin where I create and save the entries. Commented Sep 23, 2014 at 11:57
  • I'm not sure if there is any such option serverside, but maybe you can just recreate the functionality. Check line 9311 in craft.js, the function Craft.SlugGenerator. It does basic replaces, and you can probably convert the rules easily, copying the existing regex. Commented Sep 24, 2014 at 7:38
  • Thank you, Fred. It's actually pretty straightforward. Craft uses a simple character map (craft.js - line 25) - I didn't know that. Commented Sep 24, 2014 at 18:38
-1

If it´s a one-time operation, maybe you could just import everything and search/replace in MySQL?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.