URL Transformations

Author Message

Tuomo Syvänperä

Tuesday 23 September 2008 5:34:50 am

How can I modify the way the "nice urls" are transformed. All scandinavian characters are mapped to ae oe etc. which makes the urls pretty ugly. I'd like to be able to map for example ä to a and ö to o so the urls would look a bit more readable.

Also, I'm not sure if this is related to the above, but if I set the child nodes of some node to be ordered according to their name, they get ordered incorrectly. For example swedish o (å) gets ordered at the top of the list and not as last as it should.

Piotrek Karaś

Tuesday 23 September 2008 11:14:16 pm

How can I modify the way the "nice urls" are transformed. All scandinavian characters are mapped to ae oe etc. which makes the urls pretty ugly. I'd like to be able to map for example ä to a and ö to o so the urls would look a bit more readable.

I won't give you a ready recipe, but look here:
/settings/transform.ini
/share/transformations/*.*

Also, I'm not sure if this is related to the above, but if I set the child nodes of some node to be ordered according to their name, they get ordered incorrectly. For example swedish o (å) gets ordered at the top of the list and not as last as it should.

This may be related to the collation set for your database. Try utf8_swedish_ci as a default collation. Before you apply changes, though, backup your database (especially, if you have utf8_unicode_ci now).

Hope this helps.

--
Company: mediaSELF Sp. z o.o., http://www.mediaself.pl
eZ references: http://ez.no/partners/worldwide_partners/mediaself
eZ certified developer: http://ez.no/certification/verify/272585
eZ blog: http://ez.ryba.eu

Tuomo Syvänperä

Wednesday 24 September 2008 10:49:42 pm

Thanks for the answer.. I've played around with the transformation settings in the ini - file but have been unable to get correct results..

And also the changing of the collation of the database didn't fix the sorting problem.. I still get å at the top of the list. Tried using the nodes sorting order and sorting them using the name. And also tried setting array('name', true()) as the sort_order in the fetch function, but neither of them works.

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.