[opencms-dev] filter by created date

rrobles rrobles at citic.es
Tue Nov 21 14:53:08 CET 2006


Hi,

  Now, I have a list news filtered by last modified date with this code:

CmsCollectorData data = new CmsCollectorData(collectorString);
String foldername = CmsResource.getFolderPath(data.getFileName());
CmsResourceFilter filter =
CmsResourceFilter.DEFAULT.addRequireType(data.getType()).addExcludeFlags(CmsResource.FLAG_TEMPFILE);
filter = filter.addRequireLastModifiedBefore(after.getTime());
ilter = filter.addRequireLastModifiedAfter(before.getTime());
resources = cmso.readResources(foldername, filter, true);

But I need filter news by created date
Anyone has any idea?
Thank you
-- 
View this message in context: http://www.nabble.com/filter-by-created-date-tf2678898.html#a7471555
Sent from the OpenCMS - Dev mailing list archive at Nabble.com.




More information about the opencms-dev mailing list