Forums / Developer / URL translation in ez admin interface(a bug?)

URL translation in ez admin interface(a bug?)

Author Message

K259

Wednesday 10 November 2004 1:23:13 am

Translations at level 1 is ok.

e.g. content/view/full/342 with virtual url: companyinfo
but this don't work:
content/view/full/342 with virtual url: company/info

Translation at level 2-> is not working. Is this a bug, or is it supposed to be this way?

Marco Zinn

Monday 15 November 2004 1:44:30 pm

Are you talking about "manual" URL translations? I guess, these are not supporessed to have / in the "virtual URLs" (so, just "1 level virtual URLs" can be created) ?

But you know, that eZ publish automatically creates "nice URLs" from the names of your objects?
So, if you have an object named "company" at level 1 (ie a folder) and another object called "info" as a child of "company", you should be able to access that page by the URL
http://bla.com/index.php/company/info , as ezPublish understands the "nice url" /company/info .

Marco
http://www.hyperroad-design.com

K259

Tuesday 16 November 2004 6:02:12 am

Nope. Not talking abour nice urls. We also have this, but have dropped this, because nice urls in a depth of more than 3 or 4 levels is meaningless.

Why did people want nice urls? Because they meant it was difficult to remember id-numbers to access pages. Nice urls is good up to 2 levels, but more than this, it's hard to remember all the page-words in a structure, then it's more easy to remember page-id-numbers.

Well, back to what I want ;) If I have a page:
http://www.mycompany.com/content/view/full/64
This page with ID 64 is about employees in a department.
Structure: www.mycompany.com/organization/departement/employees

I was contacted by an editor in this department who wanted an easier way to access this employee page.

I thought we could use url translations in the admin-interface, but this is just possible with one level. This editor wanted that this employee-page should be accessed through:
www.mycompany.com/dep/employees
In eZ publish it's only possible with: www.mycompany.com/employees or www.mycompany.com/depemployees.

I know this can be fixed by adding a Rewriterule in apache.conf, but I want to know if it should be possible in the ez admin interface.

eZ debug

Timing: Jan 19 2025 03:26:59
Script start
Timing: Jan 19 2025 03:26:59
Module start 'content'
Timing: Jan 19 2025 03:26:59
Module end 'content'
Timing: Jan 19 2025 03:26:59
Script end

Main resources:

Total runtime0.1958 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.0060 589.0859180.8125
Module start 'content' 0.00600.0096 769.898493.9297
Module end 'content' 0.01560.1802 863.8281522.2500
Script end 0.1958  1,386.0781 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00391.9845200.0002
Check MTime0.00170.8529200.0001
Mysql Total
Database connection0.00070.370110.0007
Mysqli_queries0.121962.27651410.0009
Looping result0.00140.71801390.0000
Template Total0.179691.710.1796
Template load0.00090.457610.0009
Template processing0.178791.241410.1787
Override
Cache load0.00070.332410.0007
Sytem overhead
Fetch class attribute can translate value0.00130.670010.0013
XML
Image XML parsing0.00040.224310.0004
General
dbfile0.026613.6006200.0013
String conversion0.00000.003530.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