NodeRelation instead of ObjectRelation

Author Message

Jeremy B.

Tuesday 09 March 2010 5:21:37 am

Hi there :)

I want to make relations between objects with their node ids.
For instance, I need to make a relation between a product, and its similar products (manually).
All my products are listed in a "Products" folder, those products may be multi published anywhere in other sections.

I tought I'd use the common objectrelationlist, but when retriving the list, the node I get is the main_node, ie. not the node I made a relation with.

So I tried to modify the relation action, as I think this could be the trick.

This is my content.ini :

[ObjectRelationDataTypeSettings]
ClassAttributeStartNode[]=562;test

And my browse.ini :

[test]
StartNode=content
SelectionType=multiple
ReturnType=NodeID

But it's not working anymore, my relation is always empty as I get the following error :

Undefined post variable: SelectedObjectIDArray

If I set ReturnType=ObjectID, the common behavior of objectrelationlist is working fine again.
Can anyone tell me how I could achieve this "node relation" ?
Any clue would be greatly appreciated :)

Many thanks in advance !

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 14:51:53
Script start
Timing: Jan 18 2025 14:51:53
Module start 'layout'
Timing: Jan 18 2025 14:51:53
Module start 'content'
Timing: Jan 18 2025 14:51:54
Module end 'content'
Timing: Jan 18 2025 14:51:54
Script end

Main resources:

Total runtime1.0682 sec
Peak memory usage4,096.0000 KB
Database Queries46

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0088 588.0313152.6406
Module start 'layout' 0.00880.0039 740.671939.4609
Module start 'content' 0.01281.0540 780.1328412.2266
Module end 'content' 1.06670.0014 1,192.35948.1563
Script end 1.0682  1,200.5156 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00360.3326160.0002
Check MTime0.00150.1397160.0001
Mysql Total
Database connection0.00150.136310.0015
Mysqli_queries1.022895.7490460.0222
Looping result0.00040.0384440.0000
Template Total1.031896.620.5159
Template load0.00220.205520.0011
Template processing1.029696.382520.5148
Template load and register function0.00010.013210.0001
states
state_id_array0.00100.095510.0010
state_identifier_array0.00120.108720.0006
Override
Cache load0.00170.1553310.0001
Sytem overhead
Fetch class attribute can translate value0.00090.081110.0009
Fetch class attribute name0.00060.056810.0006
XML
Image XML parsing0.00010.011910.0001
class_abstraction
Instantiating content class attribute0.00000.000310.0000
General
dbfile0.00070.0679100.0001
String conversion0.00000.000840.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
1content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
6content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
6content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
8content/datatype/view/ezxmltags/emphasize.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/emphasize.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 23
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs