Fetch and "object_filter"

Author Message

Jérémy Arsac

Thursday 06 May 2010 7:26:55 am

Hello !!

i got a little question because i'm sure my problem is not a real problem ... just in the wrong way to find solution.

I want to fetch a content list, and this list should be filtered on an object_id. Is it possible to make something like that ?.... or am i in the wrong way ?

Thank you for all your help !!

Jérémy

Jean-Luc Nguyen

Friday 07 May 2010 7:35:15 am

Hello,

I think you'll have to first make a fetch from the object_id to get the node_id:

http://ez.no/doc/ez_publish/technical_manual/4_x/reference/modules/content/fetch_functions/object

http://www.acidre.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 30 2025 19:32:36
Script start
Timing: Jan 30 2025 19:32:36
Module start 'layout'
Timing: Jan 30 2025 19:32:36
Module start 'content'
Timing: Jan 30 2025 19:32:37
Module end 'content'
Timing: Jan 30 2025 19:32:37
Script end

Main resources:

Total runtime1.1040 sec
Peak memory usage8,192.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0061 588.1250151.2109
Module start 'layout' 0.00610.0045 739.3359220.6875
Module start 'content' 0.01071.0924 960.02344,425.8750
Module end 'content' 1.10310.0008 5,385.89847.8516
Script end 1.1040  5,393.7500 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00370.3374160.0002
Check MTime0.00130.1221160.0001
Mysql Total
Database connection0.00080.076610.0008
Mysqli_queries1.021392.5110540.0189
Looping result0.00050.0496520.0000
Template Total1.029493.220.5147
Template load0.00230.204720.0011
Template processing1.027193.036320.5136
Template load and register function0.00130.117510.0013
states
state_id_array0.00170.153710.0017
state_identifier_array0.00110.103620.0006
Override
Cache load0.00190.1717130.0001
Sytem overhead
Fetch class attribute can translate value0.00150.134520.0007
Fetch class attribute name0.00210.186230.0007
XML
Image XML parsing0.00160.145120.0008
class_abstraction
Instantiating content class attribute0.00000.000830.0000
General
dbfile0.00800.7256160.0005
String conversion0.00000.000740.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/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.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