Relating objects

Author Message

Karsten Jennissen

Sunday 11 January 2004 10:00:06 am

Hello,

I am trying to set up the following data structure:

- there are articles and projects (main classes)
- articles can be related, i.e. connected
- projects can be related to articles
- one article can be related to several projects
- one project can be related to several articles

How should I set this up. I could try to use
- node connections (doesn't seem right) or
- the related objects feature.

The problem with the latter seems to me that the relation is only one way, i.e. if I relate one article to the other, only one article contains the related other article in the edit display.

Edit: If I click on an article, I want to be able to see all directly related articles and all directly related projects. And I don't really want to perform two "related objects" actions to make the connection two-way.

Any ideas or suggestions how I can handle this?

Karsten Jennissen

Tuesday 13 January 2004 3:52:51 am

I would appreciate if someone experienced could have a quick look at this. Thanks.

Karsten

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 09:46:24
Script start
Timing: Jan 19 2025 09:46:24
Module start 'layout'
Timing: Jan 19 2025 09:46:24
Module start 'content'
Timing: Jan 19 2025 09:46:25
Module end 'content'
Timing: Jan 19 2025 09:46:25
Script end

Main resources:

Total runtime1.4734 sec
Peak memory usage4,096.0000 KB
Database Queries52

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0065 589.0547152.6094
Module start 'layout' 0.00650.0029 741.664139.4141
Module start 'content' 0.00941.4622 781.0781425.5313
Module end 'content' 1.47160.0017 1,206.60948.1875
Script end 1.4733  1,214.7969 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00360.2424160.0002
Check MTime0.00150.1031160.0001
Mysql Total
Database connection0.00090.062810.0009
Mysqli_queries1.429196.9976520.0275
Looping result0.00060.0418500.0000
Template Total1.436797.520.7184
Template load0.00220.149620.0011
Template processing1.434597.363820.7173
Template load and register function0.00020.015910.0002
states
state_id_array0.00060.041810.0006
state_identifier_array0.00180.123520.0009
Override
Cache load0.00170.1182190.0001
Sytem overhead
Fetch class attribute can translate value0.00070.045510.0007
Fetch class attribute name0.00180.123220.0009
XML
Image XML parsing0.00010.008310.0001
class_abstraction
Instantiating content class attribute0.00000.000720.0000
General
dbfile0.00070.0507100.0001
String conversion0.00000.000540.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
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
4content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/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: 10
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs