3.2 url management question

Author Message

Paul Forsyth

Wednesday 27 August 2003 2:44:11 am

I'm playing with url translation but im a little stuck.

I thought that url translation meant that we would be able to control the way urls display in the browser, like the current 3.1 method for nice urls. But when i try all i get is a redirect. instead of displaying the text for the current screen the system tries to load in that new page...

For example, im trying to hide my content/edit calls, so i try in the url translation screen:

content/edit/100/2 -> my_folder/my_place

when i then goto my edit screen ez tries to interpret 'my_folder' as a module and complains. on my system 'my_folder' is a standard folder object and so should resolve properly. 'my_place' is a made up name as it is just text i want the user to see. if i blank out the text for where the url is meant to point to i get a redirect to the home page.

In addition i would like to remove the content object id and version information from the url, so i would prefer:

content/edit/* -> wherever

or

content/edit/*/*/ -> wherever

Is this possible with url translation?

I seem to be missing the correct usage for this function. Can some documentation for it be created?

paul

Volker Lenz

Saturday 13 September 2003 3:15:10 am

You try to use nice urls with module functions other that view. For editing or creating content, the ez documentation recommends to avoid using nice urls, since nice urls are designed for (and depend on) existing node objects in the content tree.

Paul Forsyth

Saturday 13 September 2003 11:22:03 am

My hope here is to not use nice urls but to have ez 'mask' the real url with url i have given it.

In the example i gave i can't use nice urls as i am editing a node. I don't want the user to see the content/edit part.

Though i haven't tried this with beta 2. Can someone from ez comment on this?

Paul

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

Main resources:

Total runtime0.7266 sec
Peak memory usage4,096.0000 KB
Database Queries57

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0061 589.0313152.6250
Module start 'layout' 0.00620.0031 741.656339.4453
Module start 'content' 0.00920.7160 781.1016501.0156
Module end 'content' 0.72520.0013 1,282.117212.3203
Script end 0.7266  1,294.4375 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00370.5034160.0002
Check MTime0.00130.1815160.0001
Mysql Total
Database connection0.00080.107110.0008
Mysqli_queries0.679293.4792570.0119
Looping result0.00050.0679550.0000
Template Total0.688994.820.3445
Template load0.00230.313020.0011
Template processing0.686694.496220.3433
Template load and register function0.00020.032410.0002
states
state_id_array0.00090.126610.0009
state_identifier_array0.00200.272120.0010
Override
Cache load0.00180.2490230.0001
Sytem overhead
Fetch class attribute can translate value0.00080.112420.0004
Fetch class attribute name0.00120.160940.0003
XML
Image XML parsing0.00070.099720.0004
class_abstraction
Instantiating content class attribute0.00000.001440.0000
General
dbfile0.00110.1471160.0001
String conversion0.00000.001140.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
3content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 9
 Number of unique templates used: 5

Time used to render debug report: 0.0002 secs