How can I fetch Drafts?

Author Message

Clemens T

Monday 07 March 2005 1:35:18 pm

Hey All,
Does anyone know how I can fetch unpublished items/drafts?
Thanks for your time,
Clemens

Ɓukasz Serwatka

Monday 07 March 2005 10:11:43 pm

Hi Clemens,

You can use draft_version_list
http://ez.no/ez_publish/documentation/reference/data_fetching/content/draft_version_list

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

Clemens T

Tuesday 08 March 2005 1:25:27 am

Ok, I'm not really sure if that's what I need but thank you. 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
ps: I'll start a new thread...

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 06:13:45
Script start
Timing: Jan 31 2025 06:13:45
Module start 'layout'
Timing: Jan 31 2025 06:13:45
Module start 'content'
Timing: Jan 31 2025 06:13:45
Module end 'content'
Timing: Jan 31 2025 06:13:45
Script end

Main resources:

Total runtime0.0391 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.0053 588.1250151.2109
Module start 'layout' 0.00530.0030 739.335936.6328
Module start 'content' 0.00830.0293 775.968890.1094
Module end 'content' 0.03760.0014 866.078129.9922
Script end 0.0390  896.0703 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00256.3793140.0002
Check MTime0.00123.1008140.0001
Mysql Total
Database connection0.00112.779810.0011
Mysqli_queries0.00256.481230.0008
Looping result0.00010.322810.0001
Template Total0.00112.810.0011
Template load0.00092.224510.0009
Template processing0.00020.578510.0002
Override
Cache load0.00061.614810.0006
General
dbfile0.021254.216180.0026
String conversion0.00000.020740.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