linking between multiple sites - relative vs absolute links

Author Message

Ralf Tomer

Thursday 12 May 2005 2:56:51 am

Hi,
Background:
I'm still testing eZ locally to see if I can make it fit my needs... I'm testing a multisite setup on one database. One of my objectives is to have related pages accoss the multiple sites link to each other.

The issue:
A problem I've found so far is that there doesn't seem to be a way to tell eZ that a particular content node belongs to a particular domain/site. Consquently, all the links generated by eZ are relative links for the current site. It doesn't know which nodes belong to "external" sites and generate absolute external links when linking to those nodes.

Solution?
Is there a way to do this in eZ?

Thanks

Fancy a game of Texasholdem?
http://www.texasholdem-poker.info

Ralph Ekekihl

Thursday 12 May 2005 5:03:36 am

Hi!

Working on an extension to store objects from different sites in eZp. Could not find any way to do it without adding a field to the database, so have added a field called site_name to the ezcontentobject_link table where the sitename is stored.

Dont know of any other way to solve it, maybe someone else has another suggestion?

Regards,
Ralph Ekekihl
http://www.contactivity.com/

Contactivity B.V.
http://www.contactivity.com

Ralf Tomer

Thursday 12 May 2005 5:52:54 am

Hi,
Thanks for your input. Would you mind explaining in a bit more detail this solution? Once you have this site_name field added to the DB, then what?

Thanks

Fancy a game of Texasholdem?
http://www.texasholdem-poker.info

Ralf Tomer

Monday 16 May 2005 10:16:40 am

Hi, can anyone help me with this question, please? It's a make or break feature for me - thanks.

Fancy a game of Texasholdem?
http://www.texasholdem-poker.info

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

Main resources:

Total runtime1.0408 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 588.1641152.6563
Module start 'layout' 0.00480.0021 740.820339.5078
Module start 'content' 0.00701.0323 780.3281546.7813
Module end 'content' 1.03930.0015 1,327.109412.0938
Script end 1.0408  1,339.2031 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00310.3023160.0002
Check MTime0.00140.1344160.0001
Mysql Total
Database connection0.00080.072210.0008
Mysqli_queries0.994395.5277600.0166
Looping result0.00060.0566580.0000
Template Total1.014497.520.5072
Template load0.00200.190420.0010
Template processing1.012497.266820.5062
Template load and register function0.00020.023110.0002
states
state_id_array0.00080.078110.0008
state_identifier_array0.00090.088720.0005
Override
Cache load0.00170.1605250.0001
Sytem overhead
Fetch class attribute can translate value0.00080.074020.0004
Fetch class attribute name0.00150.142250.0003
XML
Image XML parsing0.00060.053420.0003
class_abstraction
Instantiating content class attribute0.00000.000950.0000
General
dbfile0.00080.0815160.0001
String conversion0.00000.000640.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/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
5content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
7content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 19
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs