4.1 : New url translator system explanation somewhere ?

Author Message

H-Works Agency

Tuesday 21 April 2009 6:23:31 am

Hello,

I installed the 4.1 version and i am fighting to understand how works the url translator in the setup tab.

First when i insert a url translation is not visible anymore in the list, its now visible in a separate view "/content/urlalias/5934" but there is no way to access this view except entering it by hand ?

Why all those urltransformation are not simply in "/content/urltranslator" as before ?

Second i can't make redirection from content for exemple : redirecting "/news" to "/home/news" doesn't work if those two pages exists. In this case i am having this validation error :

URL Alias <</news>> already exists and points to <<content/view/full/10793>>

Is it normal ? How can we thus redirect pages to oneanother ? I am lost here.

EZP is Great

Gaetano Giunta

Tuesday 21 April 2009 12:54:58 pm

A little help:

whenn you create an url alias that points to an existing node url, it will create a node-url-alias.
Those are unfortunately not shown in the list of url-aliases (hence it looks like they disappear), but you can see them if you click on the icon corresponding to the given node in the navigation treemenu and on the pop-up menu choose advance | url-alias management.

There is already a feature request in the tracker to add a management page where all of those aliases are listed, as having to check node by node is a bit of a waste ot time / unfeasible.

As for redirecting "/news" to "/home/news", I think the best solution is to rename or delete the "/news" object (and then add an url alias). What use is an object that cannot be accessed because it redirects to another node object?

Principal Consultant International Business
Member of the Community Project Board

H-Works Agency

Wednesday 22 April 2009 5:51:12 am

Hello Gaetano and thanx a lot for your answers.

In my case i use the url translator system to "hide" a parent folder full view that shouldn't be seen.

For exemple i have this tree "Home -> Skateboard -> News".

I don't want users to be able to hit "/skateboard" because its only a folder thats hold subfolders. Instead i want the system to display "/skateboard/news".

Is the new url translator able to deal with this ?

Because in 3.9 or 4.0 the url translator kind of override the node publication url_alias.

If i understand the process, a certain object say "content/view/full/2" can't have multiple url_aliases if those url_aliases already exists ?

EZP is Great

Gaetano Giunta

Wednesday 22 April 2009 10:19:25 am

To hide a node completely while keeping children visible, you can move it to a section that users have not access to, and you're done (if the node already has children, you will need to move them back to standard section).

There is a nice tutorial in articles section: "Helper Child Nodes: User-Friendly Search Results and Preventing Full Node Views" that might also give you some ideas

Principal Consultant International Business
Member of the Community Project Board

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 15:02:11
Script start
Timing: Jan 18 2025 15:02:11
Module start 'layout'
Timing: Jan 18 2025 15:02:11
Module start 'content'
Timing: Jan 18 2025 15:02:11
Module end 'content'
Timing: Jan 18 2025 15:02:11
Script end

Main resources:

Total runtime0.0149 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.0047 588.0391152.6406
Module start 'layout' 0.00470.0029 740.679739.4922
Module start 'content' 0.00760.0052 780.171993.4609
Module end 'content' 0.01280.0021 873.632838.3047
Script end 0.0149  911.9375 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002516.6978140.0002
Check MTime0.00106.9185140.0001
Mysql Total
Database connection0.00074.940010.0007
Mysqli_queries0.002315.309030.0008
Looping result0.00000.073510.0000
Template Total0.001711.210.0017
Template load0.00095.892510.0009
Template processing0.00085.275610.0008
Override
Cache load0.00063.888410.0006
General
dbfile0.00128.262680.0002
String conversion0.00000.040040.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