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

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

Main resources:

Total runtime0.0290 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.0046 588.0078151.1953
Module start 'layout' 0.00460.0021 739.203136.6094
Module start 'content' 0.00670.0203 775.812594.1172
Module end 'content' 0.02710.0019 869.929733.9922
Script end 0.0290  903.9219 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00258.4719140.0002
Check MTime0.00124.2935140.0001
Mysql Total
Database connection0.00072.574910.0007
Mysqli_queries0.00227.531730.0007
Looping result0.00000.037810.0000
Template Total0.00134.410.0013
Template load0.00103.453510.0010
Template processing0.00030.875310.0003
Override
Cache load0.00072.389210.0007
General
dbfile0.003913.446780.0005
String conversion0.00000.027140.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