Forums / Setup & design / Attach contents to another : The multiple principles ?

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