Help with URL translation from root to folder

Author Message

Aaron Weiss

Friday 26 March 2004 4:23:00 pm

This seems like it should be easy, but I'm having trouble. Basically I want to forward/redirect the user from the root node to a folder. I want it to be very easy to change the destination folder in the future, hence I am reluctant to do this in template code (I know how to do that). I would like to use the URL translator since it is easy for other admins to modify.

My root node is at the URL:
http://www.foobar.com/sub/index.php/plain

My destination folder node(s) is at the URL:
http://www.foobar.com/sub/index.php/plain/folder_1
http://www.foobar.com/sub/index.php/plain/folder_2
etc.

Each week a new folder will be added with new content. I want to easily change the URL forwarding so that visitors to the root URL will be sent to the "current" folder. I have tried this in the URL translator but can't get it to forward from root node. I can forward from one folder to another, but not from root to a folder.

Can anyone suggest proper syntax for the URL translator, or some other approach that is easy to change from week to week?

thanks!
Aaron

Björn Dieding@xrow.de

Saturday 27 March 2004 2:38:09 am

I would suggest the following...

1.) create a new module + view like ../plain/mymondule/redirect

2.) use this as index

3.) let the moduleview always redirect to the news node out fo the parent folder

That is a very simple task ....

Looking for a new job? http://www.xrow.com/xrow-GmbH/Jobs
Looking for hosting? http://hostingezpublish.com
-----------------------------------------------------------------------------
GMT +01:00 Hannover, Germany
Web: http://www.xrow.com/

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