How to fetch class items in some of folders ?

Author Message

Marvix Marx

Sunday 03 February 2008 7:13:49 am

Hi ..

I need to fetch Article class with path 0 in some of the folders ?

Thx !

Lukasz Klejnberg

Sunday 03 February 2008 9:04:42 am

Hi

and try this:

{def $list_items=fetch( 'content','list', hash( 'parent_node_id',$module_result.path[0].node_id,'class_filter_type', 'include','class_filter_array',array('article') ) )}

{foreach $list_items as $item}
  {attribute_view_gui attribute=$item.object.data_map.title}
{/foreach}

{undef $list_items}

Marvix Marx

Sunday 03 February 2008 9:11:17 pm

Thank a lot, but this will not work...

I have about 23 folder, I want to fetch article class from 14 folder just ... not from all !

Thanks

Ɓukasz Serwatka

Sunday 03 February 2008 11:23:20 pm

Then use 'parent_node_id', array( 1, 2, 3, ..., 13 )

In array put node IDs valid for your folders.

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

Marvix Marx

Monday 04 February 2008 7:47:16 am

Thx ... but why this not working ?

{def $mainfolder=array(1,2,3,4,5,9)}

...  'parent_node_id', $mainfolder

Marvix Marx

Monday 04 February 2008 9:23:00 pm

nice .. but why this does`t work ..

{def $maniFolders=array(1,2,3,4,5,6,7)}
.
.

... 'parent_node_id', $maniFolders

Thanks

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

Main resources:

Total runtime0.9050 sec
Peak memory usage4,096.0000 KB
Database Queries68

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0063 588.0547152.6406
Module start 'layout' 0.00630.0031 740.695339.4766
Module start 'content' 0.00940.8943 780.1719606.9453
Module end 'content' 0.90360.0014 1,387.117212.1250
Script end 0.9050  1,399.2422 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.3769160.0002
Check MTime0.00130.1481160.0001
Mysql Total
Database connection0.00140.154910.0014
Mysqli_queries0.843993.2470680.0124
Looping result0.00060.0709660.0000
Template Total0.869396.120.4347
Template load0.00250.272820.0012
Template processing0.866895.777220.4334
Template load and register function0.00020.018010.0002
states
state_id_array0.00200.219410.0020
state_identifier_array0.00150.162220.0007
Override
Cache load0.00200.2180260.0001
Sytem overhead
Fetch class attribute can translate value0.00100.114630.0003
Fetch class attribute name0.00110.121980.0001
XML
Image XML parsing0.00320.349730.0011
class_abstraction
Instantiating content class attribute0.00000.001780.0000
General
dbfile0.00280.3099240.0001
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
6content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
7content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
3content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 20
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs