Relations between arbitrary objects?

Author Message

Ciprian Popovici

Wednesday 29 March 2006 11:14:44 pm

I've been doing a lot of reading both in the documentation and on the forum on the topic of relations among objects. Here's what I've come up with and I ask if someone can confirm it:

In order to create relations between two objects, you can go two ways:

1. If at least one of the objects has a special attribute in its class definition that allows it to "link" to another object, use that. This is dubbed the "attribute relation".

2. If at least one object has an XML Block attribute, you can insert the <object> tag in there and thus create a relation with any other object. This is undocumented, I heard about it on the forums only, and I still have some testing to do to confirm it.

But what happens if neither object has an XML Block, nor a specific linkage attribute in its definition? My first reflex when I needed object relations was to look for one place in the admin interface where you could list, define and remove such arbitrary relations. Didn't find one. Is there one?

I'm still a newbie with ezPublish, so any insight is greatly appreciated.

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

Main resources:

Total runtime0.0178 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.0066 588.0313152.6406
Module start 'layout' 0.00660.0029 740.671939.4609
Module start 'content' 0.00950.0046 780.132885.1172
Module end 'content' 0.01410.0036 865.250030.3047
Script end 0.0177  895.5547 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002815.9580140.0002
Check MTime0.00126.5384140.0001
Mysql Total
Database connection0.00105.660410.0010
Mysqli_queries0.002614.849030.0009
Looping result0.00000.090010.0000
Template Total0.003117.710.0031
Template load0.002212.370610.0022
Template processing0.00095.202510.0009
Override
Cache load0.00063.136310.0006
General
dbfile0.00052.599380.0001
String conversion0.00000.052440.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