Forums / General / Transliterating national characters in friendly URLs

Transliterating national characters in friendly URLs

Author Message

Vjeran Vlahovic

Monday 13 September 2004 12:37:41 pm

Could transliteration used with friendly URLs be configured? The problem is that friendly URL is not so human-readable anymore when national characters are dropped out... So is there a way to replace national characters with similar standard english characters?
Thanks.

http://www.netgen.hr/eng

Ekkehard Dörre

Monday 13 September 2004 6:16:44 pm

Look here:
http://ez.no/community/contributions/hacks/url_alias_transliteration

Greetings, ekke

http://www.coolscreen.de - Over 40 years of certified eZ Publish know-how: http://www.cjw-network.com
CJW Newsletter: http://projects.ez.no/cjw_newsletter - http://cjw-network.com/en/ez-publ...w-newsletter-multi-channel-marketing

Vjeran Vlahovic

Friday 17 September 2004 1:44:41 pm

Hi ekke, thanks for replying...

I've tried it and it seems that this hack doesen't work well with 3.4.1 :-( My treenode list (generated by flat_left.tpl) gets messed up (child nodes are not listed under their parent nodes) and one of the (re)generated urls looked like this:

<a href="/siteacc/Object">Blabla</a>
instead of:
<a href="/siteacc/blabla">Blabla</a>

After restoring original file /kernel/classes/ezurlalias.php everything seems to work fine again.

Please someone correct me if I'm wrong and has different expiriences...

http://www.netgen.hr/eng

Marco Zinn

Saturday 18 September 2004 2:03:19 am

I had tried this with ez 3.3 and it worked nice.

Marco
http://www.hyperroad-design.com

Ekkehard Dörre

Saturday 18 September 2004 3:08:09 am

@ Vjeran
in 3.3 it worked well, but not testet in 3.4

Perhaps make a comment at this contribution, so Gunnstein Lye 'll see it.

Greetings, ekke

http://www.coolscreen.de - Over 40 years of certified eZ Publish know-how: http://www.cjw-network.com
CJW Newsletter: http://projects.ez.no/cjw_newsletter - http://cjw-network.com/en/ez-publ...w-newsletter-multi-channel-marketing

Gurudutt Verma

Monday 20 September 2004 3:08:03 am

Hi Vjeran Veey

I have tested this with 3.4.1 and it seems to be working here. Have you followed all the steps in Readme.txt in http://ez.no/community/contributions/hacks/url_alias_transliteration. If yes, then please explain all the steps you followed so I can regenerate the bug.
Thanks

Mieczyslaw Morzonek

Monday 20 September 2004 11:55:36 pm

I`ve also problem withs URLs when i using this hack.

I`e add polish and russian letters to my language file, i`ve run update script and my URLs are like this one-object-is-cool but polish and russain letters are still replace with -

eZ publish 3.3-3

Marco Zinn

Tuesday 21 September 2004 1:23:35 pm

I agree with the behaviour in that last posting:
First, i had this "patch" working on a 3.3-3 setup, but then i had to re-install that setup (for some other reason). Now, i had it reinstalled, but I can't get it working again. Unknown locale characters are replaced my underscores _ or dashes - (I can't remember now).

Marco
http://www.hyperroad-design.com

Vjeran Vlahovic

Wednesday 29 September 2004 9:48:12 am

Hi Gurudutt, sorry about the late response...
I have followed all steps in readme.txt and have to mention that I didn't have any problems with replacing national characters after running the update script, like Mieczyslaw and Marco had. The menu tree gone mad (like I allready described)... The only thing I can think of is that during the database fill I've played with ContentObjectLocale, Locale, and HTTPLocale settings (trying to make multilingual web site). Does this could cause the problem?

http://www.netgen.hr/eng