custom urlalias for each content object

Author Message

Jim Reverend

Friday 06 February 2004 7:45:21 am

By default, it seems that, when a node is created, an Internal URL alias is created for it as well, based on the name of the content object it points to. However, in some cases, a publisher may wish to have a different URL than a cleaned up version of that item's title. Is there a way to set the URL alias that will be established on a new content object when defining the contents of that object? What I'm imagining is, in the edit screen for, say, an "article", right next to "Title" and "Intro" and "Body" there would be a field for "URL Alias". If populated, that alias would be used. If not, the current method would take place. Is there a way to do this?

Eirik Alfstad Johansen

Monday 09 February 2004 12:45:22 am

Hi Jim,

Have you looked into the URL alias functionality? I realize it would be sligtly more time-consuming, but it might suit your needs. Also, you might be able to combin url alias and content publishing functionality.

Sincerely,

Eirik Johansen

Sincerely,

Eirik Alfstad Johansen
http://www.netmaking.no/

Balazs Halasy

Monday 09 February 2004 2:08:01 am

Jim,

This is not possible at the moment. However, it could be a neat thing to implement. It is possible to add new URL aliases - check the URL alias menu in admin -> setup. As for now, you could try to manipulate the database yourself - but only if you really really need to change the existing URL aliases. Hint: check the ezurlalias and the ezcontentobject_tree tables.

Balazs

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 31 2025 04:29:37
Script start
Timing: Jan 31 2025 04:29:37
Module start 'layout'
Timing: Jan 31 2025 04:29:37
Module start 'content'
Timing: Jan 31 2025 04:29:37
Module end 'content'
Timing: Jan 31 2025 04:29:37
Script end

Main resources:

Total runtime0.0161 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.0054 588.2500151.2266
Module start 'layout' 0.00540.0035 739.476636.6797
Module start 'content' 0.00890.0055 776.156390.0625
Module end 'content' 0.01440.0016 866.218833.9922
Script end 0.0160  900.2109 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002716.6197140.0002
Check MTime0.00127.3332140.0001
Mysql Total
Database connection0.00063.946710.0006
Mysqli_queries0.002817.611230.0009
Looping result0.00000.118610.0000
Template Total0.00127.510.0012
Template load0.00106.091210.0010
Template processing0.00021.410910.0002
Override
Cache load0.00074.127510.0007
General
dbfile0.00031.732580.0000
String conversion0.00000.050440.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