Forums / Setup & design / URL translator for exsisting page

URL translator for exsisting page

Author Message

Daniele P.

Friday 14 October 2005 6:13:31 am

How to forward a request for an existing page to another page?

I need a redirection of this type: /level2 -> /level1/level2

Virtual url forwarding doesn't work if the page already exist.

I have found a workaround with system url forwarding:

/level2 -> /content/view/full/<node_id_of /level1/level2>

But it unpractical because you have to find out manually the node id of the destination.

Any suggestion?

Thanks in advance

Arran Price

Sunday 16 October 2005 9:19:17 pm

Can you not just add a location (from the edit page) for the content you were redirecting to?
I dont understand why you would want to redirect rather than add a location.

Arran

Daniele P.

Monday 17 October 2005 12:55:59 am

> Can you not just add a location (from the edit page) for the content you were redirecting to?

No. Because the destination is a child of the source, and the source is a different class.

> I dont understand why you would want to redirect rather than add a location.

I can't do this.
The real case is something like:

/products -> /products/category1/subcategory2/product1

In the home page there is a link to the products page (automatically generated by the treemenu) and following the treemenu the user has to click 4 times to see the first product.
I know I could create a custom template and reduce the number of clicks to 2.
But because in this special case the name of the product is sufficient to give an idea of the product and the container pages are folder with an empty description, I want to skip the view of the container pages (products,category1,subcategory2), and let users to choose the next product directly from the menu which appears on product1 page.

It's a bit more clear?

Again, thanks in advance for your suggestion.

eZ debug

Timing: Jan 18 2025 11:01:43
Script start
Timing: Jan 18 2025 11:01:43
Module start 'content'
Timing: Jan 18 2025 11:01:43
Module end 'content'
Timing: Jan 18 2025 11:01:43
Script end

Main resources:

Total runtime0.1628 sec
Peak memory usage2,048.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0079 587.7344180.8281
Module start 'content' 0.00790.0077 768.562593.7734
Module end 'content' 0.01550.1472 862.3359522.2031
Script end 0.1627  1,384.5391 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00402.4816200.0002
Check MTime0.00150.9406200.0001
Mysql Total
Database connection0.00080.521010.0008
Mysqli_queries0.112669.18751410.0008
Looping result0.00130.79081390.0000
Template Total0.146790.110.1467
Template load0.00090.531410.0009
Template processing0.145889.565410.1458
Override
Cache load0.00060.380810.0006
Sytem overhead
Fetch class attribute can translate value0.00090.546210.0009
XML
Image XML parsing0.00030.154210.0003
General
dbfile0.00694.2645200.0003
String conversion0.00000.004030.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/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