class filter problem

Author Message

Marko Žmak

Monday 12 July 2004 3:53:33 pm

Since I've modified the classes Folder and Article, the fetch functon doesn't fetch anything when I user the cass filter ont these classes. I use it like this:

'class_filter_type',  'include',
'class_filter_array', array('folder')

And the anonymous user has unlimited acces for content reading. Is this a bug?

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

Hubert Farnsworth

Roy Bøhmer

Tuesday 13 July 2004 12:18:52 am

You should be able to fecth watever you want even if you have modified the default classes. As long as you have not alterd the class identification-string 'folder' your code seems ok too. Could you post the rest of your fetch-sentence?

Roy

Marko Žmak

Tuesday 13 July 2004 5:38:34 am

Here it is for article:

{let vijesti_list=fetch(content, list, hash(
					'parent_node_id', $folder_node.node_id,
					'class_filter_type', 'include',
					'class_filter_array', array('article'),
					'sort_by', array('published', false()),
					))}

It doesn't fetch anything, count of $vijesti_list after this is zero. Without these lines:

					'class_filter_type', 'include',
					'class_filter_array', array('article'),

it works O.K. And the identifier of Article class is article.

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

Hubert Farnsworth

Roy Bøhmer

Tuesday 13 July 2004 11:23:59 am

Hi!
Probably just a typo in the post, but you have a comma (,) too much in the end. To me it looks nice otherwise.

Roy

Marko Žmak

Wednesday 14 July 2004 4:10:57 am

The comma in the end doesn't matter, the fetch function works wether you put it or not. So the problem is somethnig else. Anyone knows the solution?

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

Hubert Farnsworth

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 19 2025 09:50:36
Script start
Timing: Jan 19 2025 09:50:36
Module start 'layout'
Timing: Jan 19 2025 09:50:36
Module start 'content'
Timing: Jan 19 2025 09:50:37
Module end 'content'
Timing: Jan 19 2025 09:50:37
Script end

Main resources:

Total runtime1.3608 sec
Peak memory usage4,096.0000 KB
Database Queries63

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0047 589.1484152.6250
Module start 'layout' 0.00470.0026 741.773439.4453
Module start 'content' 0.00731.3519 781.2188562.0938
Module end 'content' 1.35920.0016 1,343.312512.1719
Script end 1.3608  1,355.4844 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.2337160.0002
Check MTime0.00130.0938160.0001
Mysql Total
Database connection0.00060.047210.0006
Mysqli_queries1.308896.1792630.0208
Looping result0.00060.0432610.0000
Template Total1.332197.920.6660
Template load0.00200.144420.0010
Template processing1.330197.743520.6650
Template load and register function0.00010.006110.0001
states
state_id_array0.00110.078310.0011
state_identifier_array0.00150.108820.0007
Override
Cache load0.00180.1348240.0001
Sytem overhead
Fetch class attribute can translate value0.00060.041620.0003
Fetch class attribute name0.00100.074660.0002
XML
Image XML parsing0.00060.041420.0003
class_abstraction
Instantiating content class attribute0.00000.003580.0000
General
dbfile0.00090.0652180.0000
String conversion0.00000.000640.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
3content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
5content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
8content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
3content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 22
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs