Fetch restriction

Author Message

Golvier Jean

Wednesday 19 May 2004 7:25:23 am

I got a problem with fetch filtering option.

In a news type website, I try to filter on atrribute author and it's works well with this code :

let category_list=fetch(content, list, hash(parent_node_id, 214, sort_by, array(published, false()), attribute_filter, array('or', array('218', '=', 'dw')), class_filter_type, include, class_filter_array, array('article')))

but now I want to fetch articles that are translated in one language, but I can't find attribute in relation with language in article class. I try something like

let category_list=fetch(content, list, hash(parent_node_id, 214, sort_by, array(published, false()), attribute_filter, array('or', array('language_code', '=', 'eng-GB')), class_filter_type, include, class_filter_array, array('article')))

but it doesn't work.

There's a solution, isn't there ?

Thanks for help.

Jean

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 04:14:11
Script start
Timing: Jan 31 2025 04:14:11
Module start 'layout'
Timing: Jan 31 2025 04:14:11
Module start 'content'
Timing: Jan 31 2025 04:14:11
Module end 'content'
Timing: Jan 31 2025 04:14:11
Script end

Main resources:

Total runtime0.0125 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0042 588.0156151.1953
Module start 'layout' 0.00420.0020 739.210936.6328
Module start 'content' 0.00620.0053 775.843886.0469
Module end 'content' 0.01150.0010 861.890629.9922
Script end 0.0125  891.8828 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.001814.3585140.0001
Check MTime0.00096.8681140.0001
Mysql Total
Database connection0.00086.068310.0008
Mysqli_queries0.002318.071330.0008
Looping result0.00000.063010.0000
Template Total0.00076.010.0007
Template load0.00064.644310.0006
Template processing0.00021.296110.0002
Override
Cache load0.00043.306210.0004
General
dbfile0.002217.221880.0003
String conversion0.00000.049640.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs