How to display folder?

Author Message

Fiona Hisa

Sunday 11 November 2007 6:35:08 pm

hi, everyone
I have added an attribute--"pick" to the article,this is a check box. If I create a news folder and add some articles. how to display the news folder with only the pick attribute checked article?

thanks in advance!

source pixel

Sunday 11 November 2007 10:55:56 pm

May be this HELP?

{def $list=fetch( 'content', 'list',
        hash( 'parent_node_id',     $node.node_id,
              'class_filter_type',  'include',
              'class_filter_array', array( 'article' ), 
              'attribute_filter', array( array('article/name_checkbox', '=', true() ))
              
              ))

}

Fiona Hisa

Monday 12 November 2007 12:49:17 am

attribute_filter
thanks ,It works now, ^_^

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 30 2025 19:43:56
Script start
Timing: Jan 30 2025 19:43:56
Module start 'layout'
Timing: Jan 30 2025 19:43:56
Module start 'content'
Timing: Jan 30 2025 19:43:56
Module end 'content'
Timing: Jan 30 2025 19:43:56
Script end

Main resources:

Total runtime0.0238 sec
Peak memory usage6,144.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0054 588.1250151.2109
Module start 'layout' 0.00540.0039 739.3359220.6875
Module start 'content' 0.00930.0131 960.0234997.7891
Module end 'content' 0.02240.0013 1,957.812529.9922
Script end 0.0238  1,987.8047 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002410.0227140.0002
Check MTime0.00104.1650140.0001
Mysql Total
Database connection0.00093.606810.0009
Mysqli_queries0.003112.972130.0010
Looping result0.00000.046110.0000
Template Total0.00094.010.0009
Template load0.00073.102710.0007
Template processing0.00020.840810.0002
Override
Cache load0.00052.063510.0005
General
dbfile0.00218.928480.0003
String conversion0.00000.029140.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