Forums / Developer / Multiple Object creation / Comment38650
Kai Duebbert
Friday 05 September 2003 2:07:41 am
Hmm.. The problem sounds interesting. I think the solution that I used for linking objects together might help. I documented it here: http://www.ez.no/developer/ez_publish_3/documentation/customization/components/datatypes/ezobjectrelation/selecting_related_objects_with_dropdown_boxes_checkboxes_etc
It solved the following situation: 1. You have several objects of class A in folder F. 2. You have a class B with related object attributes.3. The user creates a new object of class B and gets all objects which are in folder F (and which he has permission to) as a dropdown box to link to. Simple fetch function, so you can select which ones he can link to.
So, you could do the following workflow controlled through template programming: 1. User has option to create object "General Info" 2. User gets new option (or is forced) to create object "Cover" which has in a hidden attribute a related link to the first object (fetch function) 3. User gets new option (or is forced) to create object "Binding" which has hidden attribute with the two related link to "general info" and "cover"4. User gets new option (or is forced) to create object "Shipping" which has hidden attributes with realted links to the above objects.
It should be possible like this, but is a bit complicated on the template programming side. It can be done in one template.
The usage of related object links is really powerful and opens new possibilities without programming new datatypes (which I first did until I found the better solution).
Hope this helps a bit.
Kai