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

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

eZ debug

Timing: Jan 18 2025 22:24:25
Script start
Timing: Jan 18 2025 22:24:25
Module start 'layout'
Timing: Jan 18 2025 22:24:25
Module start 'content'
Timing: Jan 18 2025 22:24:26
Module end 'content'
Timing: Jan 18 2025 22:24:26
Script end

Main resources:

Total runtime0.8445 sec
Peak memory usage4,096.0000 KB
Database Queries81

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0086 589.1563152.6406
Module start 'layout' 0.00860.0040 741.796939.4922
Module start 'content' 0.01260.8300 781.2891733.7656
Module end 'content' 0.84260.0019 1,515.054720.1250
Script end 0.8445  1,535.1797 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00350.4179160.0002
Check MTime0.00140.1661160.0001
Mysql Total
Database connection0.00150.181210.0015
Mysqli_queries0.760890.0819810.0094
Looping result0.00090.1110790.0000
Template Total0.794194.020.3970
Template load0.00210.250920.0011
Template processing0.792093.776020.3960
Template load and register function0.00020.025510.0002
states
state_id_array0.00320.383610.0032
state_identifier_array0.00210.252320.0011
Override
Cache load0.00180.2169460.0000
Sytem overhead
Fetch class attribute can translate value0.00100.124050.0002
Fetch class attribute name0.00110.1309130.0001
XML
Image XML parsing0.00350.416350.0007
class_abstraction
Instantiating content class attribute0.00010.0075170.0000
General
dbfile0.00190.2239350.0001
String conversion0.00000.001240.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
8content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
9content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
7content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
11content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 37
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs