url_alias and several locations

Author Message

Xavier Dutoit

Friday 19 November 2004 8:52:25 am

Hello,

The default behavior is to have two different urls when the same object has two different locations.

Is is possible to set a parameter somewhere to always get the url from the main location instead of the different ones ? (I remember you could define that on ez2.x) ?

IMHO, the default behavior has two problems:
1) It losts the visitors by offering twice the same content with different addresses
2) It can be taken as robotspamming practice by google... certainely something I'd avoid.

Do you have a hack to deal with it ? Am I missing a parameter on a .ini file ?

Any advice welcome,

Xavier

http://www.sydesy.com

Eirik Alfstad Johansen

Monday 22 November 2004 6:40:52 am

Hi Xavier,

Have you tried something like $object.main_node.url_alias?

Sincerely,

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

Eirik Alfstad Johansen

Monday 22 November 2004 6:41:46 am

Apologies for the double post. The first one didn't appear until I published the second.

Sincerely,

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

Xavier Dutoit

Thursday 25 November 2004 2:06:33 pm

Thanks, I'm diggin your way ;)

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 18 2025 22:30:45
Script start
Timing: Jan 18 2025 22:30:45
Module start 'layout'
Timing: Jan 18 2025 22:30:45
Module start 'content'
Timing: Jan 18 2025 22:30:46
Module end 'content'
Timing: Jan 18 2025 22:30:46
Script end

Main resources:

Total runtime0.6148 sec
Peak memory usage4,096.0000 KB
Database Queries60

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0048 587.9141152.6250
Module start 'layout' 0.00480.0026 740.539139.4453
Module start 'content' 0.00740.6060 779.9844550.4609
Module end 'content' 0.61340.0013 1,330.445312.1641
Script end 0.6147  1,342.6094 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.5599160.0002
Check MTime0.00160.2572160.0001
Mysql Total
Database connection0.00080.137810.0008
Mysqli_queries0.562691.5056600.0094
Looping result0.00050.0849580.0000
Template Total0.588095.620.2940
Template load0.00230.366520.0011
Template processing0.585795.276120.2929
Template load and register function0.00010.017610.0001
states
state_id_array0.00080.122010.0008
state_identifier_array0.00080.135020.0004
Override
Cache load0.00190.3064240.0001
Sytem overhead
Fetch class attribute can translate value0.00060.098720.0003
Fetch class attribute name0.00150.237660.0002
XML
Image XML parsing0.00070.118120.0004
class_abstraction
Instantiating content class attribute0.00000.003180.0000
General
dbfile0.00090.1404220.0000
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
4content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
5content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/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: 16
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs