SOLVED You can ignore this post,

Author Message

Daniel Guerrier

Thursday 22 September 2005 9:01:22 am

I couldn't sort using reverse_object fetch so I decided to try a list fetch with an attribute filter on the object relation attribute.

I tried the following but it is returning all values not just the myclass instances that hav a pointer to the object with an id of 66. Is this the correct way to use it when filtering with object relation. All the examples use strings and int.

{def $myobjects=fetch( 'content', 'list', hash( 'parent_node_id', 119 ),
'attribute_filter', array( array('myclass/apointer', '=' , 66) ) ) 

}
											
{foreach $myobjects as $myobject}
   {$myobject.node_id} <br />
{/foreach}	

Renaud Patrick

Friday 23 March 2007 3:39:44 am

Man, solved is good for you, but you could have posted your solution, it would have been useful...

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 20:47:49
Script start
Timing: Jan 18 2025 20:47:49
Module start 'layout'
Timing: Jan 18 2025 20:47:49
Module start 'content'
Timing: Jan 18 2025 20:47:50
Module end 'content'
Timing: Jan 18 2025 20:47:50
Script end

Main resources:

Total runtime0.9666 sec
Peak memory usage4,096.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0043 587.9141152.6250
Module start 'layout' 0.00430.0022 740.539139.4609
Module start 'content' 0.00650.9587 780.0000456.6719
Module end 'content' 0.96520.0014 1,236.67198.1563
Script end 0.9666  1,244.8281 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00290.3000160.0002
Check MTime0.00120.1263160.0001
Mysql Total
Database connection0.00060.066010.0006
Mysqli_queries0.931196.3307540.0172
Looping result0.00050.0523520.0000
Template Total0.937196.920.4685
Template load0.00230.234620.0011
Template processing0.934896.710020.4674
Template load and register function0.00020.016410.0002
states
state_id_array0.00110.110510.0011
state_identifier_array0.00080.084920.0004
Override
Cache load0.00180.190180.0002
Sytem overhead
Fetch class attribute can translate value0.00050.054120.0003
Fetch class attribute name0.00100.099220.0005
XML
Image XML parsing0.00020.023320.0001
class_abstraction
Instantiating content class attribute0.00000.000520.0000
General
dbfile0.00160.1667100.0002
String conversion0.00000.000540.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
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
2content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 7
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs