[opencms-dev] List of unpublished files

Judith Schindler Judith.Schindler at communardo.de
Tue Aug 15 17:51:22 CEST 2006


Hello, 

I want to display a list of all new (or if it is easier: of all
unpublished) files in a folder. But I have no clue how to do that. I
tried already the CmsPublishList (as below), but it was always empty.
What is a better aproach?

Thanks, Judith

My Code-Snipplet:

CmsPublishList plist = new CmsPublishList(cmsproject);
java.util.List list = plist.getFilesList();
java.util.Iterator i = list.iterator();
while (i.hasNext()) {
	String file = (String)i.next();
	out.println(file);
}



More information about the opencms-dev mailing list