How to fetch drafts under a node ?

Author Message

Sébastien Antoniotti

Tuesday 20 February 2007 2:10:14 am

Hi,

I'm using the validation workflow in order to control the articles that users can add.

The problem is that when a user click on "send for publishing", he is redirected into the full view of the folder and his article is not present.
It's ok because I need to validate it, but I would want to display this new article to the user during the validation processus, so I need to fetch drafts of the current user that are under the current node.

Some idea to help me ?

eZ Publish Freelance
web : http://www.webaxis.fr

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 03:43:04
Script start
Timing: Jan 31 2025 03:43:04
Module start 'layout'
Timing: Jan 31 2025 03:43:04
Module start 'content'
Timing: Jan 31 2025 03:43:04
Module end 'content'
Timing: Jan 31 2025 03:43:04
Script end

Main resources:

Total runtime0.0325 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.0051 588.1563151.2109
Module start 'layout' 0.00510.0042 739.3672220.6875
Module start 'content' 0.00930.0214 960.0547993.8047
Module end 'content' 0.03070.0018 1,953.859429.9922
Script end 0.0324  1,983.8516 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00288.7479140.0002
Check MTime0.00113.4178140.0001
Mysql Total
Database connection0.00072.125110.0007
Mysqli_queries0.00288.629730.0009
Looping result0.00000.042610.0000
Template Total0.00123.810.0012
Template load0.00092.709410.0009
Template processing0.00030.795010.0003
Override
Cache load0.00061.866010.0006
General
dbfile0.00268.044780.0003
String conversion0.00000.022040.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