fetch filter - related objects

Author Message

Marko Žmak

Thursday 10 February 2005 1:07:28 pm

I have defined a class with a related object attribute. I want to fetch all the nodes that have that attribute set to a certain object. How do I do that?

P.S. I don't want to fetch all the nodes, and filter them later manually.

--
Nothing is impossible. Not if you can imagine it!

Hubert Farnsworth

Gabriel Ambuehl

Friday 11 February 2005 1:08:19 am

You currently can't do that. I think you'd need to write your own template operator (I was thinking about doing that, but I don't have the time right now).

Visit http://triligon.org

Marko Žmak

Friday 11 February 2005 6:01:02 am

Are there any plans to implement that in the future as a standard part of eZ?

--
Nothing is impossible. Not if you can imagine it!

Hubert Farnsworth

Gabriel Ambuehl

Sunday 13 February 2005 9:57:36 am

I wrote this today, take a look at http://ez.no/community/contribs/template_plugins/filter_related_filter_reverse_related

I appreciate any comments. It's not been heavily tested so far.

Visit http://triligon.org

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 31 2025 06:28:31
Script start
Timing: Jan 31 2025 06:28:31
Module start 'layout'
Timing: Jan 31 2025 06:28:31
Module start 'content'
Timing: Jan 31 2025 06:28:32
Module end 'content'
Timing: Jan 31 2025 06:28:32
Script end

Main resources:

Total runtime0.9937 sec
Peak memory usage4,096.0000 KB
Database Queries60

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0043 588.1328151.2109
Module start 'layout' 0.00430.0021 739.343836.6484
Module start 'content' 0.00640.9863 775.9922938.2031
Module end 'content' 0.99270.0009 1,714.195311.8516
Script end 0.9936  1,726.0469 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00280.2851160.0002
Check MTime0.00120.1205160.0001
Mysql Total
Database connection0.00060.061710.0006
Mysqli_queries0.947195.3079600.0158
Looping result0.00050.0473580.0000
Template Total0.967397.320.4837
Template load0.00180.179620.0009
Template processing0.965597.165320.4828
Template load and register function0.00140.142310.0014
states
state_id_array0.00100.104410.0010
state_identifier_array0.00060.063820.0003
Override
Cache load0.00150.1473140.0001
Sytem overhead
Fetch class attribute can translate value0.00080.080520.0004
Fetch class attribute name0.00210.210650.0004
XML
Image XML parsing0.00070.072720.0004
class_abstraction
Instantiating content class attribute0.00000.001160.0000
General
dbfile0.00220.2177180.0001
String conversion0.00000.000440.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/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
4content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 12
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs