Forums / General / Attribute Filter

Attribute Filter

Author Message

John Smith

Thursday 21 April 2005 1:43:59 am

I think any body can help me please.

How to use attribute_filter in treemenu?

Moreover is the let statement given below is correct:

{let alist=fetch( 'content', 'tree', hash(parent_node_id, 66, class_filter_type, include, class_filter_array, array('folder', 'article'), attribute_filter, array(array('article/incmenu', '=','1'))))}

Where incmenu is one of the article class attribute.

Cheers

Łukasz Serwatka

Monday 25 April 2005 1:00:09 am

What data type is incmenu attribute in article class?

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

John Smith

Thursday 28 April 2005 2:56:45 am

hi Serwatka,

IncMenu is a "Selection" type of attribute.

Options are "Yes", "No".

Identifier is "incmenu"

Required and Searchable checked as well.

Here what I am trying to fetch is all the folder names and the articles names with the option "Yes" in IncMenu attribute.

Thanks once again.

cheers

Łukasz Serwatka

Thursday 28 April 2005 3:01:48 am

So, you will have to use 0 for "Yes", 1 for "No" or use checkbox datatype then you can use 1 if checked

'article/incmenu', '=','0'

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

John Smith

Thursday 28 April 2005 5:13:28 am

hi Serwatka,

thanks for your reply. I am here struggling with the let statement. Can you please tell me whether is it possible to fetch both folder, articles with attribute filter in the let statement with treemenu given below

{let docs=treemenu( $module_result.path, $module_result.node_id, ezini( 'MenuContentSettings', 'LeftIdentifierList', 'menu.ini' ), 0, 5 ) depth=1}

cheers