Attach contents to another : The multiple principles ?

Author Message

H-Works Agency

Monday 02 May 2005 7:56:11 am

In EZP i see multiple ways to attach contents to another. But which one is the right way ?

<b>
1 - By creating a "RelatedObjects" datatype attribute in the parent object class (and filling it with related objects) ?

2 - By using the "Object Relations" function available below every contents ?

3 - By allowing childrens in the parent class (then adding contents as subchildrens) ?
</b>

I can't figure out which response is the right one as each one has pros and cons (respectively) :

<b>
1 - With this technique i can't see a thumbnail preview when related objects are images (and i can't find the so-used admin tpl that could be override to show thumbs on img classes - even with tpl debug on)

2 - With this one its not possible to order elements.

3 - With this one, subchildrens are not stored in the "media" admin section which make, according to me, media administration unconsistent.
</b>

What should i use - in which cases ?

Thanks for the help !!!

EZP is Great

Ɓukasz Serwatka

Thursday 05 May 2005 11:31:31 pm

Hi Martin,

This topic will be useful
http://ez.no/community/forum/setup_design/object_relation_list_vs_related_items

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

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 04:26:42
Script start
Timing: Jan 19 2025 04:26:42
Module start 'layout'
Timing: Jan 19 2025 04:26:42
Module start 'content'
Timing: Jan 19 2025 04:26:43
Module end 'content'
Timing: Jan 19 2025 04:26:43
Script end

Main resources:

Total runtime0.9541 sec
Peak memory usage4,096.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0055 589.3828152.6406
Module start 'layout' 0.00550.0035 742.023439.4766
Module start 'content' 0.00910.9434 781.5000538.9375
Module end 'content' 0.95250.0016 1,320.43758.1250
Script end 0.9541  1,328.5625 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00350.3676160.0002
Check MTime0.00140.1461160.0001
Mysql Total
Database connection0.00080.079610.0008
Mysqli_queries0.904094.7440540.0167
Looping result0.00060.0598520.0000
Template Total0.917696.220.4588
Template load0.00200.212320.0010
Template processing0.915595.954720.4578
Template load and register function0.00010.010110.0001
states
state_id_array0.00160.172110.0016
state_identifier_array0.00120.130120.0006
Override
Cache load0.00160.1725230.0001
Sytem overhead
Fetch class attribute can translate value0.00090.095520.0005
Fetch class attribute name0.00110.115640.0003
XML
Image XML parsing0.00110.118620.0006
class_abstraction
Instantiating content class attribute0.00000.000740.0000
General
dbfile0.00100.1009250.0000
String conversion0.00000.001040.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/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
7content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
5content/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: 18
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs