Forums / Setup & design / Help with URL translation from root to folder

"Please Note:
  • At the specific request of Ibexa we are changing this projects name to "Exponential" or "Exponential (CMS)" effective as of August, 11th 2025.
  • This project is not associated with the original eZ Publish software or its original developer, eZ Systems or Ibexa".

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 X

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 ....