attribute filter question

Author Message

Paul d

Monday 12 December 2005 6:05:14 am

Hi,

I want to filter items of a folder using the attribute filter, but I have no items in the result.

The class id is 48, and items are under the folder id 194.

I try with the attribute_id instead of notice/title but I have the same result.

If I remove the line attribute_filter I have the two items in the list.

{let class_filter = array( '48' )
			id = 194	
	}

	{def $list_items = fetch('content',
			         'list',
				  hash(	'parent_node_id', $id,
				        'sort_by', array( 'published', false() ),
					'class_filter_type',  'include',
					'class_filter_array', $class_filter,					
					'attribute_filter', array('and', 
									array( 'notice/title',
									'=',
									'titulo2 - tipo 2' ) 
								)
					)
				)
	}
	{/let}

	{foreach $list_items as $item}
		{$item.name|wash()}<br />
		<b>{$item.object.data_map.tipo}&nbsp;&nbsp;{$item.object.modified|l10n( 'datetime' )}</b><br/><br/>
	{/foreach}

Any ideas?

Thank for advanced!
Pd

Ɓukasz Serwatka

Tuesday 13 December 2005 2:23:08 am

Hi Paul,

Tr y without 'and' in attribute_filter array:

'attribute_filter', array( array( 'notice/title', '=', 'titulo2 - tipo 2' ) )

 

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

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 16:09:52
Script start
Timing: Jan 18 2025 16:09:52
Module start 'layout'
Timing: Jan 18 2025 16:09:52
Module start 'content'
Timing: Jan 18 2025 16:09:52
Module end 'content'
Timing: Jan 18 2025 16:09:52
Script end

Main resources:

Total runtime0.9022 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.0055 589.3438152.6250
Module start 'layout' 0.00550.0025 741.968839.4453
Module start 'content' 0.00800.8928 781.4141534.9609
Module end 'content' 0.90080.0014 1,316.37508.1641
Script end 0.9022  1,324.5391 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00310.3394160.0002
Check MTime0.00120.1361160.0001
Mysql Total
Database connection0.00080.088310.0008
Mysqli_queries0.854094.6504540.0158
Looping result0.00080.0891520.0000
Template Total0.873396.820.4367
Template load0.00190.213120.0010
Template processing0.871496.580920.4357
Template load and register function0.00020.022510.0002
states
state_id_array0.00070.080610.0007
state_identifier_array0.00220.242020.0011
Override
Cache load0.00150.1707190.0001
Sytem overhead
Fetch class attribute can translate value0.00080.084120.0004
Fetch class attribute name0.00110.121640.0003
XML
Image XML parsing0.00440.492120.0022
class_abstraction
Instantiating content class attribute0.00000.000940.0000
General
dbfile0.00370.4126240.0002
String conversion0.00000.000840.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
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
5content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/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: 14
 Number of unique templates used: 7

Time used to render debug report: 0.0004 secs