[opencms-dev] allInFolderDateReleasedAsc?

Paul-Inge Flakstad flakstad at npolar.no
Wed May 5 17:41:18 CEST 2010


Hi Horst, Marc,

CmsDateResourceCollector mentions some ascending collector names. I tested the collector "allInFolderPriorityDateAsc", and it worked. Maybe that one will do the job for you?

Best regards,
Paul

> -----Original Message-----
> From: opencms-dev-bounces at opencms.org 
> [mailto:opencms-dev-bounces at opencms.org] On Behalf Of Marc Johnen
> Sent: 5. mai 2010 15:17
> To: opencms-dev at opencms.org
> Subject: Re: [opencms-dev] allInFolderDateReleasedAsc?
> 
> 
> Have a look at CmsDateResourceCollector and write you own, it's not
> difficult.
> This class uses CmsDateResourceComparator, which already has the
> capability to sort like that when you pass "dateReleased" as 
> a parameter.
> Greetings
> Marc
> 
> 
> 
> Paul-Inge Flakstad wrote:
> > 
> > Hi Horst,
> > 
> > I had the same issue, but I can't remember if OpenCms has 
> that collector
> > or not. 
> > 
> > However, I know I did this once as a quick fix (cms is your 
> content bean):
> > I_CmsXmlContentContainer folderFiles =
> > cms.contentload("allInFolderPriorityDateDesc",
> > folderUri.concat("|").concat(collectorParam), EDITABLE);
> > Collections.reverse(folderFiles.getCollectorResult());
> > 
> > If you're pressed for time, maybe this helps. ;)
> > 
> > Cheers,
> > Paul
> > ________________________________________
> > Fra: opencms-dev-bounces at opencms.org 
> [opencms-dev-bounces at opencms.org]
> > på vegne av Horst Jäger [h.jaeger at medienkonzepte.de]
> > Sendt: 4. mai 2010 17:10
> > Til: The OpenCms mailing list
> > Emne: [opencms-dev] allInFolderDateReleasedAsc?
> > 
> > Hi,
> > 
> > I need a collector like
> > 
> > allInFolderDateReleasedDesc
> > 
> > , but one that so0rts the entries in the opposite order. 
> But I found no
> > allInFolderDateReleasedAsc .
> > 
> > Any Idea? Anyhelp would be very much appreciated.
> > 
> > Thanks in advance.
> > 
> > Horst
> > 
> > 
> > _______________________________________________
> > 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
> > 
> > _______________________________________________
> > 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
> > 
> > 
> 
> -- 
> View this message in context: 
> http://old.nabble.com/allInFolderDateReleasedAsc--tp28448894p2
8460716.html
> Sent from the OpenCMS - Dev mailing list archive at Nabble.com.
> 
> 
> _______________________________________________
> 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