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.

eZ debug

Timing: Jan 18 2025 19:20:43
Script start
Timing: Jan 18 2025 19:20:43
Module start 'layout'
Timing: Jan 18 2025 19:20:43
Module start 'content'
Timing: Jan 18 2025 19:20:43
Module end 'content'
Timing: Jan 18 2025 19:20:43
Script end

Main resources:

Total runtime0.0164 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0057 589.1641152.6406
Module start 'layout' 0.00570.0038 741.804739.4766
Module start 'content' 0.00960.0049 781.281389.3672
Module end 'content' 0.01440.0019 870.648430.3047
Script end 0.0163  900.9531 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002414.7059140.0002
Check MTime0.00116.8610140.0001
Mysql Total
Database connection0.00063.705610.0006
Mysqli_queries0.003923.741430.0013
Looping result0.00000.085910.0000
Template Total0.00169.910.0016
Template load0.00095.249810.0009
Template processing0.00084.609410.0008
Override
Cache load0.00063.820610.0006
General
dbfile0.00021.387080.0000
String conversion0.00000.049540.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs