How to get the node_list toolbar to only fetch node of (a) certain class(es)?

Author Message

Felix Laate

Thursday 27 January 2005 2:12:13 am

Hi all!

Well, the title says it all.. Is there a way to do this, preferably without doing alot of template-coding. But if that is what it takes, so be it..!

felix

Publlic Relations Manager
Greater Stavanger
www.greaterstavanger.com

Roberto Frascarelli

Friday 28 January 2005 7:58:49 am

create an override of the template /toolbar/full/node_list.tpl
for your siteaccess, copying the default template code and change
fetch parameters:

...
 class_filter_type, exclude,
 class_filter_array, array( 'folder' )
...

with :

...
 class_filter_type, include,
 class_filter_array, array( 'classA','classB',... )
...

more information here:
http://ez.no/ez_publish/documentation/reference/data_fetching/content

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 19 2025 01:23:02
Script start
Timing: Jan 19 2025 01:23:02
Module start 'layout'
Timing: Jan 19 2025 01:23:02
Module start 'content'
Timing: Jan 19 2025 01:23:03
Module end 'content'
Timing: Jan 19 2025 01:23:03
Script end

Main resources:

Total runtime1.0261 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.0059 589.6484152.6875
Module start 'layout' 0.00590.0031 742.335939.5234
Module start 'content' 0.00891.0154 781.8594529.3047
Module end 'content' 1.02430.0017 1,311.16418.0625
Script end 1.0260  1,319.2266 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.3205160.0002
Check MTime0.00130.1301160.0001
Mysql Total
Database connection0.00060.061110.0006
Mysqli_queries0.977695.2726540.0181
Looping result0.00060.0539520.0000
Template Total0.990296.520.4951
Template load0.00230.224820.0012
Template processing0.987996.276320.4939
Template load and register function0.00010.007510.0001
states
state_id_array0.00120.120610.0012
state_identifier_array0.00130.130920.0007
Override
Cache load0.00150.1465170.0001
Sytem overhead
Fetch class attribute can translate value0.00070.071520.0004
Fetch class attribute name0.00120.120540.0003
XML
Image XML parsing0.00110.104620.0005
class_abstraction
Instantiating content class attribute0.00000.000840.0000
General
dbfile0.00110.1094220.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
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
4content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
2content/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: 14
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs