[opencms-dev] List of unpublished files
Ruben Malchow
ruben at khm.de
Tue Aug 15 18:57:21 CEST 2006
you could try:
CmsObject co=[...];
String path=[...];
List l=co.readResources(path,CmsResourceFilter.ALL_MODIFIED);
java.util.Iterator i = list.iterator();
while (i.hasNext()) {
CmsResource cr=(CmsResource)i.nect();
out.println(cr.getRootPath());
}
.rm
Judith Schindler schrieb:
> 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);
> }
>
> _______________________________________________
> This mail is sent to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please visit
> http://lists.opencms.org/mailman/listinfo/opencms-dev
>
More information about the opencms-dev
mailing list