Forums / Setup & design / How to use of URL Translator?

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