Automatic generation of URLSegment from Cyrillic characters

Vote:
 

When saving a page without providing anything in "Show in URL" (URLSegment property) this is automatically generated from the PageName filtering out any non alphanumeric charaters etc.

We have a customer that, among other languages, have Russian content.
When saving a page the URL becomes gibberish since a lot of characters isn't allowed. E.g.
The page names "Прайс-лист" and "Прайс-лист на потолочные и стеновые панели"
becomes:
http://www.ecophon.com/ru/-2/------/

Does anybody know of how to handle the auto generation of URLSegment for Cyrillic or other non alphanumeric character set?

Cheers, Magnus

#41891
Aug 02, 2010 16:34
Vote:
 

If my memory serves me right, a URL segment won't be generated if there is already a valid URL segment for the page. So if you hook into one of the DataFactory events (SavingPage is perhaps a good choice?) you can generate and set your own url segment for the page (PageData.UrlSegment property). Be sure to investigate how this behaves when the URL segment already exists on a sibling page so it's not re-generated from the page name in that case. The same goes for moving pages, copying pages etc. You might have to hook into more events and do special handling of these cases.

Edit: You should probably also take into account that the editor might set or change the URL segment manually so you don't overwrite the segment in that case.

#41904
Edited, Aug 03, 2010 12:49