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

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 22:24:37
Script start
Timing: Jan 18 2025 22:24:37
Module start 'layout'
Timing: Jan 18 2025 22:24:37
Module start 'content'
Timing: Jan 18 2025 22:24:37
Module end 'content'
Timing: Jan 18 2025 22:24:37
Script end

Main resources:

Total runtime0.8116 sec
Peak memory usage4,096.0000 KB
Database Queries68

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0091 587.9141152.6250
Module start 'layout' 0.00910.0032 740.539139.4609
Module start 'content' 0.01230.7977 780.0000607.3516
Module end 'content' 0.81000.0015 1,387.351616.1641
Script end 0.8115  1,403.5156 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00350.4340160.0002
Check MTime0.00130.1652160.0001
Mysql Total
Database connection0.00200.250010.0020
Mysqli_queries0.751192.5564680.0110
Looping result0.00070.0873660.0000
Template Total0.773395.320.3867
Template load0.00200.248820.0010
Template processing0.771395.036220.3856
Template load and register function0.00020.018910.0002
states
state_id_array0.00130.154410.0013
state_identifier_array0.00110.138120.0006
Override
Cache load0.00170.2077280.0001
Sytem overhead
Fetch class attribute can translate value0.00070.080430.0002
Fetch class attribute name0.00110.140980.0001
XML
Image XML parsing0.00120.145530.0004
class_abstraction
Instantiating content class attribute0.00000.002390.0000
General
dbfile0.00090.1066210.0000
String conversion0.00000.002040.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
6content/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
3content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/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: 19
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs