Showing ALL items in a folder?

Author Message

Clemens T

Tuesday 08 March 2005 1:29:06 am

What if I would like to show a list of ALL articles in the current folder? So the published items AND the last drafts for the items which don't have a published version - even if I haven't written the drafts myself.

Please let me know if this is impossible or possible! And maybe a snippet in the direction on how to handle this kind of listing.

Thanks,
Clemens Timmermans

Bård Farstad

Tuesday 08 March 2005 5:56:18 am

You can use the fetch functions used in the content/versions template. This template fetches all versions for a current object. Take a look at that template and you should find an example on how to do this.

--bård

Documentation: http://ez.no/doc

Clemens T

Tuesday 08 March 2005 6:45:14 am

I think that's a good tip, will look into that!

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

Main resources:

Total runtime0.0182 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.0072 589.0313152.6250
Module start 'layout' 0.00720.0047 741.656339.4453
Module start 'content' 0.01190.0044 781.101689.3203
Module end 'content' 0.01630.0019 870.421930.3047
Script end 0.0182  900.7266 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002614.3526140.0002
Check MTime0.00126.3849140.0001
Mysql Total
Database connection0.00158.120810.0015
Mysqli_queries0.004022.095330.0013
Looping result0.00000.187110.0000
Template Total0.00168.710.0016
Template load0.00084.592810.0008
Template processing0.00074.060410.0007
Override
Cache load0.00063.143410.0006
General
dbfile0.00031.467780.0000
String conversion0.00000.056240.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