How to manualy change the url_alias ?

Author Message

Xavier Dutoit

Thursday 19 May 2005 7:35:23 am

I've had the problem several time:
A create a node "A", then realise that's not the correct class, I create another name A under the same node, the url_alias is "A_1", copy paste the content and delete the initial node "A".

I'd like to be able to change the url_alias from A_1 to A. Is it possible ?

X+

http://www.sydesy.com

Bruce Morrison

Thursday 19 May 2005 3:57:46 pm

Hi Xavier

Make sure the initial "A" node has been removed from the trash then run the update/common/scripts/updateniceurls.php script with appropriate parameters

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

Xavier Dutoit

Friday 20 May 2005 12:28:28 am

Hi Bruce,

Did it for the simple case, I'm afraid that's a little bit more tricky for some other cases (eg if you rename a node A to B, it keeps the alias A and it doesn't rename A_1 to A).

Between
kernel/classes/ezcontentobjecttreenode.php (updateURLAlias) and
kernel/classes/ezurlalias.php

and some SQL commands, I'm going to clean as I want it, hopefully without screwing too much my db ;)

For the record: add a --help on the updateniceurls list the options (like -s siteaccess if you don't want the default one).

X+

http://www.sydesy.com

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 08:52:27
Script start
Timing: Jan 19 2025 08:52:27
Module start 'layout'
Timing: Jan 19 2025 08:52:27
Module start 'content'
Timing: Jan 19 2025 08:52:27
Module end 'content'
Timing: Jan 19 2025 08:52:27
Script end

Main resources:

Total runtime0.0179 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.0078 589.2734152.6406
Module start 'layout' 0.00780.0029 741.914139.4609
Module start 'content' 0.01070.0050 781.375089.3203
Module end 'content' 0.01570.0022 870.695334.3047
Script end 0.0179  905.0000 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002815.7622140.0002
Check MTime0.00147.9970140.0001
Mysql Total
Database connection0.00147.757210.0014
Mysqli_queries0.003218.023330.0011
Looping result0.00000.061310.0000
Template Total0.00168.710.0016
Template load0.00084.732710.0008
Template processing0.00073.955910.0007
Override
Cache load0.00063.357610.0006
General
dbfile0.00031.513680.0000
String conversion0.00000.054640.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