Forums / Setup & design / Object Relations List Questions

Object Relations List Questions

Author Message

eric l

Tuesday 18 October 2005 5:50:55 pm

I have a type RECIPE, it has an object relations list that contains objects of type INGREDIENT. I set the default folder for the object relations list to a sub folder in my content tree that contains INGREDIENT objects so that I can quickly add the appropriate INGREDIENTS to any new RECIPE objects that I create. However that default folder does not appear to be honored and I end up a couple of levels above my sub folder which is pretty annoying. Is this a bug (I'm running 3.7) or am I doing something wrong?

Is there anyway to create new objects of the type specified for the Object Relationship List at the point I am trying to populate it? If I am trying to create a new RECIPE but I'm missing 1 INGREDIENT to add to the object relations list of INGREDIENTS I don't want to have to repeat the 'add objects' step multiple times, I just want to make a new INGREDIENT while I'm doing it.

Is there anyway to be able to get a drop down selection box for object relationship lists similar to what you get for a normal object relation? Obviously it would need to be a multi-select selection list, but that would be totally awesome. Even more awesome would be if it could be some fancy .js type selection that supports sub menus, and you could define the submenus as an attribute of the object you want in the relationship list. Then you could do something like: Make object relationship list of INGREDIENTS, split up by CATEGORY (INGREDIENT attribute) and then when you go to create a new RECIPE there is no wacky default folder, just a nifty popup multiselect menu of all the INGREDIENT objects in the system broken out by INGREDIENT->CATEGORY.

Xavier Dutoit

Wednesday 19 October 2005 2:38:59 am

The enhanced object relation does that (btw, you don't have to modify the database structure on ez 3.7)

http://ez.no/community/contribs/datatypes/enhanced_objectrelation

X+

http://www.sydesy.com

eric l

Thursday 20 October 2005 1:19:17 pm

That does look like what I want, thanks! I tried installing it and I see the 'Extended Object Relation' in the list of attributes I can add to a class, but when I add it I seem to be missing some interface as all I can see are the Name, Identifier, and standard 4 checkboxes. There is no 'selection method' or 'default selection node' visible.

I'm running 3.7 and I unpacked it into the extensions folder and added the 2 lines mentioned in the install.txt file:

[ExtensionSettings]
ActiveExtensions[]=enhancedobjectrelation

What else should I try, I would definitely like to try using it. Thanks.

Mark Marsiglio

Thursday 20 October 2005 3:17:33 pm

"When in doubt, clear the cache" - can't remember which poster I learned this from.

I think clearing the cache usually fixes this problem for me.

http://www.thinkcreative.com
Turning Ideas Into Strategic Solutions

eric l

Monday 24 October 2005 8:38:17 pm

Totally does the trick. The enhanced object relation is what I'm looking for as well. I might want to tweak it some in the future, but works great for my current needs. Thanks all.

Xavier Dutoit

Tuesday 25 October 2005 1:33:09 am

Glad you like it,

Don't hesitate to contact me if you develop new things on eor if you want to share it with us.

X+

http://www.sydesy.com