Forums / General / cleaning nice urls

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

eZ debug

Timing: Jan 19 2025 01:12:26
Script start
Timing: Jan 19 2025 01:12:26
Module start 'content'
Timing: Jan 19 2025 01:12:27
Module end 'content'
Timing: Jan 19 2025 01:12:27
Script end

Main resources:

Total runtime0.7370 sec
Peak memory usage4,096.0000 KB
Database Queries196

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0111 589.9609180.8516
Module start 'content' 0.01110.5882 770.8125597.6875
Module end 'content' 0.59920.1377 1,368.5000332.7656
Script end 0.7370  1,701.2656 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00430.5824210.0002
Check MTime0.00150.2036210.0001
Mysql Total
Database connection0.00150.206110.0015
Mysqli_queries0.653588.65881960.0033
Looping result0.00210.28181940.0000
Template Total0.699294.920.3496
Template load0.00220.292020.0011
Template processing0.697094.566120.3485
Template load and register function0.00010.012910.0001
states
state_id_array0.00120.156610.0012
state_identifier_array0.00190.259920.0010
Override
Cache load0.00180.2419310.0001
Sytem overhead
Fetch class attribute can translate value0.00110.150340.0003
Fetch class attribute name0.00110.149260.0002
XML
Image XML parsing0.00180.239140.0004
class_abstraction
Instantiating content class attribute0.00000.001260.0000
General
dbfile0.00390.5272400.0001
String conversion0.00000.001530.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
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
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/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