Forums / Developer / How can I fetch Drafts?

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...