cleaning nice urls

Author Message

Mark Marsiglio

Friday 18 February 2005 12:47:48 pm

I have a user who deleted a page, then added a new one to replace it (with the same name). We have nice urls, and the former url was

/about_us/activity

. When he deleted that and added the new page, the new one's URL is

about_us/activity__1

Does anyone know how to affect this name, and how to change it back to the original? I suppose I could try to use a redirect, but it would be cleaner if we could just change the page somehow to give it a clean url.

I will make sure the user knows not to delete and re-add pages in the future!

Thanks
Mark

http://www.thinkcreative.com
Turning Ideas Into Strategic Solutions

kracker (the)

Sunday 27 February 2005 10:34:25 am

Greetings Mark,

I personally have encountered this 'side affect' from moving / renaming like named objects.

The solution I have found to this 'side affect' had been to ...
- rename the object to something unique (totally different)
- then (again) rename the object to something unique (what i want it to be called)

I just had to make sure I wasn't renaming the object to anything another object was named in the same container (folder).

Happy Hacking
//kracker
I'm just your friendly neighborhood hacker ...

Counting Crows : I'm not sleeping ...

Member since: 2001.07.13 || http://ezpedia.se7enx.com/

Bruce Morrison

Sunday 27 February 2005 8:52:18 pm

Just run

update/common/scripts/updateniceurls.php

and make sure the old item is not in the trash (not sure if this actually has an effect but just in case :)

Cheers
Bruce

My Blog: http://www.stuffandcontent.com/
Follow me on twitter: http://twitter.com/brucemorrison
Consolidated eZ Publish Feed : http://friendfeed.com/rooms/ez-publish

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

Main resources:

Total runtime0.5949 sec
Peak memory usage4,096.0000 KB
Database Queries59

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0056 589.0313152.6094
Module start 'layout' 0.00560.0033 741.640639.4141
Module start 'content' 0.00890.5845 781.0547596.6250
Module end 'content' 0.59340.0014 1,377.679712.1875
Script end 0.5949  1,389.8672 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00300.5077160.0002
Check MTime0.00130.2110160.0001
Mysql Total
Database connection0.00060.102210.0006
Mysqli_queries0.539790.7157590.0091
Looping result0.00050.0888570.0000
Template Total0.563794.720.2818
Template load0.00210.350620.0010
Template processing0.561694.392120.2808
Template load and register function0.00010.015810.0001
states
state_id_array0.00130.222210.0013
state_identifier_array0.00090.154220.0005
Override
Cache load0.00180.2979310.0001
Sytem overhead
Fetch class attribute can translate value0.00080.141530.0003
Fetch class attribute name0.00110.178860.0002
XML
Image XML parsing0.00150.252330.0005
class_abstraction
Instantiating content class attribute0.00000.001460.0000
General
dbfile0.00180.3026290.0001
String conversion0.00000.001640.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/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
10content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
3content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
4content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 25
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs