[opencms-dev] allInFolderDateReleasedAsc?

Marc Johnen opencms at johnen.biz
Wed May 5 15:17:16 CEST 2010


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--tp28448894p28460716.html
Sent from the OpenCMS - Dev mailing list archive at Nabble.com.




More information about the opencms-dev mailing list