How to use of URL Translator?

Author Message

James Packham

Friday 20 February 2004 5:23:48 am

Hi, this is such a basic question it's almost embarrasing to ask: How do I use URL Translator?

I'm trying to redirect /content/view/full/2 to /my_article, so I entered it under "URL Translation", cleared the cache and *TA-DAA!* nothing changed! What did I do wrong?

Thanks,

James

James Packham

Monday 23 February 2004 1:16:11 am

Anyone?

I was trying to redirect content/view/2 to my "welcome" article (I know about the indexpage setting in site.ini). In the end I just changed the template for viewing node 2, which doesn't seem like the best solution, but will have to do for now.

Tony Wood

Monday 23 February 2004 2:43:24 am

I have been trying this and it appears not to work as I would have expected.

Does this work with URL alias activated?

I added a wildcard my_sub/{1} about/* and nothing happens..

All the usually clear cache and added

[URLTranslator]
Translation=enabled
to override site.ini.

I have looked for documentation to explain and give examples of how URL translation should be used but can't find it.

Sorry I can't help James. I can confirm that with URL alias this feature appears to have zero effect.

--tony

Tony Wood : twitter.com/tonywood
Vision with Technology
Experts in eZ Publish consulting & development

Power to the Editor!

Free eZ Training : http://www.VisionWT.com/training
eZ Future Podcast : http://www.VisionWT.com/eZ-Future

Paul Forsyth

Monday 23 February 2004 3:05:07 am

I've just tried with 3.2 and 3.3 and it works with me. I tried:

/content/view/full/2->/testanything

Interestingly the url translator strips the / off the front.

Im using a virtual host - could this be an issue for you?

paul

James Packham

Monday 23 February 2004 5:07:53 am

hhmmm I checked and I have translation=enabled (it's on by default and I haven't changed it). I'm using a virtual host, so unless it's trying to add index.php to the URL where it already exists I don't know what could be wrong (I noticed the / being striped off too, I wonder what else it could be doing?). This is probably something to come back to another time, as I have other EZ Pub projects to fry at the moment and I have a fix of sorts...

Thanks for your help though :)

James

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 19 2025 06:19:25
Script start
Timing: Jan 19 2025 06:19:25
Module start 'layout'
Timing: Jan 19 2025 06:19:25
Module start 'content'
Timing: Jan 19 2025 06:19:26
Module end 'content'
Timing: Jan 19 2025 06:19:26
Script end

Main resources:

Total runtime1.1995 sec
Peak memory usage4,096.0000 KB
Database Queries65

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0043 589.1563152.6250
Module start 'layout' 0.00430.0027 741.781339.4453
Module start 'content' 0.00701.1910 781.2266599.7188
Module end 'content' 1.19800.0014 1,380.945312.1641
Script end 1.1995  1,393.1094 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00280.2373160.0002
Check MTime0.00120.0965160.0001
Mysql Total
Database connection0.00060.051010.0006
Mysqli_queries1.137094.7858650.0175
Looping result0.00080.0643630.0000
Template Total1.175298.020.5876
Template load0.00200.167220.0010
Template processing1.173297.805320.5866
Template load and register function0.00020.013010.0002
states
state_id_array0.00130.110710.0013
state_identifier_array0.00090.074720.0004
Override
Cache load0.00170.1391350.0000
Sytem overhead
Fetch class attribute can translate value0.00130.104230.0004
Fetch class attribute name0.00120.100570.0002
XML
Image XML parsing0.00270.224130.0009
class_abstraction
Instantiating content class attribute0.00000.002090.0000
General
dbfile0.00260.2137220.0001
String conversion0.00000.000640.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
4content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
5content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
6content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 18
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs