Forum

Thread tagged as: Suggestions

Smart URL generation

When you create a new page inside perch and set a corresponding page title, the navigation text and file name are set automatically.

Because I mostly create websites in german language it would be to have automatic url fixing for ü,ä,ö as these characters are quiet common and perch ignores these characters (which I can understand because they are quite special). So I always have to fix it manually.

So would it be possible to have autofix for ü = ue, ä = ae & ö = oe

Thanks for your reply :-)

Patrik Dummermuth

Patrik Dummermuth 0 points

  • 7 years ago
Rachel Andrew

Rachel Andrew 394 points
Perch Support

If your version of PHP has transliterate that is exactly what will happen, the full Diagnostics Report will tell you:

https://php.net/manual/en/transliterator.transliterate.php

If that function is unavailable then we fall back to a less optimal method.

My Diagnostics Report tells me "Transliteration functions: Yes" but it doesn't seem to correctly translate ä,ö,ü.

Drew McLellan

Drew McLellan 2638 points
Perch Support

What do you get instead?

For example: "öffentlich" will be transformed to "ffentlich". He just removes the character. Same goes for ä & ü

Drew McLellan

Drew McLellan 2638 points
Perch Support

Perch is reliant on the capabilities of your server to perform the transformation - but I would expect this to work.

What locale is your server set to?